1
0
Fork 0

Adds favorit handling

This commit is contained in:
Mouse Reeve 2020-02-19 00:13:06 -08:00
parent 27b9326dd9
commit a664ad3328
10 changed files with 59 additions and 8 deletions

View file

@ -67,7 +67,10 @@
<p>{{ activity.content | safe }}</p>
</div>
<div class="interaction">
<button>⭐️ Like</button>
<form name="favorite" action="/favorite/{{ activity.id }}" method="post">
{% csrf_token %}
<button>⭐️ Like</button>
</form>
<form name="comment" action="/comment" method="post">
{% csrf_token %}
<input type="hidden" name="review" value="{{ activity.id }}"></input>