mirror of
https://github.com/netbox-community/netbox.git
synced 2024-05-10 07:54:54 +00:00
# Conflicts: # netbox/dcim/tables/template_code.py # netbox/netbox/views/__init__.py # netbox/project-static/css/base.css # netbox/templates/base.html # netbox/templates/circuits/circuit.html # netbox/templates/circuits/circuittermination_edit.html # netbox/templates/circuits/inc/circuit_termination.html # netbox/templates/circuits/provider.html # netbox/templates/dcim/device.html # netbox/templates/dcim/device/base.html # netbox/templates/dcim/device_component.html # netbox/templates/dcim/devicetype.html # netbox/templates/dcim/inc/device_napalm_tabs.html # netbox/templates/dcim/rack.html # netbox/templates/dcim/site.html # netbox/templates/dcim/virtualchassis.html # netbox/templates/extras/configcontext.html # netbox/templates/extras/object_journal.html # netbox/templates/extras/tag.html # netbox/templates/generic/object.html # netbox/templates/generic/object_list.html # netbox/templates/home.html # netbox/templates/inc/nav_menu.html # netbox/templates/ipam/aggregate.html # netbox/templates/ipam/ipaddress.html # netbox/templates/ipam/prefix.html # netbox/templates/ipam/vlan.html # netbox/templates/ipam/vlangroup_edit.html # netbox/templates/ipam/vlangroup_vlans.html # netbox/templates/secrets/secret.html # netbox/templates/tenancy/tenant.html # netbox/templates/users/api_tokens.html # netbox/templates/virtualization/cluster.html # netbox/templates/virtualization/vminterface_edit.html # netbox/utilities/forms/fields.py # netbox/utilities/templates/buttons/export.html
50 lines
2.0 KiB
HTML
50 lines
2.0 KiB
HTML
{% extends 'generic/object_edit.html' %}
|
|
{% load form_helpers %}
|
|
|
|
{% block form %}
|
|
<div class="field-group">
|
|
<h4>Interface</h4>
|
|
{% if form.instance.virtual_machine %}
|
|
<div class="form-floating">
|
|
<input class="form-control" value="{{ form.instance.virtual_machine }}"/>
|
|
{% comment %} <div class="col-md-9">
|
|
<p class="form-control-static">
|
|
<a href="{{ form.instance.virtual_machine.get_absolute_url }}">{{ form.instance.virtual_machine }}</a>
|
|
</p>
|
|
</div> {% endcomment %}
|
|
<label class="col-md-3 control-label required" for="id_device">Virtual Machine</label>
|
|
</div>
|
|
{% endif %}
|
|
{% render_field form.name %}
|
|
{% render_field form.enabled %}
|
|
{% render_field form.parent %}
|
|
{% render_field form.mac_address %}
|
|
{% render_field form.mtu %}
|
|
{% render_field form.description %}
|
|
{% render_field form.tags %}
|
|
|
|
</div>
|
|
<div class="field-group">
|
|
<h4>802.1Q Switching</h4>
|
|
{% render_field form.mode %}
|
|
{% render_field form.untagged_vlan %}
|
|
{% render_field form.tagged_vlans %}
|
|
</div>
|
|
{% if form.custom_fields %}
|
|
<div class="field-group">
|
|
<h4>Custom Fields</h4>
|
|
{% render_custom_fields form %}
|
|
</div>
|
|
{% endif %}
|
|
{% endblock %}
|
|
|
|
{% block buttons %}
|
|
{% if obj.pk %}
|
|
<button type="submit" name="_update" class="btn btn-primary">Update</button>
|
|
<button type="submit" formaction="?return_url={% url 'virtualization:vminterface_edit' pk=obj.pk %}" class="btn btn-primary">Update and Continue Editing</button>
|
|
{% else %}
|
|
<button type="submit" name="_create" class="btn btn-primary">Create</button>
|
|
<button type="submit" name="_addanother" class="btn btn-primary">Create and Add Another</button>
|
|
{% endif %}
|
|
<a href="{{ return_url }}" class="btn btn-default">Cancel</a>
|
|
{% endblock %} |