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

fix import/export styles

This commit is contained in:
checktheroads
2021-03-17 22:25:20 -07:00
parent 7a3af8de83
commit e4af9ebc6f
3 changed files with 12 additions and 19 deletions

View File

@@ -1,10 +1,10 @@
<div class="btn-group m-1">
<div class="dropdown m-1">
<button type="button" class="btn btn-sm btn-outline-secondary dropdown-toggle" data-bs-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
<i class="bi bi-download"></i>&nbsp;Export
</button>
<ul class="dropdown-menu dropdown-menu-end">
<li><a class="dropdown-item" href="?{% if url_params %}{{ url_params.urlencode }}&{% endif %}export=table">Current view</a></li>
<li><a class="dropdown-item" href="?{% if url_params %}{{ url_params.urlencode }}&{% endif %}export">Default format</a></li>
<li><a class="dropdown-item" href="?{% if url_params %}{{ url_params.urlencode }}&{% endif %}export=table">Current View</a></li>
<li><a class="dropdown-item" href="?{% if url_params %}{{ url_params.urlencode }}&{% endif %}export">Default Format</a></li>
{% if export_templates %}
<li class="divider"></li>
{% for et in export_templates %}

View File

@@ -1,7 +1,3 @@
<a
href="{% url import_url %}"
type="button"
class="btn btn-sm btn-outline-secondary"
>
<a href="{% url import_url %}" type="button" class="btn btn-sm btn-outline-secondary m-1">
<i class="bi bi-upload"></i>&nbsp;Import
</a>