umap/youmap/templates/chickpea/category_form.html
2012-12-20 22:51:55 +01:00

28 lines
No EOL
966 B
HTML

{% load youmap_tags %}
<form action="{{ action_url }}" method="post" id="category_edit">
{% csrf_token %}
{% for error in form.errors %}
<small class="error">{{ error }}</small>
{% endfor %}
{% foundation_field form.name %}
{% foundation_field form.description %}
{% foundation_field form.color %}
<div class="formbox columns twelve">
<div class="six columns">
{% foundation_field form.icon_class %}
</div>
<div class="six columns">
{% foundation_field form.pictogram %}
</div>
</div>
{% foundation_field form.rank %}
<div class="formbox">
<span>{{ form.preset.label }}</span>{{ form.preset }}
</div>
<small class="help-text">{{ form.preset.help_text }}</small>
{{ form.map }}
<input type="submit" class="button" />
{% if delete_url %}
<a href="{{ delete_url }}" id="delete_category_button" >Delete</a>
{% endif %}
</form>