{% extends "registry/master.html" %}

{% block content %}

  <h2>{{domainClassName}} {{domainObjectPersonalLabel}}</h2>
  
  <form>
  <fieldset>
    <legend>
      details
    </legend>
  {% for namedValue in domainObjectNamedValues %}
    <label for="id_{{ namedValue.name }}">
    {{ namedValue.name }}
    </label><br />
    <p><b>
    {% if namedValue.isDomainObjectRef %}
    <a href="{{uriPrefix}}/{{namedValue.registryAttrName}}/{{namedValue.value}}/">{{namedValue.label }}</a>
    {% else %}
      {% if namedValue.isAssociateList %}
    <a href="{{uriPrefix}}/{{registryAttribute}}/{{domainObject.getRegisterKeyValue}}/{{namedValue.name}}/">{{namedValue.label}}</a>
      {% else %}
    {{ namedValue.value }}
      {% endif %}
    {% endif %}
    </b></p>
  {% endfor %}
  </fieldset>
  </form>

  {% if view.canUpdateDomainObject %}
  <form action="{{uriPrefix}}/{{registryPath}}/update/" method="post">
    <strong>Do you wish to update this {{domainClassName}}?</strong><br />
    <p>
      <input type="submit" value="Update {{domainClassName}} &raquo;" />
    </p>
  </form>
    {% endif %}
    {% if view.canDeleteDomainObject %}
  <form action="{{uriPrefix}}/{{registryPath}}/delete/" method="post">
    <strong>Do you wish to delete this {{domainClassName}}?</strong><br />
    <p>
      <input type="submit" value="Delete {{domainClassName}} &raquo;" />
    </p>
  </form>
  {% endif %}

{% endblock %}

