mirror of
https://github.com/netbox-community/netbox.git
synced 2024-05-10 07:54:54 +00:00
68 lines
2.6 KiB
HTML
68 lines
2.6 KiB
HTML
{% extends 'generic/object_edit.html' %}
|
|
{% load form_helpers %}
|
|
{% load helpers %}
|
|
|
|
{% block form %}
|
|
<div class="field-group">
|
|
<h4>VLAN Group</h4>
|
|
{% render_field form.name %}
|
|
{% render_field form.slug %}
|
|
{% render_field form.description %}
|
|
</div>
|
|
<div class="field-group">
|
|
<h4>Scope</h4>
|
|
{% with virtual_tab_active=form.initial.cluster %}
|
|
<ul class="nav nav-tabs" role="tablist">
|
|
<li class="nav-item" role="presentation">
|
|
<button
|
|
role="tab"
|
|
type="button"
|
|
id="physical_tab"
|
|
data-bs-toggle="tab"
|
|
aria-controls="physical"
|
|
data-bs-target="#physical"
|
|
class="nav-link {% if not virtual_tab_active %}active{% endif %}"
|
|
>
|
|
Physical
|
|
</button>
|
|
</li>
|
|
<li class="nav-item" role="presentation">
|
|
<button
|
|
role="tab"
|
|
type="button"
|
|
id="virtual_tab"
|
|
data-bs-toggle="tab"
|
|
aria-controls="virtual"
|
|
data-bs-target="#virtual"
|
|
class="nav-link {% if virtual_tab_active %}active{% endif %}"
|
|
>
|
|
Virtual
|
|
</button>
|
|
</li>
|
|
</ul>
|
|
<div class="card my-3">
|
|
<div class="card-body tab-content">
|
|
<div class="tab-pane{% if not virtual_tab_active %} active{% endif %}" id="physical">
|
|
{% render_field form.region %}
|
|
{% render_field form.site_group %}
|
|
{% render_field form.site %}
|
|
{% render_field form.location %}
|
|
{% render_field form.rack %}
|
|
</div>
|
|
<div class="tab-pane{% if virtual_tab_active %} active{% endif %}" id="virtual">
|
|
{% render_field form.cluster_group %}
|
|
{% render_field form.cluster %}
|
|
</div>
|
|
<span class="form-text">The VLAN group will be limited in scope to the most-specific object selected above.</span>
|
|
</div>
|
|
</div>
|
|
{% endwith %}
|
|
</div>
|
|
{% if form.custom_fields %}
|
|
<div class="field-group">
|
|
<h4>Custom Fields</h4>
|
|
{% render_custom_fields form %}
|
|
</div>
|
|
{% endif %}
|
|
{% endblock %}
|