|
|
@@ -485,7 +485,12 @@
|
|
|
<div class="panel panel-default">
|
|
|
<div class="panel-heading">
|
|
|
<strong>Interfaces</strong>
|
|
|
- <div class="col-md-2 pull-right noprint">
|
|
|
+ <div class="pull-right noprint">
|
|
|
+ {% if request.user.is_authenticated %}
|
|
|
+ <button type="button" class="btn btn-default btn-xs" data-toggle="modal" data-target="#DeviceInterfaceTable_config" title="Configure table"><i class="fa fa-cog"></i> Configure</button>
|
|
|
+ {% endif %}
|
|
|
+ </div>
|
|
|
+ <div class="pull-right col-md-2 noprint">
|
|
|
<input class="form-control interface-filter" type="text" placeholder="Filter" title="Filter text (regular expressions supported)" style="height: 23px" />
|
|
|
</div>
|
|
|
</div>
|
|
|
@@ -527,6 +532,11 @@
|
|
|
<div class="panel panel-default">
|
|
|
<div class="panel-heading">
|
|
|
<strong>Front Ports</strong>
|
|
|
+ <div class="pull-right noprint">
|
|
|
+ {% if request.user.is_authenticated %}
|
|
|
+ <button type="button" class="btn btn-default btn-xs" data-toggle="modal" data-target="#DeviceFrontPortTable_config" title="Configure table"><i class="fa fa-cog"></i> Configure</button>
|
|
|
+ {% endif %}
|
|
|
+ </div>
|
|
|
</div>
|
|
|
{% include 'responsive_table.html' with table=frontport_table %}
|
|
|
<div class="panel-footer noprint">
|
|
|
@@ -564,6 +574,11 @@
|
|
|
<div class="panel panel-default">
|
|
|
<div class="panel-heading">
|
|
|
<strong>Rear Ports</strong>
|
|
|
+ <div class="pull-right noprint">
|
|
|
+ {% if request.user.is_authenticated %}
|
|
|
+ <button type="button" class="btn btn-default btn-xs" data-toggle="modal" data-target="#DeviceRearPortTable_config" title="Configure table"><i class="fa fa-cog"></i> Configure</button>
|
|
|
+ {% endif %}
|
|
|
+ </div>
|
|
|
</div>
|
|
|
{% include 'responsive_table.html' with table=rearport_table %}
|
|
|
<div class="panel-footer noprint">
|
|
|
@@ -601,6 +616,11 @@
|
|
|
<div class="panel panel-default">
|
|
|
<div class="panel-heading">
|
|
|
<strong>Console Ports</strong>
|
|
|
+ <div class="pull-right noprint">
|
|
|
+ {% if request.user.is_authenticated %}
|
|
|
+ <button type="button" class="btn btn-default btn-xs" data-toggle="modal" data-target="#DeviceConsolePortTable_config" title="Configure table"><i class="fa fa-cog"></i> Configure</button>
|
|
|
+ {% endif %}
|
|
|
+ </div>
|
|
|
</div>
|
|
|
{% include 'responsive_table.html' with table=consoleport_table %}
|
|
|
<div class="panel-footer noprint">
|
|
|
@@ -638,6 +658,11 @@
|
|
|
<div class="panel panel-default">
|
|
|
<div class="panel-heading">
|
|
|
<strong>Console Server Ports</strong>
|
|
|
+ <div class="pull-right noprint">
|
|
|
+ {% if request.user.is_authenticated %}
|
|
|
+ <button type="button" class="btn btn-default btn-xs" data-toggle="modal" data-target="#DeviceConsoleServerPortTable_config" title="Configure table"><i class="fa fa-cog"></i> Configure</button>
|
|
|
+ {% endif %}
|
|
|
+ </div>
|
|
|
</div>
|
|
|
{% include 'responsive_table.html' with table=consoleserverport_table %}
|
|
|
<div class="panel-footer noprint">
|
|
|
@@ -675,6 +700,11 @@
|
|
|
<div class="panel panel-default">
|
|
|
<div class="panel-heading">
|
|
|
<strong>Power Ports</strong>
|
|
|
+ <div class="pull-right noprint">
|
|
|
+ {% if request.user.is_authenticated %}
|
|
|
+ <button type="button" class="btn btn-default btn-xs" data-toggle="modal" data-target="#DevicePowerPortTable_config" title="Configure table"><i class="fa fa-cog"></i> Configure</button>
|
|
|
+ {% endif %}
|
|
|
+ </div>
|
|
|
</div>
|
|
|
{% include 'responsive_table.html' with table=powerport_table %}
|
|
|
<div class="panel-footer noprint">
|
|
|
@@ -711,6 +741,11 @@
|
|
|
<div class="panel panel-default">
|
|
|
<div class="panel-heading">
|
|
|
<strong>Power Outlets</strong>
|
|
|
+ <div class="pull-right noprint">
|
|
|
+ {% if request.user.is_authenticated %}
|
|
|
+ <button type="button" class="btn btn-default btn-xs" data-toggle="modal" data-target="#DevicePowerOutletTable_config" title="Configure table"><i class="fa fa-cog"></i> Configure</button>
|
|
|
+ {% endif %}
|
|
|
+ </div>
|
|
|
</div>
|
|
|
{% include 'responsive_table.html' with table=poweroutlet_table %}
|
|
|
<div class="panel-footer noprint">
|
|
|
@@ -748,6 +783,11 @@
|
|
|
<div class="panel panel-default">
|
|
|
<div class="panel-heading">
|
|
|
<strong>Device Bays</strong>
|
|
|
+ <div class="pull-right noprint">
|
|
|
+ {% if request.user.is_authenticated %}
|
|
|
+ <button type="button" class="btn btn-default btn-xs" data-toggle="modal" data-target="#DeviceDeviceBayTable_config" title="Configure table"><i class="fa fa-cog"></i> Configure</button>
|
|
|
+ {% endif %}
|
|
|
+ </div>
|
|
|
</div>
|
|
|
{% include 'responsive_table.html' with table=devicebay_table %}
|
|
|
<div class="panel-footer noprint">
|
|
|
@@ -779,6 +819,11 @@
|
|
|
<div class="panel panel-default">
|
|
|
<div class="panel-heading">
|
|
|
<strong>Inventory Items</strong>
|
|
|
+ <div class="pull-right noprint">
|
|
|
+ {% if request.user.is_authenticated %}
|
|
|
+ <button type="button" class="btn btn-default btn-xs" data-toggle="modal" data-target="#DeviceInventoryItemTable_config" title="Configure table"><i class="fa fa-cog"></i> Configure</button>
|
|
|
+ {% endif %}
|
|
|
+ </div>
|
|
|
</div>
|
|
|
{% include 'responsive_table.html' with table=inventoryitem_table %}
|
|
|
<div class="panel-footer noprint">
|
|
|
@@ -811,6 +856,15 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
{% include 'secrets/inc/private_key_modal.html' %}
|
|
|
+{% table_config_form interface_table %}
|
|
|
+{% table_config_form frontport_table %}
|
|
|
+{% table_config_form rearport_table %}
|
|
|
+{% table_config_form consoleport_table %}
|
|
|
+{% table_config_form consoleserverport_table %}
|
|
|
+{% table_config_form powerport_table %}
|
|
|
+{% table_config_form poweroutlet_table %}
|
|
|
+{% table_config_form devicebay_table %}
|
|
|
+{% table_config_form inventoryitem_table %}
|
|
|
{% endblock %}
|
|
|
|
|
|
{% block javascript %}
|
|
|
@@ -864,4 +918,5 @@ $(".cable-toggle").click(function() {
|
|
|
</script>
|
|
|
<script src="{% static 'js/interface_toggles.js' %}?v{{ settings.VERSION }}"></script>
|
|
|
<script src="{% static 'js/secrets.js' %}?v{{ settings.VERSION }}"></script>
|
|
|
+<script src="{% static 'js/tableconfig.js' %}?v{{ settings.VERSION }}"></script>
|
|
|
{% endblock %}
|