1
0
mirror of https://github.com/netbox-community/netbox.git synced 2024-05-10 07:54:54 +00:00

Refactored device component creation views

This commit is contained in:
Jeremy Stretch
2016-12-21 17:20:27 -05:00
parent 0e4d02bd10
commit 3de51876d0
4 changed files with 164 additions and 142 deletions

View File

@@ -1,7 +1,7 @@
{% extends '_base.html' %}
{% load form_helpers %}
{% block title %}Create {{ component_type }} ({{ device }}){% endblock %}
{% block title %}Create {{ component_type }} ({{ parent }}){% endblock %}
{% block content %}{{ form.errors }}
<form action="." method="post" class="form form-horizontal">
@@ -24,7 +24,7 @@
<div class="form-group">
<label class="col-md-3 control-label required">Device</label>
<div class="col-md-9">
<p class="form-control-static">{{ device }}</p>
<p class="form-control-static">{{ parent }}</p>
</div>
</div>
{% render_form form %}

View File

@@ -1,7 +1,7 @@
{% extends '_base.html' %}
{% load form_helpers %}
{% block title %}Add {{ component_type }} to {{ devicetype }}{% endblock %}
{% block title %}Add {{ component_type }} to {{ parent }}{% endblock %}
{% block content %}
<form action="." method="post" class="form form-horizontal">
@@ -24,7 +24,7 @@
<div class="form-group">
<label class="col-md-3 control-label required">Device Type</label>
<div class="col-md-9">
<p class="form-control-static">{{ devicetype }}</p>
<p class="form-control-static">{{ parent }}</p>
</div>
</div>
{% render_form form %}