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

{% block title %}Update {{domainClassName}}{% endblock %}

{% block content %}
{% block contentheading %}<h2>Update {{domainClassName}}</h2>{% endblock %}
{% if form.has_errors %}
<div class="form-errors">
  <h3>Sorry, the following problems prevented your updates from being saved.</h3>
  <ul>{% for errorMessage in form.getErrorMessages %}
    <li>{{ errorMessage }}</li>
  {% endfor %}</ul>
</div>
{% endif %}
<form action="." method="post">
  <input type="submit" name="submission" value="Submit &raquo;" /><br /><br />
  <fieldset>
    <legend>
      {% block updateformlegend %}{{domainClassName}} details{% endblock %}
    </legend>
  <ul id="attributes">
  {% for field in form.fields %}
  <li>
    <label for="id_{{ field.field_name }}">
    {% firstof field.field_title field.field_name %}
    {% if field.field_required %}
    <strong>*</strong>
    {% endif %}
    </label>
    <br />
    {{ field }}
    <p class="desc">{{ field.field_comment }}</p>
  </li>
  {% endfor %}
  </ul>
  </fieldset>

  Please check the details and
  <input type="submit" name="submission" value="Submit" />
  <br />  
  <br />  
  Make sure that all the fields marked with a <strong class="fieldset">*</strong> are filled in.

</form>


{% block update_form_after %}{% endblock %}

{% endblock %}

