mirror of
https://github.com/netbox-community/netbox.git
synced 2024-05-10 07:54:54 +00:00
42 lines
1.5 KiB
HTML
42 lines
1.5 KiB
HTML
{% extends 'base/layout.html' %}
|
|
{% load helpers %}
|
|
{% load form_helpers %}
|
|
|
|
{% block title %}Editing {{ table.rows|length }} {{ obj_type_plural|bettertitle }}{% endblock %}
|
|
|
|
{% block content %}
|
|
<form action="" method="post" class="form form-horizontal">
|
|
{% csrf_token %}
|
|
{% if request.POST.return_url %}
|
|
<input type="hidden" name="return_url" value="{{ request.POST.return_url }}" />
|
|
{% endif %}
|
|
{% for field in form.hidden_fields %}
|
|
{{ field }}
|
|
{% endfor %}
|
|
<div class="row mb-3">
|
|
<div class="col col-md-8">
|
|
{% include 'inc/table.html' %}
|
|
</div>
|
|
<div class="col col-md-4">
|
|
<div class="card">
|
|
<h5 class="card-header">{% block form_title %}Attributes{% endblock %}</h5>
|
|
<div class="card-body">
|
|
{% for field in form.visible_fields %}
|
|
{% if field.name in form.nullable_fields %}
|
|
{% render_field field bulk_nullable=True %}
|
|
{% else %}
|
|
{% render_field field %}
|
|
{% endif %}
|
|
{% endfor %}
|
|
</div>
|
|
<div class="card-footer text-end">
|
|
<a href="{{ return_url }}" class="btn btn-outline-danger">Cancel</a>
|
|
<button type="submit" name="_apply" class="btn btn-primary">Apply</button>
|
|
</div>
|
|
</div>
|
|
|
|
</div>
|
|
</div>
|
|
</form>
|
|
{% endblock content %}
|