mirror of
https://github.com/netbox-community/netbox.git
synced 2025-08-07 16:18:16 -06:00
17301 redo card header
This commit is contained in:
parent
b22b141a96
commit
e3e9eceda9
@ -22,21 +22,28 @@
|
|||||||
{% for module in script_modules %}
|
{% for module in script_modules %}
|
||||||
{% include 'inc/sync_warning.html' with object=module %}
|
{% include 'inc/sync_warning.html' with object=module %}
|
||||||
<div class="card">
|
<div class="card">
|
||||||
<h2 class="card-header justify-content-between" id="module{{ module.pk }}">
|
|
||||||
<div>
|
<div class="card-header container-fluid">
|
||||||
<i class="mdi mdi-file-document-outline"></i> {{ module }}
|
<div class="col col-md-10">
|
||||||
|
<h2 id="module{{ module.pk }}">
|
||||||
|
<div>
|
||||||
|
<i class="mdi mdi-file-document-outline"></i> {{ module }}
|
||||||
|
</div>
|
||||||
|
</h2>
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div class="col col-md-2 float-right d-print-none">
|
||||||
{% if perms.extras.edit_scriptmodule %}
|
<div class="btn-list justify-content-end mb-2">
|
||||||
{% url 'extras:scriptmodule_edit' pk=module.pk as edit_url %}
|
{% if perms.extras.edit_scriptmodule %}
|
||||||
{% include 'buttons/edit.html' with url=edit_url %}
|
{% url 'extras:scriptmodule_edit' pk=module.pk as edit_url %}
|
||||||
{% endif %}
|
{% include 'buttons/edit.html' with url=edit_url %}
|
||||||
{% if perms.extras.delete_scriptmodule %}
|
{% endif %}
|
||||||
{% url 'extras:scriptmodule_delete' pk=module.pk as delete_url %}
|
{% if perms.extras.delete_scriptmodule %}
|
||||||
{% include 'buttons/delete.html' with url=delete_url %}
|
{% url 'extras:scriptmodule_delete' pk=module.pk as delete_url %}
|
||||||
{% endif %}
|
{% include 'buttons/delete.html' with url=delete_url %}
|
||||||
|
{% endif %}
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</h2>
|
</div>
|
||||||
{% if module.scripts %}
|
{% if module.scripts %}
|
||||||
<table class="table table-hover scripts">
|
<table class="table table-hover scripts">
|
||||||
<thead>
|
<thead>
|
||||||
|
Loading…
Reference in New Issue
Block a user