src/hdalab/templates/renkan_list.html
changeset 458 604b887e70c3
parent 396 064f4cdc48c3
child 473 f469ab22542d
--- a/src/hdalab/templates/renkan_list.html	Thu Feb 26 15:51:03 2015 +0100
+++ b/src/hdalab/templates/renkan_list.html	Thu Feb 26 10:33:10 2015 +0100
@@ -63,7 +63,11 @@
             <td>{% thumbnail r.image 100x100 as thumb %}<img src="{{ thumb.url }}" width="{{ thumb.width }}" height="{{ thumb.height }}" /></td>
             <td>
                 <a title="View renkan" href="{% url 'renkan_view' %}?rk_id={{ r.rk_id }}" class="renkan-basic-action"><span class="ui-icon ui-icon-eye"></span></a>
-                <a title="Copy renkan" href="{% url 'renkan_copy' rk_id=r.rk_id %}?next={% url 'profile_home' %}" class="renkan-basic-action" onclick="return confirm('{% trans "Are you sure you want to copy this renkan ?" %}');" ><span class="ui-icon ui-icon-copy"></span></a>
+                <form action="{% url 'renkan_copy' rk_id=r.rk_id %}" method="post">
+                    {% csrf_token %}
+                    <input type="hidden" name="next" value="{% url 'profile_home' %}" />
+                    <button title="Copy renkan" class="renkan-basic-action" onclick="return confirm('{% trans "Are you sure you want to copy this renkan ?" %}');" ><span class="ui-icon ui-icon-copy"></span></button>
+                </form>
             </td>
         </tr>
        {% endwith %}