mirror of
https://github.com/netbox-community/netbox.git
synced 2025-07-23 17:08:41 -06:00
Updated templates to reflect new CBVs
This commit is contained in:
parent
2ee71b67e9
commit
606255e1ab
@ -1,8 +1,8 @@
|
|||||||
{% extends 'utilities/confirmation_form.html' %}
|
{% extends 'utilities/confirmation_form.html' %}
|
||||||
{% load form_helpers %}
|
{% load form_helpers %}
|
||||||
|
|
||||||
{% block title %}Delete device {{ device }}?{% endblock %}
|
{% block title %}Delete device {{ obj }}?{% endblock %}
|
||||||
|
|
||||||
{% block message %}
|
{% block message %}
|
||||||
<p>Are you sure you want to delete <strong>{{ device }}</strong>?</p>
|
<p>Are you sure you want to delete <strong>{{ obj }}</strong>?</p>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
@ -1,11 +1,11 @@
|
|||||||
{% extends '_base.html' %}
|
{% extends '_base.html' %}
|
||||||
{% load form_helpers %}
|
{% load form_helpers %}
|
||||||
|
|
||||||
{% block title %}{% if device %}Editing device {{ device }}{% else %}Add a device{% endif %}{% endblock %}
|
{% block title %}{% if obj %}Editing device {{ obj }}{% else %}Add a device{% endif %}{% endblock %}
|
||||||
|
|
||||||
{% block content %}
|
{% block content %}
|
||||||
{% if device %}
|
{% if obj %}
|
||||||
<h1>{{ device }}</h1>
|
<h1>{{ obj }}</h1>
|
||||||
{% else %}
|
{% else %}
|
||||||
<h1>Add a Device</h1>
|
<h1>Add a Device</h1>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
@ -62,7 +62,7 @@
|
|||||||
<div class="panel-body">
|
<div class="panel-body">
|
||||||
{% render_field form.platform %}
|
{% render_field form.platform %}
|
||||||
{% render_field form.status %}
|
{% render_field form.status %}
|
||||||
{% if device %}{% render_field form.primary_ip %}{% endif %}
|
{% if obj %}{% render_field form.primary_ip %}{% endif %}
|
||||||
{% render_field form.ro_snmp %}
|
{% render_field form.ro_snmp %}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@ -70,9 +70,9 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-md-12 text-right">
|
<div class="col-md-12 text-right">
|
||||||
{% if device %}
|
{% if obj %}
|
||||||
<button type="submit" name="_update" class="btn btn-primary">Update</button>
|
<button type="submit" name="_update" class="btn btn-primary">Update</button>
|
||||||
<a href="{% url 'dcim:device' pk=device.pk %}" class="btn btn-default">Cancel</a>
|
<a href="{% url 'dcim:device' pk=obj.pk %}" class="btn btn-default">Cancel</a>
|
||||||
{% else %}
|
{% else %}
|
||||||
<button type="submit" name="_create" class="btn btn-primary">Create</button>
|
<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>
|
<button type="submit" name="_addanother" class="btn btn-primary">Create and Add Another</button>
|
||||||
|
Loading…
Reference in New Issue
Block a user