Adds favorit handling
This commit is contained in:
parent
27b9326dd9
commit
a664ad3328
10 changed files with 59 additions and 8 deletions
|
@ -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>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue