django-admin2/djadmin2/templates/admin2/bootstrap/model_add_form.html

21 lines
610 B
HTML
Raw Normal View History

2013-05-18 14:53:17 +00:00
{% extends "admin2/bootstrap/base.html" %}
2013-05-18 11:37:46 +00:00
{% block title %}Add {{ model }}{% endblock %}
{% block page_title %}Add {{ model }}{% endblock %}
2013-05-18 11:37:46 +00:00
{% block content %}
2013-05-18 12:36:14 +00:00
<form method="post">
{% csrf_token %}
{{ form.as_p }}
2013-05-21 21:50:50 +00:00
{# TODO: combine/refactor this with model_edit_form.html #}
<button class="btn btn-small" type="submit" name="_addanother">Save and add another</button>
<button class="btn btn-small" type="submit" name="_continue">Save and continue editing</button>
<button class="btn btn-small btn-success" type="submit" name="_save">Save</button>
2013-05-18 12:36:14 +00:00
</form>
2013-05-18 11:37:46 +00:00
{% endblock content %}