mirror of
https://github.com/netbox-community/netbox.git
synced 2024-05-10 07:54:54 +00:00
46 lines
1.7 KiB
HTML
46 lines
1.7 KiB
HTML
|
{% extends '_base.html' %}
|
||
|
{% load form_helpers %}
|
||
|
|
||
|
{% block title %}{% if vrf %}Editing VRF {{ vrf }}{% else %}Add a VRF{% endif %}{% endblock %}
|
||
|
|
||
|
{% block content %}
|
||
|
{% if vrf %}
|
||
|
<h1>{{ vrf }}</h1>
|
||
|
{% else %}
|
||
|
<h1>Add a VRF</h1>
|
||
|
{% endif %}
|
||
|
<form action="." method="post" class="form form-horizontal">
|
||
|
{% csrf_token %}
|
||
|
<div class="row">
|
||
|
<div class="col-md-6 col-md-offset-3">
|
||
|
{% if form.non_field_errors %}
|
||
|
<div class="panel panel-danger">
|
||
|
<div class="panel-heading"><strong>Errors</strong></div>
|
||
|
<div class="panel-body">
|
||
|
{{ form.non_field_errors }}
|
||
|
</div>
|
||
|
</div>
|
||
|
{% endif %}
|
||
|
<div class="panel panel-default">
|
||
|
<div class="panel-heading"><strong>VRF</strong></div>
|
||
|
<div class="panel-body">
|
||
|
{% render_form form %}
|
||
|
</div>
|
||
|
</div>
|
||
|
<div class="form-group">
|
||
|
<div class="col-md-9 col-md-offset-3">
|
||
|
{% if vrf %}
|
||
|
<button type="submit" name="_update" class="btn btn-primary">Update</button>
|
||
|
<a href="{% url 'ipam:vrf' pk=vrf.pk %}" class="btn btn-default">Cancel</a>
|
||
|
{% else %}
|
||
|
<button type="submit" name="_create" class="btn btn-primary">Create</button>
|
||
|
<button type="submit" name="_addanother" class="btn btn-primary">Create and Add Another</button>
|
||
|
<a href="{% url 'ipam:vrf_list' %}" class="btn btn-default">Cancel</a>
|
||
|
{% endif %}
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
</form>
|
||
|
{% endblock %}
|