mirror of
https://github.com/netbox-community/netbox.git
synced 2024-05-10 07:54:54 +00:00
34 lines
1.2 KiB
HTML
34 lines
1.2 KiB
HTML
{% extends 'base.html' %}
|
|
{% load form_helpers %}
|
|
|
|
{% block title %}Create {{ component_type }}{% endblock %}
|
|
|
|
{% block content %}
|
|
<form action="" method="post">
|
|
{% csrf_token %}
|
|
<div class="row">
|
|
<div class="col-md-6 col-md-offset-3">
|
|
{% if form.non_field_errors %}
|
|
<div class="card bg-danger">
|
|
<h5 class="card-header">Errors</h5>
|
|
<div class="card-body">
|
|
{{ form.non_field_errors }}
|
|
</div>
|
|
</div>
|
|
{% endif %}
|
|
<div class="card">
|
|
<h5 class="card-header">{{ component_type|title }}</h5>
|
|
<div class="card-body">
|
|
{% render_form form %}
|
|
</div>
|
|
</div>
|
|
<div class="col-md-9 col-md-offset-3">
|
|
<button type="submit" name="_create" class="btn btn-primary">Create</button>
|
|
<button type="submit" name="_addanother" class="btn btn-primary">Create and Add More</button>
|
|
<a href="{{ return_url }}" class="btn btn-default">Cancel</a>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</form>
|
|
{% endblock %}
|