mirror of
https://github.com/netbox-community/netbox.git
synced 2025-07-17 04:32:51 -06:00
Use shaded tabs
This commit is contained in:
parent
ebe7779f40
commit
d42138384f
BIN
netbox/project-static/dist/netbox-dark.css
vendored
BIN
netbox/project-static/dist/netbox-dark.css
vendored
Binary file not shown.
File diff suppressed because one or more lines are too long
BIN
netbox/project-static/dist/netbox-light.css
vendored
BIN
netbox/project-static/dist/netbox-light.css
vendored
Binary file not shown.
File diff suppressed because one or more lines are too long
@ -879,3 +879,15 @@ div.card > div.card-header > div.table-controls {
|
|||||||
font-size: $font-size-sm;
|
font-size: $font-size-sm;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Tabbed content
|
||||||
|
.nav-tabs {
|
||||||
|
.nav-link.active {
|
||||||
|
background-color: $tab-content-bg;
|
||||||
|
border-bottom-color: $tab-content-bg;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
.tab-content {
|
||||||
|
background-color: $tab-content-bg;
|
||||||
|
padding: $spacer;
|
||||||
|
}
|
||||||
|
@ -271,3 +271,6 @@ $code-color: $gray-200;
|
|||||||
$kbd-color: $white;
|
$kbd-color: $white;
|
||||||
$kbd-bg: $gray-300;
|
$kbd-bg: $gray-300;
|
||||||
$pre-color: null;
|
$pre-color: null;
|
||||||
|
|
||||||
|
// Tabbed content
|
||||||
|
$tab-content-bg: $gray-900;
|
||||||
|
@ -25,3 +25,6 @@ $list-group-color: $gray-700;
|
|||||||
$list-group-disabled-color: $gray-500;
|
$list-group-disabled-color: $gray-500;
|
||||||
|
|
||||||
$table-flush-header-bg: $gray-100;
|
$table-flush-header-bg: $gray-100;
|
||||||
|
|
||||||
|
// Tabbed content
|
||||||
|
$tab-content-bg: $gray-100;
|
||||||
|
@ -138,9 +138,11 @@
|
|||||||
{# Page content #}
|
{# Page content #}
|
||||||
<div id="content" class="container-fluid content px-0 m-0">
|
<div id="content" class="container-fluid content px-0 m-0">
|
||||||
{% block tabs %}{% endblock %}
|
{% block tabs %}{% endblock %}
|
||||||
|
{% block content-wrapper %}
|
||||||
<div class="px-3">
|
<div class="px-3">
|
||||||
{% block content %}{% endblock %}
|
{% block content %}{% endblock %}
|
||||||
</div>
|
</div>
|
||||||
|
{% endblock %}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{% if settings.BANNER_BOTTOM %}
|
{% if settings.BANNER_BOTTOM %}
|
||||||
|
@ -27,7 +27,7 @@
|
|||||||
</div>
|
</div>
|
||||||
{% render_field form.mark_connected %}
|
{% render_field form.mark_connected %}
|
||||||
{% with providernetwork_tab_active=form.initial.provider_network %}
|
{% with providernetwork_tab_active=form.initial.provider_network %}
|
||||||
<ul class="nav nav-tabs mb-3" role="tablist">
|
<ul class="nav nav-tabs" role="tablist">
|
||||||
<li class="nav-item" role="presentation">
|
<li class="nav-item" role="presentation">
|
||||||
<button class="nav-link{% if not providernetwork_tab_active %} active{% endif %}" role="tab" type="button" data-bs-target="#site" data-bs-toggle="tab">Site</button>
|
<button class="nav-link{% if not providernetwork_tab_active %} active{% endif %}" role="tab" type="button" data-bs-target="#site" data-bs-toggle="tab">Site</button>
|
||||||
</li>
|
</li>
|
||||||
|
@ -9,7 +9,7 @@
|
|||||||
|
|
||||||
{% block content %}
|
{% block content %}
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col col-md-10">
|
<div class="col">
|
||||||
<div class="card">
|
<div class="card">
|
||||||
<div class="card-overlay">
|
<div class="card-overlay">
|
||||||
<div class="spinner-border" role="status">
|
<div class="spinner-border" role="status">
|
||||||
@ -18,12 +18,12 @@
|
|||||||
</div>
|
</div>
|
||||||
<h5 class="card-header">Device Configuration</h5>
|
<h5 class="card-header">Device Configuration</h5>
|
||||||
<div class="card-body">
|
<div class="card-body">
|
||||||
<ul class="nav nav-tabs" role="tablist">
|
<ul class="nav nav-pills" role="tablist">
|
||||||
<li role="presentation"><a class="nav-link active" href="#running" aria-controls="running" role="tab" data-bs-toggle="tab">Running</a></li>
|
<li role="presentation"><a class="nav-link active" href="#running" aria-controls="running" role="tab" data-bs-toggle="tab">Running</a></li>
|
||||||
<li role="presentation"><a class="nav-link" href="#startup" aria-controls="startup" role="tab" data-bs-toggle="tab">Startup</a></li>
|
<li role="presentation"><a class="nav-link" href="#startup" aria-controls="startup" role="tab" data-bs-toggle="tab">Startup</a></li>
|
||||||
<li role="presentation"><a class="nav-link" href="#candidate" aria-controls="candidate" role="tab" data-bs-toggle="tab">Candidate</a></li>
|
<li role="presentation"><a class="nav-link" href="#candidate" aria-controls="candidate" role="tab" data-bs-toggle="tab">Candidate</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
<div class="tab-content pt-3">
|
<div class="tab-content p-3">
|
||||||
<div role="tabpanel" class="tab-pane active" id="running">
|
<div role="tabpanel" class="tab-pane active" id="running">
|
||||||
<pre id="running_config"></pre>
|
<pre id="running_config"></pre>
|
||||||
</div>
|
</div>
|
||||||
|
@ -148,7 +148,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="row my-3">
|
<div class="row my-3">
|
||||||
<div class="col col-md-12">
|
<div class="col col-md-12">
|
||||||
<ul class="nav nav-tabs" role="tablist">
|
<ul class="nav nav-pills" role="tablist">
|
||||||
<li class="nav-item" role="presentation">
|
<li class="nav-item" role="presentation">
|
||||||
<button class="nav-link active" data-bs-target="#interfaces" role="tab" data-bs-toggle="tab">
|
<button class="nav-link active" data-bs-target="#interfaces" role="tab" data-bs-toggle="tab">
|
||||||
Interfaces {% badge interface_table.rows|length %}
|
Interfaces {% badge interface_table.rows|length %}
|
||||||
@ -190,7 +190,7 @@
|
|||||||
</button>
|
</button>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
<div class="tab-content my-3">
|
<div class="tab-content p-0">
|
||||||
<div role="tabpanel" class="tab-pane active" id="interfaces">
|
<div role="tabpanel" class="tab-pane active" id="interfaces">
|
||||||
{% include 'dcim/inc/devicetype_component_table.html' with table=interface_table title='Interfaces' tab='interfaces' %}
|
{% include 'dcim/inc/devicetype_component_table.html' with table=interface_table title='Interfaces' tab='interfaces' %}
|
||||||
</div>
|
</div>
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
<ul class="nav nav-tabs justify-content-center" style="margin-bottom: 20px">
|
<ul class="nav nav-tabs px-3">
|
||||||
<li class="nav-item" role="presentation">
|
<li class="nav-item" role="presentation">
|
||||||
<a class ="nav-link{% if not active_tab %} active{% endif %}" href="{% url 'dcim:device_import' %}">Racked Devices</a>
|
<a class ="nav-link{% if not active_tab %} active{% endif %}" href="{% url 'dcim:device_import' %}">Racked Devices</a>
|
||||||
</li>
|
</li>
|
||||||
|
@ -52,7 +52,7 @@
|
|||||||
{% endblock controls %}
|
{% endblock controls %}
|
||||||
|
|
||||||
{% block tabs %}
|
{% block tabs %}
|
||||||
<ul class="nav nav-tabs mb-3 px-3">
|
<ul class="nav nav-tabs px-3">
|
||||||
{% block tab_items %}
|
{% block tab_items %}
|
||||||
<li class="nav-item" role="presentation">
|
<li class="nav-item" role="presentation">
|
||||||
<a class="nav-link{% if not active_tab %} active{% endif %}" href="{{ object.get_absolute_url }}">{{ object|meta:"verbose_name"|bettertitle }}</a>
|
<a class="nav-link{% if not active_tab %} active{% endif %}" href="{{ object.get_absolute_url }}">{{ object|meta:"verbose_name"|bettertitle }}</a>
|
||||||
@ -76,5 +76,11 @@
|
|||||||
</li>
|
</li>
|
||||||
{% endwith %}
|
{% endwith %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</ul>
|
</ul>
|
||||||
{% endblock tabs %}
|
{% endblock tabs %}
|
||||||
|
|
||||||
|
{% block content-wrapper %}
|
||||||
|
<div class="tab-content">
|
||||||
|
{% block content %}{% endblock %}
|
||||||
|
</div>
|
||||||
|
{% endblock %}
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
{% block title %}Editing {{ table.rows|length }} {{ obj_type_plural|bettertitle }}{% endblock %}
|
{% block title %}Editing {{ table.rows|length }} {{ obj_type_plural|bettertitle }}{% endblock %}
|
||||||
|
|
||||||
{% block tabs %}
|
{% block tabs %}
|
||||||
<ul class="nav nav-tabs mb-3 px-3">
|
<ul class="nav nav-tabs px-3">
|
||||||
<li class="nav-item" role="presentation">
|
<li class="nav-item" role="presentation">
|
||||||
<button class="nav-link active" id="edit-form-tab" data-bs-toggle="tab" data-bs-target="#edit-form" type="button" role="tab" aria-controls="edit-form" aria-selected="true">
|
<button class="nav-link active" id="edit-form-tab" data-bs-toggle="tab" data-bs-target="#edit-form" type="button" role="tab" aria-controls="edit-form" aria-selected="true">
|
||||||
Bulk Edit
|
Bulk Edit
|
||||||
@ -20,8 +20,9 @@
|
|||||||
</ul>
|
</ul>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
{% block content %}
|
{% block content-wrapper %}
|
||||||
<div class="tab-content">
|
<div class="tab-content">
|
||||||
|
{% block content %}
|
||||||
|
|
||||||
{# Edit form #}
|
{# Edit form #}
|
||||||
<div class="tab-pane show active" id="edit-form" role="tabpanel" aria-labelledby="edit-form-tab">
|
<div class="tab-pane show active" id="edit-form" role="tabpanel" aria-labelledby="edit-form-tab">
|
||||||
@ -61,5 +62,6 @@
|
|||||||
{% include 'inc/table.html' %}
|
{% include 'inc/table.html' %}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
{% endblock %}
|
||||||
</div>
|
</div>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
@ -4,16 +4,19 @@
|
|||||||
|
|
||||||
{% block title %}{{ obj_type|bettertitle }} Bulk Import{% endblock %}
|
{% block title %}{{ obj_type|bettertitle }} Bulk Import{% endblock %}
|
||||||
|
|
||||||
{% block content %}
|
{% block tabs %}
|
||||||
<div class="row">
|
<ul class="nav nav-tabs px-3">
|
||||||
<div class="col col-md-12 col-lg-10 offset-lg-1">
|
|
||||||
<ul class="nav nav-tabs mb-3" role="tablist">
|
|
||||||
<li class="nav-item" role="presentation">
|
<li class="nav-item" role="presentation">
|
||||||
<a href="#csv" class="nav-link active" role="tab" data-bs-toggle="tab">CSV</a>
|
<a class ="nav-link active" href="#">Bulk Import</a>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
|
{% endblock %}
|
||||||
|
|
||||||
|
{% block content-wrapper %}
|
||||||
<div class="tab-content">
|
<div class="tab-content">
|
||||||
<div role="tabpanel" class="tab-pane active" id="csv">
|
{% block content %}
|
||||||
|
<div class="row">
|
||||||
|
<div class="col col-md-12 col-lg-10 offset-lg-1">
|
||||||
<form action="" method="post" class="form">
|
<form action="" method="post" class="form">
|
||||||
{% csrf_token %}
|
{% csrf_token %}
|
||||||
{% render_form form %}
|
{% render_form form %}
|
||||||
@ -125,6 +128,6 @@
|
|||||||
{% endif %}
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
{% endblock content %}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
{% endblock %}
|
||||||
{% endblock content %}
|
|
||||||
|
@ -60,7 +60,7 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="row my-3">
|
<div class="row my-3">
|
||||||
<div class="col col-md-8 offset-md-2 col-lg-6 offset-lg-3 text-end">
|
<div class="col col-md-12 col-lg-10 offset-lg-1 text-end">
|
||||||
{% block buttons %}
|
{% block buttons %}
|
||||||
<a class="btn btn-outline-danger" href="{{ return_url }}">Cancel</a>
|
<a class="btn btn-outline-danger" href="{{ return_url }}">Cancel</a>
|
||||||
|
|
||||||
|
@ -25,7 +25,7 @@
|
|||||||
<div class="field-group">
|
<div class="field-group">
|
||||||
<h4 class="mb-3">Interface Assignment</h4>
|
<h4 class="mb-3">Interface Assignment</h4>
|
||||||
{% with vm_tab_active=form.initial.vminterface %}
|
{% with vm_tab_active=form.initial.vminterface %}
|
||||||
<ul class="nav nav-tabs mb-3" role="tablist">
|
<ul class="nav nav-tabs" role="tablist">
|
||||||
<li role="presentation" class="nav-item">
|
<li role="presentation" class="nav-item">
|
||||||
<button
|
<button
|
||||||
role="tab"
|
role="tab"
|
||||||
@ -52,7 +52,6 @@
|
|||||||
Virtual Machine
|
Virtual Machine
|
||||||
</button>
|
</button>
|
||||||
</li>
|
</li>
|
||||||
|
|
||||||
</ul>
|
</ul>
|
||||||
<div class="tab-content">
|
<div class="tab-content">
|
||||||
<div class="tab-pane {% if not vm_tab_active %}active{% endif %}" id="device" role="tabpanel" aria-labeled-by="device_tab">
|
<div class="tab-pane {% if not vm_tab_active %}active{% endif %}" id="device" role="tabpanel" aria-labeled-by="device_tab">
|
||||||
@ -69,7 +68,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="field-group">
|
<div class="field-group">
|
||||||
<h4 class="mb-3">NAT IP (Inside)</h4>
|
<h4 class="mb-3">NAT IP (Inside)</h4>
|
||||||
<ul class="nav nav-tabs mb-3" role="tablist">
|
<ul class="nav nav-tabs" role="tablist">
|
||||||
<li class="nav-item" role="presentation">
|
<li class="nav-item" role="presentation">
|
||||||
<button
|
<button
|
||||||
role="tab"
|
role="tab"
|
||||||
@ -125,9 +124,9 @@
|
|||||||
<div class="tab-pane" id="by_vrf" aria-labelledby="vrf_tab" role="tabpanel">
|
<div class="tab-pane" id="by_vrf" aria-labelledby="vrf_tab" role="tabpanel">
|
||||||
{% render_field form.nat_vrf %}
|
{% render_field form.nat_vrf %}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
{% render_field form.nat_inside %}
|
{% render_field form.nat_inside %}
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
{% if form.custom_fields %}
|
{% if form.custom_fields %}
|
||||||
<div class="field-group">
|
<div class="field-group">
|
||||||
<h4 class="mb-3">Custom Fields</h4>
|
<h4 class="mb-3">Custom Fields</h4>
|
||||||
|
@ -15,7 +15,7 @@
|
|||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
{% block tabs %}
|
{% block tabs %}
|
||||||
<ul class="nav nav-tabs" style="margin-bottom: 20px">
|
<ul class="nav nav-tabs px-3">
|
||||||
<li class="nav-item" role="presentation">
|
<li class="nav-item" role="presentation">
|
||||||
<a class="nav-link{% if not active_tab %} active{% endif %}" href="{% url 'ipam:vlan' pk=object.pk %}">VLAN</a>
|
<a class="nav-link{% if not active_tab %} active{% endif %}" href="{% url 'ipam:vlan' pk=object.pk %}">VLAN</a>
|
||||||
</li>
|
</li>
|
||||||
@ -37,3 +37,9 @@
|
|||||||
{% endif %}
|
{% endif %}
|
||||||
</ul>
|
</ul>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
|
{% block content-wrapper %}
|
||||||
|
<div class="tab-content">
|
||||||
|
{% block content %}{% endblock %}
|
||||||
|
</div>
|
||||||
|
{% endblock %}
|
||||||
|
@ -21,7 +21,7 @@
|
|||||||
<div class="field-group mb-3">
|
<div class="field-group mb-3">
|
||||||
<h4>Assignment</h4>
|
<h4>Assignment</h4>
|
||||||
{% with site_tab_active=form.initial.site %}
|
{% with site_tab_active=form.initial.site %}
|
||||||
<ul class="nav nav-tabs mb-3" role="tablist">
|
<ul class="nav nav-tabs" role="tablist">
|
||||||
<li class="nav-item" role="presentation">
|
<li class="nav-item" role="presentation">
|
||||||
<a class="nav-link{% if not site_tab_active %} active{% endif %}" href="#group" role="tab" data-bs-toggle="tab">VLAN Group</a>
|
<a class="nav-link{% if not site_tab_active %} active{% endif %}" href="#group" role="tab" data-bs-toggle="tab">VLAN Group</a>
|
||||||
</li>
|
</li>
|
||||||
|
Loading…
Reference in New Issue
Block a user