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

{% block title %}Register new {{registerName}}{% endblock %}

{% block content %}
<h2>Register new {{registerName}}</h2>
<p>Please enter the {{domainClassName}}'s details below.</p>

{% if form.has_errors %}
<div class="form-errors">
  <h3>Sorry, the following problems prevented the registration from being completed.</h3>
  <ul>{% for msg in form.getErrorMessages %}
    <li>{{ msg }}</li>
  {% endfor %}</ul>
</div>
{% endif %}

<form action="." method="post" id="create_form">
  Please check the details and
  <input type="submit" name="submission" value="Submit" /><br /><br />
  <fieldset>
    <legend>
      {{domainClassName}} details
    </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>
    <br>
    </li>
  {% endfor %}
  </ul>
  </fieldset>
  
  Please check the details and <input type="submit" name="submission" value="Submit" />
  <input type="hidden" name="returnPath" value="{{returnPath}}" />
</form>
{% endblock %}

