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

{% block content %}

<h2>Delete {{hasManyClassName}} on {{domainObjectKey}}</h2>
<p>
Please confirm deletion of this {{hasManyClassName}} 
on the {{domainObjectKey}} {{domainClassName}}.
</p>
<form action="{{uriPrefix}}/admin/model/delete/{{domainClassName}}/{{domainObjectKey}}/{{hasManyName}}/{{hasManyKey}}/" method="post">
  <fieldset>
    <legend>
      delete
    </legend>
  {% for namedValue in associationObjectNamedValues %}
    <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/{{associationObject.meta.name}}/{{associationObject.getRegisterKeyValue}}/{
{namedValue.name}}/">{{namedValue.label}}</a>
    {% else %}
        {{ namedValue.value }}
    {% endif %}
    {% endif %}
    </b></p>
  {% endfor %}
  </fieldset>
  <input type="submit" name="Submit" value="Confirm Delete &raquo;">
</form>
{% endblock %}
