Changeset 330

Show
Ignore:
Timestamp:
04/30/08 12:58:52 (8 months ago)
Author:
johnbywater
Message:

Named a few template 'blocks', to support extending the action buttons.

Files:

Legend:

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

    r264 r330  
    7070 
    7171  {% if resultsCount %} 
     72<br /> 
    7273<table> 
    7374  <tr> 
     
    7980  </tr> 
    8081    {% for domainObject in domainObjectList %} 
    81   <tr
     82  <tr{% block is_domain_object_inactive%}{% endblock %}
    8283    <td> 
    8384      <a href="{{uriPrefix}}/{{registryAttribute}}/{{ domainObject.getRegisterKeyValue }}/" title="{{ domainObject.getPersonalLabelValue }}">{{ domainObject.getPersonalLabel }}</a> 
     
    8687    {% if view.canUpdateDomainObject %} 
    8788    <td> 
     89      {% block find_item_update_btn %} 
    8890      <a href="{{uriPrefix}}/{{registryPath}}/{{domainObject.getRegisterKeyValue}}/update/" title="{{domainObject.getRegisterKeyValue}}" title="Update"> 
    8991        <img height="20" width="20" src="http://{{ systemMediaSocket }}{{ mediaPrefix }}/images/icon-edit.png" alt="Update" /> 
    9092      </a> 
     93      {% endblock %} 
     94      {% block find_item_delete_btn %} 
    9195      {% if view.canDeleteDomainObject %} 
    9296      <a href="{{uriPrefix}}/{{registryPath}}/{{domainObject.getRegisterKeyValue}}/delete/" title="{{domainObject.getRegisterKeyValue}}" title="Delete"> 
     
    9498      </a> 
    9599      {% endif %} 
     100      {% endblock %} 
     101      {% block find_item_actions_extn %} 
     102      {% endblock %} 
    96103    </td> 
    97104    {% endif %} 
  • trunk/src/dm/django/templates/registry/list.html

    r329 r330  
    4747    <td> 
    4848      {% block list_item_update_btn %} 
    49       <a href="{{uriPrefix}}/{{registryPath}}/{{domainObject.getRegisterKeyValue}}/update/" title="{{domainObject.getRegisterKeyValue}}" title="Update"> 
    50         <img height="20" width="20" src="http://{{ systemMediaSocket }}{{ mediaPrefix }}/images/icon-edit.png" alt="Update" /> 
    51       </a> 
     49      <a  
     50        href="{{uriPrefix}}/{{registryPath}}/{{domainObject.getRegisterKeyValue}}/update/"  
     51        title="Update" 
     52      ><img  
     53        height="20"  
     54        width="20" 
     55        src="http://{{ systemMediaSocket }}{{ mediaPrefix }}/images/icon-edit.png" 
     56        alt="Update"  
     57      /></a> 
    5258      {% endblock %} 
    5359      {% block list_item_delete_btn %} 
     
    5763      </a> 
    5864      {% endif %} 
     65      {% endblock %} 
     66      {% block list_item_actions_extn %} 
    5967      {% endblock %} 
    6068    </td> 
  • trunk/src/dm/django/templates/registry/search.html

    r264 r330  
    7070 
    7171  {% if resultsCount %} 
     72<br /> 
    7273<table> 
    7374  <tr> 
     
    7879    {% endif %} 
    7980  </tr> 
    80  
    8181    {% for domainObject in domainObjectList %} 
    82   <tr
     82  <tr{% block is_domain_object_inactive%}{% endblock %}
    8383    <td> 
    8484      <a href="{{uriPrefix}}/{{registryAttribute}}/{{ domainObject.getRegisterKeyValue }}/" title="{{ domainObject.getPersonalLabelValue }}">{{ domainObject.getPersonalLabel }}</a> 
     
    8787    {% if view.canUpdateDomainObject %} 
    8888    <td> 
     89      {% block search_item_update_btn %} 
    8990      <a href="{{uriPrefix}}/{{registryPath}}/{{domainObject.getRegisterKeyValue}}/update/" title="{{domainObject.getRegisterKeyValue}}" title="Update"> 
    9091        <img height="20" width="20" src="http://{{ systemMediaSocket }}{{ mediaPrefix }}/images/icon-edit.png" alt="Update" /> 
    9192      </a> 
     93      {% endblock %} 
     94      {% block search_item_delete_btn %} 
    9295      {% if view.canDeleteDomainObject %} 
    9396      <a href="{{uriPrefix}}/{{registryPath}}/{{domainObject.getRegisterKeyValue}}/delete/" title="{{domainObject.getRegisterKeyValue}}" title="Delete"> 
     
    9598      </a> 
    9699      {% endif %} 
     100      {% endblock %} 
     101      {% block search_item_actions_extn %} 
     102      {% endblock %} 
    97103    </td> 
    98104    {% endif %}