app/soc/templates/soc/templatetags/_as_table_row.html
changeset 941 6eac584ce14c
parent 935 09f47e08f805
child 956 aaac33732ad5
equal deleted inserted replaced
940:a40056afef83 941:6eac584ce14c
    40   <td></td>
    40   <td></td>
    41   {% endif %}
    41   {% endif %}
    42 
    42 
    43   {% if select_url %}
    43   {% if select_url %}
    44   <td><a href="{{ select_url }}">select</a></td>
    44   <td><a href="{{ select_url }}">select</a></td>
    45   {% comment %} no else branch, as example_text will take care of the last <td></td> {% endcomment %}
    45   {% else %}
       
    46   <td></td>
    46   {% endif %}
    47   {% endif %}
    47 
    48 
    48   {% if example_text %}
    49   {% if example_text %}
    49     <td class="formfieldexample">{{ example_text|safe }}</td>
    50     <td class="formfieldexample">{{ example_text|safe }}</td>
    50   {% else %} {% if not select_url %}
    51   {% else %}
    51     <td></td>
    52     {% if select_url %}
    52   {% endif %} {% endif %}
    53       <td class="warning">(discards unsaved changes)</td>
       
    54     {% else %}
       
    55       <td></td>
       
    56     {% endif %}
       
    57   {% endif %}
    53 </tr>
    58 </tr>