Changeset 396
- Timestamp:
- 09/11/08 16:44:52 (4 months ago)
- Files:
-
- trunk/src/dm/django/templates/registry/list.html (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/src/dm/django/templates/registry/list.html
r392 r396 3 3 {% block content %} 4 4 5 {% if showRegisterSearch %}5 {% if showRegisterSearch %} 6 6 <div style="float: right;"> 7 7 <form action="{{uriPrefix}}/{{registryAttribute}}/search/" method="post"> … … 11 11 </form> 12 12 </div> 13 {% endif %}13 {% endif %} 14 14 15 {% block content_title %}<h2>{{registerNameTitle}}</h2>{% endblock %}15 {% block content_title %}<h2>{{registerNameTitle}}</h2>{% endblock %} 16 16 17 {% block table_comment %}17 {% block table_comment %} 18 18 19 19 <div id="register-table"></div> 20 20 21 {% block table_comment_before %}{% endblock %}21 {% block table_comment_before %}{% endblock %} 22 22 23 {% if isCountZero %}23 {% if isCountZero %} 24 24 <p>There are no {{registerName}} at this time.</p> 25 {% else %}26 {% if isCountSingle %}25 {% else %} 26 {% if isCountSingle %} 27 27 <p>There is one {{domainClassName}}.</p> 28 {% else %}28 {% else %} 29 29 <p> 30 30 There are {{ objectCount }} {{registerName}}. 31 {% if view.hasListallPage and showRegisterAllLink %}31 {% if view.hasListallPage and showRegisterAllLink %} 32 32 <a href="{{uriPrefix}}/{{registryPath}}/listall/">View full list.</a> 33 {% endif %} 34 </p> 33 35 {% endif %} 34 </p>35 36 {% endif %} 36 {% endif %}37 37 38 {% block table_comment_after %}{% endblock %}38 {% block table_comment_after %}{% endblock %} 39 39 40 {% endblock %}40 {% endblock %} 41 41 42 {% if registerCount %}43 {% if isRegisterCountLow %}42 {% if registerCount %} 43 {% if isRegisterCountLow %} 44 44 45 45 <div id="register-table"> … … 47 47 <tr> 48 48 <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 %} 51 51 <th>Actions</th> 52 {% endif %}52 {% endif %} 53 53 </tr> 54 {% for domainObject in objectRegister.getSortedList %}54 {% for domainObject in objectRegister.getSortedList %} 55 55 <tr> 56 56 <td> 57 57 <a href="{{uriPrefix}}/{{registryPath}}/{{domainObject.getRegisterKeyValue}}/" title="{{domainObject.getRegisterKeyValue}}">{{domainObject.getLabelValue}}</a> 58 58 </td> 59 {% block list_table_row_extn %}{% endblock %}60 {% if view.canUpdateDomainObject %}59 {% block list_table_row_extn %}{% endblock %} 60 {% if view.canUpdateDomainObject %} 61 61 <td> 62 62 <a href="{{uriPrefix}}/{{registryPath}}/{{domainObject.getRegisterKeyValue}}/update/" title="{{domainObject.getRegisterKeyValue}}" title="Update"> 63 63 <img height="20" width="20" src="http://{{ systemMediaSocket }}{{ mediaPrefix }}/images/icon-edit.png" alt="Update" /> 64 64 </a> 65 {% if view.canDeleteDomainObject %}65 {% if view.canDeleteDomainObject %} 66 66 <a href="{{uriPrefix}}/{{registryPath}}/{{domainObject.getRegisterKeyValue}}/delete/" title="{{domainObject.getRegisterKeyValue}}" title="Delete"> 67 67 <img height="20" width="20" src="http://{{ systemMediaSocket }}{{ mediaPrefix }}/images/icon-delete.png" alt="Delete" /> 68 68 </a> 69 {% endif %}69 {% endif %} 70 70 </td> 71 {% endif %}71 {% endif %} 72 72 </tr> 73 {% endfor %}73 {% endfor %} 74 74 </table> 75 75 </div> 76 76 77 {% else %}77 {% else %} 78 78 <div id="alphasearch"> 79 79 <a href="{{uriPrefix}}/{{registryPath}}/find/a/">A</a> … … 114 114 <a href="{{uriPrefix}}/{{registryPath}}/find/9/">9</a> 115 115 </div><!-- /alphasearch --> 116 {% endif %}116 {% endif %} 117 117 118 {% if showRegisterTable %}118 {% if showRegisterTable %} 119 119 <table> 120 120 <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 %} 124 124 <th>Actions</th> 125 {% endif %}125 {% endif %} 126 126 </tr> 127 {% for domainObject in domainObjectList %}127 {% for domainObject in domainObjectList %} 128 128 <tr{% block is_domain_object_inactive%}{% endblock %}> 129 {% block table_key_value %}129 {% block table_key_value %} 130 130 <td> 131 131 <a href="{{uriPrefix}}/{{registryPath}}/{{domainObject.getRegisterKeyValue}}/" title="{{domainObject.getRegisterKeyValue}}">{{domainObject.getLabelValue}}</a> 132 132 </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 %} 136 136 <td><nobr> 137 {% block table_item_update_btn %}137 {% block table_item_update_btn %} 138 138 <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 %} 142 142 <a href="{{uriPrefix}}/{{registryPath}}/{{domainObject.getRegisterKeyValue}}/delete/" title="{{domainObject.getRegisterKeyValue}}" title="Delete"> 143 143 <img height="20" width="20" src="http://{{ systemMediaSocket }}{{ mediaPrefix }}/images/icon-delete.png" alt="Delete" /> 144 144 </a> 145 {% endif %} 146 {% endblock %} 147 {% block table_item_actions_extn %}{% endblock %} 148 </nobr></td> 145 149 {% endif %} 146 {% endblock %}147 {% block table_item_actions_extn %}{% endblock%}148 </nobr></td>150 </tr> 151 {% endfor %} 152 </table> 149 153 {% endif %} 150 </tr>151 {% endfor %}152 </table>153 {% endif %}154 154 155 {% block creation %}156 {% if view.canCreateDomainObject %}155 {% block creation %} 156 {% if view.canCreateDomainObject %} 157 157 <h3>Register new {{registerName}}</h3> 158 158 <form action="{{uriPrefix}}/{{registryPath}}/create/" method="post … … 165 165 <p class="desc">Fill in the following form to register new {{registerName}}</p> 166 166 <br> 167 {% endif %}168 {% endblock %}167 {% endif %} 168 {% endblock %} 169 169 170 {% if 0 %}170 {% if 0 %} 171 171 <h3>Search {{registerName}}</h3> 172 172 <form action="{{uriPrefix}}/{{registryPath}}/search/" method="post"> … … 176 176 <p class="desc">Please enter a search term and press 'Search'</p> 177 177 <br> 178 {% endif %} 178 {% endif %} 179 180 {% endif %} 179 181 180 182 {% endblock %}
