Standardized template names

This commit is contained in:
Jeremy Stretch 2017-01-05 15:31:41 -05:00
parent 381eb664cf
commit 09fe328c3f
17 changed files with 16 additions and 16 deletions

View File

@ -6,7 +6,7 @@
{% block title %}{{ device }}{% endblock %} {% block title %}{{ device }}{% endblock %}
{% block content %} {% block content %}
{% include 'dcim/inc/_device_header.html' with active_tab='info' %} {% include 'dcim/inc/device_header.html' with active_tab='info' %}
<div class="row"> <div class="row">
<div class="col-md-5 col-lg-6"> <div class="col-md-5 col-lg-6">
<div class="panel panel-default"> <div class="panel panel-default">
@ -183,7 +183,7 @@
{% if ip_addresses %} {% if ip_addresses %}
<table class="table table-hover panel-body"> <table class="table table-hover panel-body">
{% for ip in ip_addresses %} {% for ip in ip_addresses %}
{% include 'dcim/inc/_ipaddress.html' %} {% include 'dcim/inc/ipaddress.html' %}
{% endfor %} {% endfor %}
</table> </table>
{% elif interfaces or mgmt_interfaces %} {% elif interfaces or mgmt_interfaces %}
@ -212,7 +212,7 @@
{% if services %} {% if services %}
<table class="table table-hover panel-body"> <table class="table table-hover panel-body">
{% for service in services %} {% for service in services %}
{% include 'dcim/inc/_service.html' %} {% include 'dcim/inc/service.html' %}
{% endfor %} {% endfor %}
</table> </table>
{% else %} {% else %}
@ -234,7 +234,7 @@
</div> </div>
<table class="table table-hover panel-body"> <table class="table table-hover panel-body">
{% for iface in mgmt_interfaces %} {% for iface in mgmt_interfaces %}
{% include 'dcim/inc/_interface.html' with icon='wrench' %} {% include 'dcim/inc/interface.html' with icon='wrench' %}
{% empty %} {% empty %}
<tr> <tr>
<td colspan="5" class="alert-warning"> <td colspan="5" class="alert-warning">
@ -246,7 +246,7 @@
</tr> </tr>
{% endfor %} {% endfor %}
{% for cp in console_ports %} {% for cp in console_ports %}
{% include 'dcim/inc/_consoleport.html' %} {% include 'dcim/inc/consoleport.html' %}
{% empty %} {% empty %}
<tr> <tr>
<td colspan="5" class="alert-warning"> <td colspan="5" class="alert-warning">
@ -258,7 +258,7 @@
</tr> </tr>
{% endfor %} {% endfor %}
{% for pp in power_ports %} {% for pp in power_ports %}
{% include 'dcim/inc/_powerport.html' %} {% include 'dcim/inc/powerport.html' %}
{% empty %} {% empty %}
<tr> <tr>
<td colspan="5" class="alert-warning"> <td colspan="5" class="alert-warning">
@ -349,7 +349,7 @@
</div> </div>
<table class="table table-hover panel-body"> <table class="table table-hover panel-body">
{% for devicebay in device_bays %} {% for devicebay in device_bays %}
{% include 'dcim/inc/_devicebay.html' with selectable=True %} {% include 'dcim/inc/devicebay.html' with selectable=True %}
{% empty %} {% empty %}
<tr> <tr>
<td colspan="4">No device bays defined</td> <td colspan="4">No device bays defined</td>
@ -401,7 +401,7 @@
</div> </div>
<table class="table table-hover panel-body"> <table class="table table-hover panel-body">
{% for iface in interfaces %} {% for iface in interfaces %}
{% include 'dcim/inc/_interface.html' with selectable=True %} {% include 'dcim/inc/interface.html' with selectable=True %}
{% empty %} {% empty %}
<tr> <tr>
<td colspan="4">No interfaces defined</td> <td colspan="4">No interfaces defined</td>
@ -458,7 +458,7 @@
</div> </div>
<table class="table table-hover panel-body"> <table class="table table-hover panel-body">
{% for csp in cs_ports %} {% for csp in cs_ports %}
{% include 'dcim/inc/_consoleserverport.html' with selectable=True %} {% include 'dcim/inc/consoleserverport.html' with selectable=True %}
{% empty %} {% empty %}
<tr> <tr>
<td colspan="4">No console server ports defined</td> <td colspan="4">No console server ports defined</td>
@ -510,7 +510,7 @@
</div> </div>
<table class="table table-hover panel-body"> <table class="table table-hover panel-body">
{% for po in power_outlets %} {% for po in power_outlets %}
{% include 'dcim/inc/_poweroutlet.html' with selectable=True %} {% include 'dcim/inc/poweroutlet.html' with selectable=True %}
{% empty %} {% empty %}
<tr> <tr>
<td colspan="4">No power outlets defined</td> <td colspan="4">No power outlets defined</td>

View File

@ -5,7 +5,7 @@
{% block title %}Device Import{% endblock %} {% block title %}Device Import{% endblock %}
{% block content %} {% block content %}
{% include 'dcim/inc/_device_import_header.html' %} {% include 'dcim/inc/device_import_header.html' %}
<div class="row"> <div class="row">
<div class="col-md-12"> <div class="col-md-12">
<form action="." method="post" class="form"> <form action="." method="post" class="form">

View File

@ -5,7 +5,7 @@
{% block title %}Device Import{% endblock %} {% block title %}Device Import{% endblock %}
{% block content %} {% block content %}
{% include 'dcim/inc/_device_import_header.html' with active_tab='child_import' %} {% include 'dcim/inc/device_import_header.html' with active_tab='child_import' %}
<div class="row"> <div class="row">
<div class="col-md-12"> <div class="col-md-12">
<form action="." method="post" class="form"> <form action="." method="post" class="form">

View File

@ -3,7 +3,7 @@
{% block title %}{{ device }} - Inventory{% endblock %} {% block title %}{{ device }} - Inventory{% endblock %}
{% block content %} {% block content %}
{% include 'dcim/inc/_device_header.html' with active_tab='inventory' %} {% include 'dcim/inc/device_header.html' with active_tab='inventory' %}
<div class="row"> <div class="row">
<div class="col-md-4"> <div class="col-md-4">
<div class="panel panel-default"> <div class="panel panel-default">

View File

@ -3,7 +3,7 @@
{% block title %}{{ device }} - LLDP Neighbors{% endblock %} {% block title %}{{ device }} - LLDP Neighbors{% endblock %}
{% block content %} {% block content %}
{% include 'dcim/inc/_device_header.html' with active_tab='lldp-neighbors' %} {% include 'dcim/inc/device_header.html' with active_tab='lldp-neighbors' %}
<div class="panel panel-default"> <div class="panel panel-default">
<div class="panel-heading"> <div class="panel-heading">
<strong>LLDP Neighbors</strong> <strong>LLDP Neighbors</strong>

View File

@ -195,13 +195,13 @@
<div class="rack_header"> <div class="rack_header">
<h4>Front</h4> <h4>Front</h4>
</div> </div>
{% include 'dcim/inc/_rack_elevation.html' with primary_face=front_elevation secondary_face=rear_elevation face_id=0 %} {% include 'dcim/inc/rack_elevation.html' with primary_face=front_elevation secondary_face=rear_elevation face_id=0 %}
</div> </div>
<div class="col-md-6 col-sm-6 col-xs-12"> <div class="col-md-6 col-sm-6 col-xs-12">
<div class="rack_header"> <div class="rack_header">
<h4>Rear</h4> <h4>Rear</h4>
</div> </div>
{% include 'dcim/inc/_rack_elevation.html' with primary_face=rear_elevation secondary_face=front_elevation face_id=1 %} {% include 'dcim/inc/rack_elevation.html' with primary_face=rear_elevation secondary_face=front_elevation face_id=1 %}
</div> </div>
</div> </div>
</div> </div>