mirror of
https://github.com/netbox-community/netbox.git
synced 2024-05-10 07:54:54 +00:00
7a3af8de83
# Conflicts: # netbox/dcim/tables/template_code.py # netbox/netbox/forms.py # netbox/templates/dcim/cable_connect.html # netbox/templates/dcim/consoleport.html # netbox/templates/dcim/consoleserverport.html # netbox/templates/dcim/device.html # netbox/templates/dcim/device/base.html # netbox/templates/dcim/device_edit.html # netbox/templates/dcim/interface.html # netbox/templates/dcim/rack.html # netbox/templates/dcim/rack_edit.html # netbox/templates/dcim/site.html # netbox/templates/extras/configcontext.html # netbox/templates/extras/objectchange.html # netbox/templates/generic/object.html # netbox/templates/inc/nav_menu.html # netbox/templates/ipam/ipaddress_edit.html # netbox/templates/ipam/vrf.html # netbox/utilities/templates/buttons/export.html
60 lines
1.8 KiB
HTML
60 lines
1.8 KiB
HTML
{% extends 'generic/object_edit.html' %}
|
|
{% load form_helpers %}
|
|
|
|
{% block form %}
|
|
<div class="field-group">
|
|
<h4>Rack</h4>
|
|
{% render_field form.region %}
|
|
{% render_field form.site_group %}
|
|
{% render_field form.site %}
|
|
{% render_field form.location %}
|
|
{% render_field form.name %}
|
|
{% render_field form.status %}
|
|
{% render_field form.role %}
|
|
{% render_field form.tags %}
|
|
</div>
|
|
<div class="field-group">
|
|
<h4>Inventory Control</h4>
|
|
{% render_field form.facility_id %}
|
|
{% render_field form.serial %}
|
|
{% render_field form.asset_tag %}
|
|
</div>
|
|
<div class="field-group">
|
|
<h4>Tenancy</h4>
|
|
{% render_field form.tenant_group %}
|
|
{% render_field form.tenant %}
|
|
</div>
|
|
<div class="field-group">
|
|
<h4>Dimensions</h4>
|
|
{% render_field form.type %}
|
|
{% render_field form.width %}
|
|
{% render_field form.u_height %}
|
|
<div class="row mb-3">
|
|
<label class="col-md-3 col-form-label">Outer Dimensions</label>
|
|
<div class="col-md-3">
|
|
{{ form.outer_width }}
|
|
<div class="form-text">Width</div>
|
|
</div>
|
|
<div class="col-md-3">
|
|
{{ form.outer_depth }}
|
|
<div class="form-text">Depth</div>
|
|
</div>
|
|
<div class="col-md-3">
|
|
{{ form.outer_unit }}
|
|
<div class="form-text">Unit</div>
|
|
</div>
|
|
</div>
|
|
{% render_field form.desc_units %}
|
|
</div>
|
|
{% if form.custom_fields %}
|
|
<div class="field-group">
|
|
<h4>Custom Fields</h4>
|
|
{% render_custom_fields form %}
|
|
</div>
|
|
{% endif %}
|
|
<div class="field-group">
|
|
<h4>Comments</h4>
|
|
{% render_field form.comments %}
|
|
</div>
|
|
{% endblock %}
|