Changeset 338

Show
Ignore:
Timestamp:
04/30/08 22:32:25 (8 months ago)
Author:
johnbywater
Message:

Fixed up template blocks.

Files:

Legend:

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

    r330 r338  
    5858      {% endblock %} 
    5959      {% block list_item_delete_btn %} 
    60       {% if view.canDeleteDomainObject %} 
     60        {% if view.canDeleteDomainObject %} 
    6161      <a href="{{uriPrefix}}/{{registryPath}}/{{domainObject.getRegisterKeyValue}}/delete/" title="{{domainObject.getRegisterKeyValue}}" title="Delete"> 
    6262        <img height="20" width="20" src="http://{{ systemMediaSocket }}{{ mediaPrefix }}/images/icon-delete.png" alt="Delete" /> 
    6363      </a> 
    64       {% endif %} 
     64        {% endif %} 
    6565      {% endblock %} 
    66       {% block list_item_actions_extn %} 
    67       {% endblock %} 
     66      {% block list_item_actions_extn %}{% endblock %} 
    6867    </td> 
    6968    {% endif %} 
  • trunk/src/dm/django/templates/registry/listall.html

    r314 r338  
    55<h2>{{registerNameTitle}}</h2> 
    66 
    7 {% if isRegisterCountZero %} 
    8  
     7{% block list_table_comment %} 
     8  {% if isRegisterCountZero %} 
    99  <p>There are no {{registerName}} at this time.</p> 
    10  
    11 {% else %} 
    12 {% if isRegisterCountSingle %} 
    13  
     10    {% else %} 
     11    {% if isRegisterCountSingle %} 
    1412  <!-- <p>There is one registered.</p> --> 
    15    
    16 {% else %} 
    17  
     13    {% else %} 
    1814  <p> 
    1915    There are {{ registerCount }} registered {{registerName}}. 
    2016  </p> 
    21  
    22  
    23 {% endif %} 
    24 {% endif %} 
     17    {% endif %} 
     18  {% endif %} 
     19{% endblock %} 
    2520 
    2621{% if registerCount %} 
     
    3530  </tr> 
    3631  {% for domainObject in objectRegister.getSortedList %} 
    37   <tr
     32  <tr{% block is_domain_object_inactive%}{% endblock %}
    3833    <td> 
    3934      <a href="{{uriPrefix}}/{{registryPath}}/{{domainObject.getRegisterKeyValue}}/" title="{{domainObject.getRegisterKeyValue}}">{{domainObject.getLabelValue}}</a> 
     
    4237    {% if view.canUpdateDomainObject %} 
    4338    <td> 
    44       <a href="{{uriPrefix}}/{{registryPath}}/{{domainObject.getRegisterKeyValue}}/update/" title="{{domainObject.getRegisterKeyValue}}" title="Update"> 
     39      {% block list_item_update_btn %} 
     40      <a href="{{uriPrefix}}/{{registryPath}}/{{domainObject.getRegisterKeyValue}}/update/" title="Update"> 
    4541        <img height="20" width="20" src="http://{{ systemMediaSocket }}{{ mediaPrefix }}/images/icon-edit.png" alt="Update" /> 
    4642      </a> 
     43      {% endblock %} 
     44      {% block list_item_delete_btn %} 
    4745      {% if view.canDeleteDomainObject %} 
    48       <a href="{{uriPrefix}}/{{registryPath}}/{{domainObject.getRegisterKeyValue}}/delete/" title="{{domainObject.getRegisterKeyValue}}" title="Delete"> 
     46      <a href="{{uriPrefix}}/{{registryPath}}/{{domainObject.getRegisterKeyValue}}/delete/" title="Delete"> 
    4947        <img height="20" width="20" src="http://{{ systemMediaSocket }}{{ mediaPrefix }}/images/icon-delete.png" alt="Delete" /> 
    5048      </a> 
    5149      {% endif %} 
     50      {% endblock %} 
     51      {% block list_item_actions_extn %}{% endblock %} 
    5252    </td> 
    5353    {% endif %}