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

{% block content %}

<h2>Create {{ domainClassName }}</h2>
<p>
Complete and submit the form to create a new {{ domainClassName }}.
</p>
  {% if form.has_errors %}
<div class="form-errors">
  <h3>Sorry, the following problems prevented object registration.</h3>
  <ul>
    {% for field in form.fields %}{% if field.error %}
    <li>{{ field.error }}</li>
    {% endif %}{% endfor %}
  </ul>
</div>
  {% endif %}
<form action="{{uriPrefix}}/admin/model/create/{{ domainClassName }}/" method="post">
  <fieldset>
    <legend>
      create
    </legend>
  {% for field in form.fields %}
    <label for="id_{{ field.field_name }}">{{ field.field_name }}
    {% if field.formfield.is_required %}
    <strong>*</strong>
    {% endif %}
    </label> 
    <br />
    {{ field }}
    <p class="desc">{{ field.field_comment }}</p>
    <br>
  {% endfor %}
  </fieldset>
  <input type="submit" name="Submit" value="Create {{domainClassName}} &raquo;">
</form>
{% endblock %}
