Changeset 396

Show
Ignore:
Timestamp:
09/11/08 16:44:52 (4 months ago)
Author:
johnbywater
Message:

Fixed missing 'endif' Django template tag.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/src/dm/django/templates/registry/list.html

    r392 r396  
    33{% block content %} 
    44 
    5 {% if showRegisterSearch %} 
     5  {% if showRegisterSearch %} 
    66<div style="float: right;"> 
    77  <form action="{{uriPrefix}}/{{registryAttribute}}/search/" method="post"> 
     
    1111  </form> 
    1212</div> 
    13 {% endif %} 
     13  {% endif %} 
    1414 
    15 {% block content_title %}<h2>{{registerNameTitle}}</h2>{% endblock %} 
     15  {% block content_title %}<h2>{{registerNameTitle}}</h2>{% endblock %} 
    1616 
    17 {% block table_comment %} 
     17  {% block table_comment %} 
    1818   
    1919  <div id="register-table"></div> 
    2020 
    21   {% block table_comment_before %}{% endblock %} 
     21    {% block table_comment_before %}{% endblock %} 
    2222 
    23   {% if isCountZero %} 
     23    {% if isCountZero %} 
    2424  <p>There are no {{registerName}} at this time.</p> 
    25   {% else %} 
    26     {% if isCountSingle %} 
     25    {% else %} 
     26      {% if isCountSingle %} 
    2727  <p>There is one {{domainClassName}}.</p> 
    28     {% else %} 
     28      {% else %} 
    2929  <p> 
    3030    There are {{ objectCount }} {{registerName}}. 
    31       {% if view.hasListallPage and showRegisterAllLink %} 
     31        {% if view.hasListallPage and showRegisterAllLink %} 
    3232    <a href="{{uriPrefix}}/{{registryPath}}/listall/">View full list.</a> 
     33        {% endif %} 
     34  </p> 
    3335      {% endif %} 
    34   </p> 
    3536    {% endif %} 
    36   {% endif %} 
    3737 
    38   {% block table_comment_after %}{% endblock %} 
     38    {% block table_comment_after %}{% endblock %} 
    3939 
    40 {% endblock %} 
     40  {% endblock %} 
    4141 
    42 {% if registerCount %} 
    43 {% if isRegisterCountLow %} 
     42  {% if registerCount %} 
     43    {% if isRegisterCountLow %} 
    4444 
    4545<div id="register-table"> 
     
    4747  <tr> 
    4848    <th>{{domainClassName}}</th> 
    49     {% block list_table_head_extn %}{% endblock %}  
    50     {% if view.canUpdateDomainObject %} 
     49      {% block list_table_head_extn %}{% endblock %}  
     50      {% if view.canUpdateDomainObject %} 
    5151    <th>Actions</th> 
    52     {% endif %} 
     52      {% endif %} 
    5353  </tr> 
    54   {% for domainObject in objectRegister.getSortedList %} 
     54      {% for domainObject in objectRegister.getSortedList %} 
    5555  <tr> 
    5656    <td> 
    5757      <a href="{{uriPrefix}}/{{registryPath}}/{{domainObject.getRegisterKeyValue}}/" title="{{domainObject.getRegisterKeyValue}}">{{domainObject.getLabelValue}}</a> 
    5858    </td> 
    59     {% block list_table_row_extn %}{% endblock %}  
    60     {% if view.canUpdateDomainObject %} 
     59        {% block list_table_row_extn %}{% endblock %}  
     60        {% if view.canUpdateDomainObject %} 
    6161    <td> 
    6262      <a href="{{uriPrefix}}/{{registryPath}}/{{domainObject.getRegisterKeyValue}}/update/" title="{{domainObject.getRegisterKeyValue}}" title="Update"> 
    6363        <img height="20" width="20" src="http://{{ systemMediaSocket }}{{ mediaPrefix }}/images/icon-edit.png" alt="Update" /> 
    6464      </a> 
    65       {% if view.canDeleteDomainObject %} 
     65          {% if view.canDeleteDomainObject %} 
    6666      <a href="{{uriPrefix}}/{{registryPath}}/{{domainObject.getRegisterKeyValue}}/delete/" title="{{domainObject.getRegisterKeyValue}}" title="Delete"> 
    6767        <img height="20" width="20" src="http://{{ systemMediaSocket }}{{ mediaPrefix }}/images/icon-delete.png" alt="Delete" /> 
    6868      </a> 
    69       {% endif %} 
     69          {% endif %} 
    7070    </td> 
    71     {% endif %} 
     71        {% endif %} 
    7272  </tr> 
    73   {% endfor %} 
     73      {% endfor %} 
    7474  </table> 
    7575</div> 
    7676 
    77 {% else %} 
     77    {% else %} 
    7878<div id="alphasearch"> 
    7979  <a href="{{uriPrefix}}/{{registryPath}}/find/a/">A</a> 
     
    114114  <a href="{{uriPrefix}}/{{registryPath}}/find/9/">9</a> 
    115115</div><!-- /alphasearch --> 
    116 {% endif %} 
     116    {% endif %} 
    117117 
    118 {% if showRegisterTable %} 
     118    {% if showRegisterTable %} 
    119119<table> 
    120120  <tr> 
    121   {% block table_key_name %}<th>{{domainClassName}}</th>{% endblock %} 
    122   {% block table_head_extn %}{% endblock %}  
    123   {% if view.canUpdateDomainObject %} 
     121      {% block table_key_name %}<th>{{domainClassName}}</th>{% endblock %} 
     122      {% block table_head_extn %}{% endblock %}  
     123      {% if view.canUpdateDomainObject %} 
    124124    <th>Actions</th> 
    125   {% endif %} 
     125      {% endif %} 
    126126  </tr> 
    127   {% for domainObject in domainObjectList %} 
     127      {% for domainObject in domainObjectList %} 
    128128  <tr{% block is_domain_object_inactive%}{% endblock %}> 
    129     {% block table_key_value %} 
     129        {% block table_key_value %} 
    130130    <td> 
    131131      <a href="{{uriPrefix}}/{{registryPath}}/{{domainObject.getRegisterKeyValue}}/" title="{{domainObject.getRegisterKeyValue}}">{{domainObject.getLabelValue}}</a> 
    132132    </td> 
    133     {% endblock %} 
    134     {% block table_row_extn %}{% endblock %} 
    135     {% if view.canUpdateDomainObject %} 
     133        {% endblock %} 
     134        {% block table_row_extn %}{% endblock %} 
     135        {% if view.canUpdateDomainObject %} 
    136136    <td><nobr> 
    137       {% block table_item_update_btn %} 
     137          {% block table_item_update_btn %} 
    138138      <a href="{{uriPrefix}}/{{registryPath}}/{{domainObject.getRegisterKeyValue}}/update/" title="Update"><img height="20" width="20" src="http://{{ systemMediaSocket }}{{ mediaPrefix }}/images/icon-edit.png" alt="Update"/></a> 
    139       {% endblock %} 
    140       {% block table_item_delete_btn %} 
    141         {% if view.canDeleteDomainObject %} 
     139          {% endblock %} 
     140          {% block table_item_delete_btn %} 
     141            {% if view.canDeleteDomainObject %} 
    142142      <a href="{{uriPrefix}}/{{registryPath}}/{{domainObject.getRegisterKeyValue}}/delete/" title="{{domainObject.getRegisterKeyValue}}" title="Delete"> 
    143143        <img height="20" width="20" src="http://{{ systemMediaSocket }}{{ mediaPrefix }}/images/icon-delete.png" alt="Delete" /> 
    144144      </a> 
     145            {% endif %} 
     146          {% endblock %} 
     147          {% block table_item_actions_extn %}{% endblock %} 
     148    </nobr></td> 
    145149        {% endif %} 
    146       {% endblock %} 
    147       {% block table_item_actions_extn %}{% endblock %} 
    148     </nobr></td
     150  </tr> 
     151      {% endfor %} 
     152</table
    149153    {% endif %} 
    150   </tr> 
    151   {% endfor %} 
    152 </table> 
    153 {% endif %} 
    154154 
    155 {% block creation %} 
    156 {% if view.canCreateDomainObject %} 
     155    {% block creation %} 
     156      {% if view.canCreateDomainObject %} 
    157157  <h3>Register new {{registerName}}</h3> 
    158158  <form action="{{uriPrefix}}/{{registryPath}}/create/" method="post 
     
    165165  <p class="desc">Fill in the following form to register new {{registerName}}</p> 
    166166  <br> 
    167 {% endif %} 
    168 {% endblock %} 
     167      {% endif %} 
     168    {% endblock %} 
    169169 
    170 {% if 0 %} 
     170    {% if 0 %} 
    171171  <h3>Search {{registerName}}</h3> 
    172172  <form action="{{uriPrefix}}/{{registryPath}}/search/" method="post"> 
     
    176176  <p class="desc">Please enter a search term and press 'Search'</p> 
    177177  <br> 
    178 {% endif %} 
     178    {% endif %} 
     179   
     180  {% endif %} 
    179181 
    180182{% endblock %}