2022-06-27 23:24:50 -05:00
{% extends 'generic/object_edit.html' %}
{% load helpers %}
{% load form_helpers %}
2023-07-29 03:30:25 +07:00
{% load i18n %}
2022-06-27 23:24:50 -05:00
{% block form %}
< div class = "field-group my-5" >
2024-01-17 16:25:42 -05:00
< div class = "row" >
< h5 class = "col-9 offset-3" > {% trans "L2VPN Termination" %}< / h5 >
2022-06-27 23:24:50 -05:00
< / div >
{% render_field form.l2vpn %}
< div class = "row mb-3" >
2024-01-17 16:25:42 -05:00
< div class = "col-9 offset-3" >
2022-06-27 23:24:50 -05:00
< ul class = "nav nav-pills" role = "tablist" >
< li role = "presentation" class = "nav-item" >
2022-07-06 08:57:15 -05:00
< button role = "tab" type = "button" id = "vlan_tab" data-bs-toggle = "tab" aria-controls = "vlan" data-bs-target = "#vlan" class = "nav-link {% if not form.initial.interface or form.initial.vminterface %}active{% endif %}" >
2023-07-29 03:30:25 +07:00
{% trans "VLAN" %}
2022-06-27 23:24:50 -05:00
< / button >
< / li >
< li role = "presentation" class = "nav-item" >
< button role = "tab" type = "button" id = "interface_tab" data-bs-toggle = "tab" aria-controls = "interface" data-bs-target = "#interface" class = "nav-link {% if form.initial.interface %}active{% endif %}" >
2023-07-29 03:30:25 +07:00
{% trans "Device" %}
2022-06-27 23:24:50 -05:00
< / button >
< / li >
2022-07-06 08:57:15 -05:00
< li role = "presentation" class = "nav-item" >
< button role = "tab" type = "button" id = "vminterface_tab" data-bs-toggle = "tab" aria-controls = "vminterface" data-bs-target = "#vminterface" class = "nav-link {% if form.initial.vminterface %}active{% endif %}" >
2023-07-29 03:30:25 +07:00
{% trans "Virtual Machine" %}
2022-07-06 08:57:15 -05:00
< / button >
< / li >
2022-06-27 23:24:50 -05:00
< / ul >
< / div >
< / div >
< div class = "row mb-3" >
< div class = "tab-content p-0 border-0" >
2022-07-06 08:57:15 -05:00
< div class = "tab-pane {% if not form.initial.interface or form.initial.vminterface %}active{% endif %}" id = "vlan" role = "tabpanel" aria-labeled-by = "vlan_tab" >
2022-06-27 23:24:50 -05:00
{% render_field form.vlan %}
< / div >
< div class = "tab-pane {% if form.initial.interface %}active{% endif %}" id = "interface" role = "tabpanel" aria-labeled-by = "interface_tab" >
{% render_field form.interface %}
< / div >
2022-07-06 08:57:15 -05:00
< div class = "tab-pane {% if form.initial.vminterface %}active{% endif %}" id = "vminterface" role = "tabpanel" aria-labeled-by = "vminterface_tab" >
{% render_field form.vminterface %}
< / div >
2023-09-19 11:04:59 -07:00
{% render_field form.tags %}
2022-06-27 23:24:50 -05:00
< / div >
< / div >
< / div >
2022-09-14 22:15:12 -04:00
{% if form.custom_fields %}
< div class = "field-group my-5" >
2024-01-17 16:25:42 -05:00
< div class = "row" >
< h5 class = "col-9 offset-3" > {% trans "Custom Fields" %}< / h5 >
2022-09-14 22:15:12 -04:00
< / div >
{% render_custom_fields form %}
< / div >
{% endif %}
2022-06-27 23:24:50 -05:00
{% endblock %}