src/egonomy/templates/egonomy_create_fragment.html
changeset 19 e00c68158187
parent 18 ffd106d9b8e1
child 23 bb7819c8d7c2
--- a/src/egonomy/templates/egonomy_create_fragment.html	Wed Jan 30 17:13:19 2013 +0100
+++ b/src/egonomy/templates/egonomy_create_fragment.html	Wed Jan 30 18:02:15 2013 +0100
@@ -14,7 +14,7 @@
 
 {% block content %}
                 <div class="fullwidth">
-                    <form action="#">
+                    <form action="{% url 'save_fragment' %}" method="POST">
                         <div class="column column-half">
                             <a href="#" class="head-button clear-fragment" title="{% trans 'Erase the drawing' %}">&times;</a>
                             <a href="#" class="head-button reset-fragment" title="{% trans 'Back to the original drawing' %}">&#8634;</a>
@@ -27,7 +27,8 @@
 	                          {% endthumbnail %}
                                 <div class="cutout-canvas"></div>
                             </div>
-                            <input id="fragment-path" type="text" class="fragment-path column-half" value="M 0 .5 L .5 0 L 1 .5 L .5 1 Z" />
+                            <input name="fragment_path" id="fragment_path" type="text" class="fragment-path column-half" value="M 0 .5 L .5 0 L 1 .5 L .5 1 Z" />
+                        {% csrf_token %}
                         </div>
                         <div class="column column-half">
                             <table class="image-metadata">
@@ -37,15 +38,15 @@
                                 </tr>
                                 <tr>
                                     <th>{% trans "Fragment's title" %}&nbsp;:</th>
-                                    <td><input type="text" class="fragment-title" placeholder="{% trans "Fragment's title" %}" /></td>
+                                    <td><input type="text" class="fragment-title" placeholder="{% trans "Fragment's title" %}" name="fragment_title" id="fragment_title"/></td>
                                 </tr>
                                 <tr>
                                     <th>{% trans "Fragment's description" %}&nbsp;:</th>
-                                    <td><textarea class="fragment-description"></textarea></td>
+                                    <td><textarea class="fragment-description" name="fragment_description" id="fragment_description"></textarea></td>
                                 </tr>
                                 <tr>
                                     <th>{% trans 'Users keywords' %}&nbsp;:</th>
-                                    <td><textarea class="user-keywords"></textarea></td>
+                                    <td><textarea class="user-keywords" name="users_keywords" id="users_keywords"></textarea></td>
                                 </tr>
                                 <tr>
                                     <th> </th>