mirror of
https://github.com/netbox-community/netbox.git
synced 2024-05-10 07:54:54 +00:00
Clean up spacing for nav pills Markdown fields should default to using monospace font Wrap action buttons in object page header Fix page link style for non-HTMX paginators Clean up styling of Markdown preview widget Fix spacing around placeholder text for empty panel tables Remove obsolete templates Tweak checkbox input spacing Fix toggling of clear button for quick search Fix positioning of quick search filter dropdown Fix positioning of 'highlight device' button Fix styling for custom field group names Widen buttons on nav menu items Restyle the login page Fix active nav-pill background color in dark mode Fix spacing around 'map' button for sites
69 lines
2.1 KiB
HTML
69 lines
2.1 KiB
HTML
{% extends 'generic/object_edit.html' %}
|
|
{% load static %}
|
|
{% load form_helpers %}
|
|
{% load helpers %}
|
|
{% load i18n %}
|
|
|
|
{% block form %}
|
|
<div class="field-group my-5">
|
|
<div class="row">
|
|
<h5 class="col-9 offset-3">{% trans "VLAN" %}</h5>
|
|
</div>
|
|
{% render_field form.vid %}
|
|
{% render_field form.name %}
|
|
{% render_field form.status %}
|
|
{% render_field form.role %}
|
|
{% render_field form.description %}
|
|
{% render_field form.tags %}
|
|
</div>
|
|
|
|
<div class="field-group my-5">
|
|
<div class="row">
|
|
<h5 class="col-9 offset-3">{% trans "Tenancy" %}</h5>
|
|
</div>
|
|
{% render_field form.tenant_group %}
|
|
{% render_field form.tenant %}
|
|
</div>
|
|
|
|
<div class="field-group my-5">
|
|
<div class="row">
|
|
<h5 class="col-9 offset-3">{% trans "Assignment" %}</h5>
|
|
</div>
|
|
{% with site_tab_active=form.initial.site %}
|
|
<div class="row">
|
|
<div class="col-9 offset-3">
|
|
<ul class="nav nav-pills mb-1" role="tablist">
|
|
<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">{% trans "VLAN Group" %}</a>
|
|
</li>
|
|
<li class="nav-item" role="presentation">
|
|
<a class="nav-link{% if site_tab_active %} active{% endif %}" href="#site" role="tab" data-bs-toggle="tab">{% trans "Site" %}</a>
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
<div class="tab-content p-0 border-0">
|
|
<div class="tab-pane{% if not site_tab_active %} active{% endif %}" id="group">
|
|
{% render_field form.group %}
|
|
</div>
|
|
<div class="tab-pane{% if site_tab_active %} active{% endif %}" id="site">
|
|
{% render_field form.site %}
|
|
</div>
|
|
</div>
|
|
{% endwith %}
|
|
</div>
|
|
|
|
<div class="field-group my-5">
|
|
{% render_field form.comments %}
|
|
</div>
|
|
|
|
{% if form.custom_fields %}
|
|
<div class="field-group my-5">
|
|
<div class="row">
|
|
<h5 class="col-9 offset-3">{% trans "Custom Fields" %}</h5>
|
|
</div>
|
|
{% render_custom_fields form %}
|
|
</div>
|
|
{% endif %}
|
|
{% endblock %}
|