Files
netbox-community-netbox/netbox/templates/dcim/device_component_add.html
T

39 lines
1.2 KiB
HTML
Raw Normal View History

2021-05-17 16:27:27 -04:00
{% extends 'base/layout.html' %}
2016-06-15 13:27:12 -04:00
{% load form_helpers %}
{% block title %}Create {{ component_type }}{% endblock %}
2016-06-15 13:27:12 -04:00
2021-03-14 17:26:33 -07:00
{% render_errors form %}
2017-02-27 16:52:13 -05:00
{% block content %}
2021-04-22 15:58:57 -07:00
<form action="" method="post" enctype="multipart/form-data">
2016-06-15 13:27:12 -04:00
{% csrf_token %}
<div class="row">
2021-04-30 15:55:37 -07:00
<div class="col col-md-8">
2021-03-14 17:26:33 -07:00
<div class="field-group">
<h4>{{ component_type|title }}</h4>
{% render_form form %}
2021-03-13 11:16:29 -07:00
</div>
2016-06-15 13:27:12 -04:00
</div>
</div>
2021-03-14 17:26:33 -07:00
<div class="row my-3">
2021-04-30 15:55:37 -07:00
<div class="col col-md-8 text-end">
2021-03-14 17:26:33 -07:00
{% block buttons %}
<a class="btn btn-outline-danger" href="{{ return_url }}">Cancel</a>
{% if component_type == 'interface' and perms.ipam.add_ipaddress %}
<button type="submit" name="_assignip" class="btn btn-outline-success">
Create & Assign IP Address
</button>
{% endif %}
2021-03-14 17:26:33 -07:00
<button type="submit" name="_addanother" class="btn btn-outline-primary">
Create & Add Another
</button>
<button type="submit" name="_create" class="btn btn-primary">
Create
</button>
{% endblock %}
</div>
</div>
2016-06-15 13:27:12 -04:00
</form>
{% endblock %}