app/soc/templates/soc/templatetags/_as_table_row.html
changeset 935 09f47e08f805
parent 926 390c8a98cdd0
child 941 6eac584ce14c
--- a/app/soc/templates/soc/templatetags/_as_table_row.html	Fri Jan 23 21:18:39 2009 +0000
+++ b/app/soc/templates/soc/templatetags/_as_table_row.html	Fri Jan 23 21:20:33 2009 +0000
@@ -40,9 +40,14 @@
   <td></td>
   {% endif %}
 
+  {% if select_url %}
+  <td><a href="{{ select_url }}">select</a></td>
+  {% comment %} no else branch, as example_text will take care of the last <td></td> {% endcomment %}
+  {% endif %}
+
   {% if example_text %}
     <td class="formfieldexample">{{ example_text|safe }}</td>
-  {% else %}
+  {% else %} {% if not select_url %}
     <td></td>
-  {% endif %}
+  {% endif %} {% endif %}
 </tr>