Changeset 407

Show
Ignore:
Timestamp:
09/23/08 17:35:06 (4 months ago)
Author:
johnbywater
Message:

Tweaks to registry templates.

Files:

Legend:

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

    r317 r407  
    1010  {% endif %} 
    1111</div> 
     12 
     13  {% if view.canApprovePersons %} 
     14    {% if view.registry.persons.getPending.count %} 
     15<div class="box"> 
     16  <ul> 
     17    <li><a href="{{ uriPrefix }}/persons/pending/"><b>Pending Registrations ({{ view.registry.persons.getPending.count }})</b></a></li> 
     18  </ul> 
     19</div> 
     20    {% endif %} 
     21  {% endif %} 
     22 
    1223{% endblock %} 
    1324 
  • trunk/src/dm/django/templates/registry/read.html

    r377 r407  
    55  <h2>{{domainClassName}} {{domainObjectPersonalLabel}}</h2> 
    66 
     7  {% if view.canUpdateDomainObject %} 
     8  <form action="{{uriPrefix}}/{{registryPath}}/update/" method="post"> 
     9      <input type="submit" value="Update &raquo;" /> 
     10      <br /><br /> 
     11  </form> 
     12    {% endif %} 
    713  <form> 
     14 
    815  <fieldset> 
    916  {% block fieldset_details_before %}{% endblock %} 
     
    2330    {% if namedValue.isDomainObjectRef %} 
    2431      {% if namedValue.isSimpleOption %} 
    25       {{ namedValue.label }
     32      {% firstof namedValue.label "&nbsp;" %
    2633      {% else %} 
    2734    <a href="{{uriPrefix}}/{{namedValue.registryAttrName}}/{{namedValue.value}}/">{{namedValue.label }}</a> 
     
    2936    {% else %} 
    3037      {% if namedValue.isAssociateList %} 
    31         {% for associatedNamedValue in namedValue.associatedNamedValues %} 
     38        {% if namedValue.associatedNamedValues %} 
     39          {% for associatedNamedValue in namedValue.associatedNamedValues %} 
    3240    <a href="{{uriPrefix}}/{{associatedNamedValue.associatedObject.getRegistryAttrName}}/{{associatedNamedValue.key}}/">{{associatedNamedValue.label }}</a> 
    33         {% endfor %} 
     41          {% endfor %} 
     42        {% else %} 
     43        &nbsp; 
     44        {% endif %} 
    3445      {% else %} 
    35         {{ namedValue.label }
     46      {% firstof namedValue.label "&nbsp;" %
    3647      {% endif %} 
    3748    {% endif %}