1
0
mirror of https://github.com/netbox-community/netbox.git synced 2024-05-10 07:54:54 +00:00

Create form for setting table preferences

This commit is contained in:
Jeremy Stretch
2020-04-28 12:14:51 -04:00
parent 0ee1112d9d
commit e8d493578b
5 changed files with 92 additions and 18 deletions

View File

@@ -0,0 +1,23 @@
{% load form_helpers %}
<button type="button" class="btn btn-primary btn-xs" data-toggle="modal" data-target="#tableconfig" title="Configure table"><i class="fa fa-cog"></i></button>
<div class="modal fade" tabindex="-1" id="tableconfig">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
<h4 class="modal-title">Table Configuration</h4>
</div>
<div class="modal-body">
<form action="?return_url={{ request.path }}" method="post" class="form-horizontal">
{% csrf_token %}
{% render_form table_config_form %}
<div class="text-right">
<input type="submit" class="btn btn-primary" name="set" value="Save" />
<input type="submit" class="btn btn-danger" name="clear" value="Clear" />
</div>
</form>
</div>
</div>
</div>
</div>