2021-04-18 00:22:52 -07:00
|
|
|
{% extends 'layout.html' %}
|
2017-08-18 14:37:19 -04:00
|
|
|
{% load helpers %}
|
|
|
|
{% load form_helpers %}
|
|
|
|
|
2020-09-04 15:10:34 -04:00
|
|
|
{% block title %}Create {{ component_type }}{% endblock %}
|
2017-08-18 14:37:19 -04:00
|
|
|
|
|
|
|
{% block content %}
|
2020-02-05 12:36:38 -05:00
|
|
|
<form action="" method="post" class="form form-horizontal">
|
2017-08-18 14:37:19 -04:00
|
|
|
{% csrf_token %}
|
2021-04-18 00:22:52 -07:00
|
|
|
<div class="row mb-3">
|
2021-04-30 15:55:37 -07:00
|
|
|
<div class="col col-md-6">
|
2021-04-18 00:22:52 -07:00
|
|
|
<div class="field-group">
|
|
|
|
<h4>{{ component_type|bettertitle }}</h4>
|
|
|
|
{% render_form form %}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="row mb-3">
|
2021-04-30 15:55:37 -07:00
|
|
|
<div class="col col-md-6">
|
2021-04-18 00:22:52 -07:00
|
|
|
<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>
|
2017-08-18 14:37:19 -04:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
{% endblock %}
|