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:
@ -8,19 +8,16 @@
|
|||||||
{% block controls %}
|
{% block controls %}
|
||||||
<div class="container mb-2 mx-0">
|
<div class="container mb-2 mx-0">
|
||||||
<div class="d-flex flex-wrap justify-content-end">
|
<div class="d-flex flex-wrap justify-content-end">
|
||||||
{% if permissions.add and 'add' in action_buttons %}
|
{% if permissions.add and 'add' in action_buttons %}
|
||||||
{% add_button content_type.model_class|validated_viewname:"add" %}
|
{% add_button content_type.model_class|validated_viewname:"add" %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
<div class="d-flex flex-shrink-1">
|
{% if permissions.add and 'import' in action_buttons %}
|
||||||
<div class="btn-group m-1">
|
{% import_button content_type.model_class|validated_viewname:"import" %}
|
||||||
{% if permissions.add and 'import' in action_buttons %}
|
{% endif %}
|
||||||
{% import_button content_type.model_class|validated_viewname:"import" %}
|
{% if 'export' in action_buttons %}
|
||||||
{% endif %}
|
{% export_button content_type %}
|
||||||
{% if 'export' in action_buttons %}
|
{% endif %}
|
||||||
{% export_button content_type %}
|
|
||||||
{% endif %}
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="d-flex flex-shrink-1">
|
<div class="d-flex flex-shrink-1">
|
||||||
{% if request.user.is_authenticated and table_config_form %}
|
{% if request.user.is_authenticated and table_config_form %}
|
||||||
|
|
||||||
|
@ -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">
|
<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> Export
|
<i class="bi bi-download"></i> Export
|
||||||
</button>
|
</button>
|
||||||
<ul class="dropdown-menu dropdown-menu-end">
|
<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=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">Default Format</a></li>
|
||||||
{% if export_templates %}
|
{% if export_templates %}
|
||||||
<li class="divider"></li>
|
<li class="divider"></li>
|
||||||
{% for et in export_templates %}
|
{% for et in export_templates %}
|
||||||
|
@ -1,7 +1,3 @@
|
|||||||
<a
|
<a href="{% url import_url %}" type="button" class="btn btn-sm btn-outline-secondary m-1">
|
||||||
href="{% url import_url %}"
|
|
||||||
type="button"
|
|
||||||
class="btn btn-sm btn-outline-secondary"
|
|
||||||
>
|
|
||||||
<i class="bi bi-upload"></i> Import
|
<i class="bi bi-upload"></i> Import
|
||||||
</a>
|
</a>
|
||||||
|
Reference in New Issue
Block a user