|
4 | 4 | {% block title %}DeviceType Imports{% endblock %} |
5 | 5 |
|
6 | 6 | {% block extra_controls %} |
7 | | - <div class="pull-right noprint"> |
8 | | - {% if perms.netbox_metatype_importer.add_metatype %} |
9 | | - <form method="post"> |
10 | | - {% csrf_token %} |
11 | | - <button type="submit" name="_load" |
12 | | - formaction="{% url 'plugins:netbox_metatype_importer:metadevicetype_load' %}?return_url={% url 'plugins:netbox_metatype_importer:metadevicetype_list' %}" |
13 | | - class="btn btn-primary"> |
14 | | - <span class="mdi mdi-download" aria-hidden="true"></span> Load |
15 | | - </button> |
16 | | - </form> |
17 | | - {% endif %} |
18 | | - </div> |
| 7 | + {% if perms.netbox_metatype_importer.add_metatype %} |
| 8 | + <form method="post" class="d-inline d-print-none"> |
| 9 | + {% csrf_token %} |
| 10 | + <button type="submit" name="_load" |
| 11 | + formaction="{% url 'plugins:netbox_metatype_importer:metadevicetype_load' %}?return_url={% url 'plugins:netbox_metatype_importer:metadevicetype_list' %}" |
| 12 | + class="btn btn-primary"> |
| 13 | + <i class="mdi mdi-download" aria-hidden="true"></i> Load |
| 14 | + </button> |
| 15 | + </form> |
| 16 | + {% endif %} |
19 | 17 | {% endblock %} |
20 | 18 |
|
21 | 19 | {% block bulk_buttons %} |
22 | | - {% if perms.netbox_metatype_importer.add_metatype %} |
23 | | - <button type="submit" name="_edit" formaction=" |
24 | | -
|
25 | | -
|
26 | | - {% url 'plugins:netbox_metatype_importer:metadevicetype_import' %}{% if request.GET %}?{{ request.GET.urlencode }}{% endif %}" |
27 | | - class="btn btn-warning"> |
28 | | - <span class="mdi mdi-upload" aria-hidden="true"></span> Import Selected |
29 | | - </button> |
30 | | - {% endif %} |
31 | | - {% if perms.netbox_metatype_importer.delete_metatype %} |
32 | | - <button type="submit" name="_edit" formaction=" |
33 | | -
|
34 | | -
|
35 | | - {% url 'plugins:netbox_metatype_importer:bulk_metadevicetype_delete' %}{% if request.GET %}?{{ request.GET.urlencode }}{% endif %}" |
36 | | - class="btn btn-danger"> |
37 | | - <span class="mdi mdi-trash-can-outline" aria-hidden="true"></span> Delete Selected |
38 | | - </button> |
39 | | - {% endif %} |
| 20 | + {% if perms.netbox_metatype_importer.add_metatype %} |
| 21 | + <button type="submit" name="_edit" |
| 22 | + formaction="{% url 'plugins:netbox_metatype_importer:metadevicetype_import' %}{% if request.GET %}?{{ request.GET.urlencode }}{% endif %}" |
| 23 | + class="btn btn-warning"> |
| 24 | + <i class="mdi mdi-upload" aria-hidden="true"></i> Import Selected |
| 25 | + </button> |
| 26 | + {% endif %} |
| 27 | + {% if perms.netbox_metatype_importer.delete_metatype %} |
| 28 | + <button type="submit" name="_edit" |
| 29 | + formaction="{% url 'plugins:netbox_metatype_importer:bulk_metadevicetype_delete' %}{% if request.GET %}?{{ request.GET.urlencode }}{% endif %}" |
| 30 | + class="btn btn-danger"> |
| 31 | + <i class="mdi mdi-trash-can-outline" aria-hidden="true"></i> Delete Selected |
| 32 | + </button> |
| 33 | + {% endif %} |
40 | 34 | {% endblock %} |
0 commit comments