| 12345678910111213141516171819202122232425262728 |
- {% extends 'layout.html' %}
- {% load helpers %}
- {% load form_helpers %}
- {% block title %}Create {{ component_type }}{% endblock %}
- {% block content %}
- <form action="" method="post" class="form form-horizontal">
- {% csrf_token %}
- <div class="row mb-3">
- <div class="col-md-6">
- <div class="field-group">
- <h4>{{ component_type|bettertitle }}</h4>
- {% render_form form %}
- </div>
- </div>
- </div>
- <div class="row mb-3">
- <div class="col-md-6">
- <div class="float-end">
- <a href="{{ return_url }}" class="btn btn-outline-danger">Cancel</a>
- <button type="submit" name="_addanother" class="btn btn-outline-primary">Create & Add More</button>
- <button type="submit" name="_create" class="btn btn-primary">Create</button>
- </div>
- </div>
- </div>
- </form>
- {% endblock %}
|