[Debconf-video-commits] r381 - package/branches/pycon09/src/pyconvideo/pyconvideo

benh at alioth.debian.org benh at alioth.debian.org
Tue Mar 24 14:21:36 UTC 2009


Author: benh
Date: 2009-03-24 14:21:36 +0000 (Tue, 24 Mar 2009)
New Revision: 381

Modified:
   package/branches/pycon09/src/pyconvideo/pyconvideo/videorecording_list.html
   package/branches/pycon09/src/pyconvideo/pyconvideo/videotargetfile_list.html
Log:
Starting a review changes state, so use a button that POSTs.


Modified: package/branches/pycon09/src/pyconvideo/pyconvideo/videorecording_list.html
===================================================================
--- package/branches/pycon09/src/pyconvideo/pyconvideo/videorecording_list.html	2009-03-24 14:10:02 UTC (rev 380)
+++ package/branches/pycon09/src/pyconvideo/pyconvideo/videorecording_list.html	2009-03-24 14:21:36 UTC (rev 381)
@@ -30,7 +30,12 @@
 	  {% for event in recording.event_set.all %}
 	  {{ event.title }}<br />
 	  {% endfor %}
-	  <a href="{{ recording.id }}/review">Review</a>
+	  {% if recording.locked_by %}
+	  {% else %}
+	  <form action="{{ recording.id }}/review" method="post">
+	    <input type="submit" name="submit" value="Review" />
+	  </form>
+	  {% endif %}
 	</td>
 	<td>{{ recording.comments }}</td>
       </tr>

Modified: package/branches/pycon09/src/pyconvideo/pyconvideo/videotargetfile_list.html
===================================================================
--- package/branches/pycon09/src/pyconvideo/pyconvideo/videotargetfile_list.html	2009-03-24 14:10:02 UTC (rev 380)
+++ package/branches/pycon09/src/pyconvideo/pyconvideo/videotargetfile_list.html	2009-03-24 14:21:36 UTC (rev 381)
@@ -20,8 +20,13 @@
 	{% for target in file_set.target %}
 	{% if target %}
 	<td class="status-{{ target.status.status_code }}">
+	  {% if target.locked_by %}
 	  <a href="file:///{{ target.target_filename|urlencode }}">File</a>
-	  | <a href="{{ target.id }}/review">Review</a>
+	  {% else %}
+	  <form action="{{ target.id }}/review" method="post">
+	    <input type="submit" name="submit" value="Review" />
+	  </form>
+	  {% endif %}
 	</td>
 	{% else %}
 	<td>pending</td>




More information about the Debconf-video-commits mailing list