app/soc/templates/soc/models/edit.html
changeset 1035 04229d710ce9
parent 858 e79e7a22326f
child 1049 cc6aedbde28d
equal deleted inserted replaced
1034:d6a9fef4c1a4 1035:04229d710ce9
    47     {% block submit_buttons %}
    47     {% block submit_buttons %}
    48    <td> 
    48    <td> 
    49     <input style="font-weight: bold" type="submit" value="Save Changes"/></span>
    49     <input style="font-weight: bold" type="submit" value="Save Changes"/></span>
    50    </td>
    50    </td>
    51    <td>
    51    <td>
    52     <input type="button" onclick="location.href='/'" value="Cancel"/>
    52    {% if edit_cancel_redirect %}
       
    53    <input type="button" onclick="location.href='{{ edit_cancel_redirect }}'" value="Cancel"/>
       
    54    {% else %}
       
    55    <input type="button" value="Back to Previous Page" onClick="javascript: history.go(-1)">
       
    56    {% endif %}
    53    </td>
    57    </td>
    54    {% if entity %}
    58    {% if entity %}
    55    <td>
    59    <td>
    56     <input type="button" onclick="location.href='/{{ entity_type_url|lower }}/delete/{{ entity_suffix }}'" value="Delete"/>
    60     <input type="button" onclick="location.href='/{{ entity_type_url|lower }}/delete/{{ entity_suffix }}'" value="Delete"/>
    57    </td>
    61    </td>