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

{% block content %}

<h2>{{domainClassName}} {{ domainObject.getLabelValue }}</h2>
<p>
  A record of the <a href="{{uriPrefix}}/admin/model/{{domainClassName}}/"><b>{{domainClassName}}</b></a> register.
  <br>
</p>

<form>
  <fieldset>
    <legend>
      {{domainObjectKey}}
    </legend>
  {% for namedValue in domainObjectNamedValues %}
    <label">
    {{ namedValue.name }}
    </label><br />
    <p><b>
    {% if namedValue.isDomainObjectRef %}
        <a href="{{uriPrefix}}/admin/model/{{namedValue.typeName}}/{{namedValue.value}}/">{{ namedValue.label }}</a>
    {% else %}{% if namedValue.isAssociateList %}
        <a href="{{uriPrefix}}/admin/model/{{domainClassName}}/{{domainObjectKey}}/{{namedValue.name}}/">{{namedValue.label}}</a>
    {% else %}
        {{ namedValue.value }}
    {% endif %}
    {% endif %}
    </b></p>
  {% endfor %}
  </fieldset>
</form>

<form action="{{uriPrefix}}/admin/model/update/{{domainClassName}}/{{domainObjectKey}}/" method="post">
  <input type="submit" value="Update {{domainClassName}} &raquo;">
</form>
<form action="{{uriPrefix}}/admin/model/delete/{{domainClassName}}/{{domainObjectKey}}/" method="post">
  <input type="submit" value="Delete {{domainClassName}} &raquo;">
</form>
{% endblock %}

