admin: use pb-dropdown component for dropdowns

This commit is contained in:
Jens Langhammer 2020-11-20 22:15:46 +01:00
parent 1e1a002ab2
commit 592f2cc558
6 changed files with 24 additions and 24 deletions

View File

@ -22,7 +22,7 @@
<div class="pf-c-toolbar__content">
{% include 'partials/toolbar_search.html' %}
<div class="pf-c-toolbar__bulk-select">
<div class="pf-c-dropdown">
<pb-dropdown class="pf-c-dropdown">
<button class="pf-m-primary pf-c-dropdown__toggle" type="button">
<span class="pf-c-dropdown__toggle-text">{% trans 'Create' %}</span>
<i class="fas fa-caret-down pf-c-dropdown__toggle-icon" aria-hidden="true"></i>
@ -39,7 +39,7 @@
</li>
{% endfor %}
</ul>
</div>
</pb-dropdown>
</div>
{% include 'partials/pagination.html' %}
</div>
@ -109,7 +109,7 @@
{% trans 'Currently no service connections exist. Click the button below to create one.' %}
{% endif %}
</div>
<div class="pf-c-dropdown">
<pb-dropdown class="pf-c-dropdown">
<button class="pf-m-primary pf-c-dropdown__toggle" type="button">
<span class="pf-c-dropdown__toggle-text">{% trans 'Create' %}</span>
<i class="fas fa-caret-down pf-c-dropdown__toggle-icon" aria-hidden="true"></i>
@ -126,7 +126,7 @@
</li>
{% endfor %}
</ul>
</div>
</pb-dropdown>
</div>
</div>
{% endif %}

View File

@ -20,7 +20,7 @@
<div class="pf-c-toolbar__content">
{% include 'partials/toolbar_search.html' %}
<div class="pf-c-toolbar__bulk-select">
<div class="pf-c-dropdown">
<pb-dropdown class="pf-c-dropdown">
<button class="pf-m-primary pf-c-dropdown__toggle" type="button">
<span class="pf-c-dropdown__toggle-text">{% trans 'Create' %}</span>
<i class="fas fa-caret-down pf-c-dropdown__toggle-icon" aria-hidden="true"></i>
@ -37,7 +37,7 @@
</li>
{% endfor %}
</ul>
</div>
</pb-dropdown>
</div>
{% include 'partials/pagination.html' %}
</div>
@ -101,7 +101,7 @@
{% trans 'Currently no policies exist. Click the button below to create one.' %}
{% endif %}
</div>
<div class="pf-c-dropdown">
<pb-dropdown class="pf-c-dropdown">
<button class="pf-m-primary pf-c-dropdown__toggle" type="button">
<span class="pf-c-dropdown__toggle-text">{% trans 'Create' %}</span>
<i class="fas fa-caret-down pf-c-dropdown__toggle-icon" aria-hidden="true"></i>
@ -119,7 +119,7 @@
</li>
{% endfor %}
</ul>
</div>
</pb-dropdown>
</div>
</div>
{% endif %}

View File

@ -21,7 +21,7 @@
<div class="pf-c-toolbar__content">
{% include 'partials/toolbar_search.html' %}
<div class="pf-c-toolbar__bulk-select">
<div class="pf-c-dropdown">
<pb-dropdown class="pf-c-dropdown">
<button class="pf-m-primary pf-c-dropdown__toggle" type="button">
<span class="pf-c-dropdown__toggle-text">{% trans 'Create' %}</span>
<i class="fas fa-caret-down pf-c-dropdown__toggle-icon" aria-hidden="true"></i>
@ -39,7 +39,7 @@
</li>
{% endfor %}
</ul>
</div>
</pb-dropdown>
</div>
{% include 'partials/pagination.html' %}
</div>
@ -95,7 +95,7 @@
{% trans 'Currently no property mappings exist. Click the button below to create one.' %}
{% endif %}
</div>
<div class="pf-c-dropdown">
<pb-dropdownpb-dropdown class="pf-c-dropdown">
<button class="pf-m-primary pf-c-dropdown__toggle" type="button">
<span class="pf-c-dropdown__toggle-text">{% trans 'Create' %}</span>
<i class="fas fa-caret-down pf-c-dropdown__toggle-icon" aria-hidden="true"></i>
@ -113,7 +113,7 @@
</li>
{% endfor %}
</ul>
</div>
</pb-dropdown>
</div>
</div>
{% endif %}

View File

@ -22,7 +22,7 @@
<div class="pf-c-toolbar__content">
{% include 'partials/toolbar_search.html' %}
<div class="pf-c-toolbar__bulk-select">
<div class="pf-c-dropdown">
<pb-dropdown class="pf-c-dropdown">
<button class="pf-m-primary pf-c-dropdown__toggle" type="button">
<span class="pf-c-dropdown__toggle-text">{% trans 'Create' %}</span>
<i class="fas fa-caret-down pf-c-dropdown__toggle-icon" aria-hidden="true"></i>
@ -39,7 +39,7 @@
</li>
{% endfor %}
</ul>
</div>
</pb-dropdown>
</div>
{% include 'partials/pagination.html' %}
</div>
@ -114,7 +114,7 @@
{% trans 'Currently no providers exist. Click the button below to create one.' %}
{% endif %}
</div>
<div class="pf-c-dropdown">
<pb-dropdown class="pf-c-dropdown">
<button class="pf-m-primary pf-c-dropdown__toggle" type="button">
<span class="pf-c-dropdown__toggle-text">{% trans 'Create' %}</span>
<i class="fas fa-caret-down pf-c-dropdown__toggle-icon" aria-hidden="true"></i>
@ -131,7 +131,7 @@
</li>
{% endfor %}
</ul>
</div>
</pb-dropdown>
</div>
</div>
{% endif %}

View File

@ -22,7 +22,7 @@
<div class="pf-c-toolbar__content">
{% include 'partials/toolbar_search.html' %}
<div class="pf-c-toolbar__bulk-select">
<div class="pf-c-dropdown">
<pb-dropdown class="pf-c-dropdown">
<button class="pf-m-primary pf-c-dropdown__toggle" type="button">
<span class="pf-c-dropdown__toggle-text">{% trans 'Create' %}</span>
<i class="fas fa-caret-down pf-c-dropdown__toggle-icon" aria-hidden="true"></i>
@ -39,7 +39,7 @@
</li>
{% endfor %}
</ul>
</div>
</pb-dropdown>
</div>
{% include 'partials/pagination.html' %}
</div>
@ -108,7 +108,7 @@
{% trans 'Currently no sources exist. Click the button below to create one.' %}
{% endif %}
</div>
<div class="pf-c-dropdown">
<pb-dropdown class="pf-c-dropdown">
<button class="pf-m-primary pf-c-dropdown__toggle" type="button">
<span class="pf-c-dropdown__toggle-text">{% trans 'Create' %}</span>
<i class="fas fa-caret-down pf-c-dropdown__toggle-icon" aria-hidden="true"></i>
@ -125,7 +125,7 @@
</li>
{% endfor %}
</ul>
</div>
</pb-dropdown>
</div>
</div>
{% endif %}

View File

@ -21,7 +21,7 @@
<div class="pf-c-toolbar__content">
{% include 'partials/toolbar_search.html' %}
<div class="pf-c-toolbar__bulk-select">
<div class="pf-c-dropdown">
<pb-dropdown class="pf-c-dropdown">
<button class="pf-m-primary pf-c-dropdown__toggle" type="button">
<span class="pf-c-dropdown__toggle-text">{% trans 'Create' %}</span>
<i class="fas fa-caret-down pf-c-dropdown__toggle-icon" aria-hidden="true"></i>
@ -38,7 +38,7 @@
</li>
{% endfor %}
</ul>
</div>
</pb-dropdown>
</div>
{% include 'partials/pagination.html' %}
</div>
@ -103,7 +103,7 @@
{% trans 'Currently no stages exist. Click the button below to create one.' %}
{% endif %}
</div>
<div class="pf-c-dropdown">
<pb-dropdown class="pf-c-dropdown">
<button class="pf-m-primary pf-c-dropdown__toggle" type="button">
<span class="pf-c-dropdown__toggle-text">{% trans 'Create' %}</span>
<i class="fas fa-caret-down pf-c-dropdown__toggle-icon" aria-hidden="true"></i>
@ -121,7 +121,7 @@
</li>
{% endfor %}
</ul>
</div>
</pb-dropdown>
</div>
</div>
{% endif %}