kopia lustrzana https://github.com/wagtail/wagtail
modeladmin - fix issue where action button class conflicted (#6387)
- It was creating styling issues in the wagtailadmin when list export was enabled - ensure that all actions are contained within the actionbutton divpull/8175/head
rodzic
bb2c826cbc
commit
8a4a6b4ced
|
@ -8,6 +8,7 @@ Changelog
|
||||||
* Convert various pages in the documentation to Markdown (Daniel Kirkham)
|
* Convert various pages in the documentation to Markdown (Daniel Kirkham)
|
||||||
* Add `base_url_path` to `ModelAdmin` so that the default URL structure of app_label/model_name can be overridden (Vu Pham, Khanh Hoang)
|
* Add `base_url_path` to `ModelAdmin` so that the default URL structure of app_label/model_name can be overridden (Vu Pham, Khanh Hoang)
|
||||||
* Add `full_url` to the API output of `ImageRenditionField` (Paarth Agarwal)
|
* Add `full_url` to the API output of `ImageRenditionField` (Paarth Agarwal)
|
||||||
|
* Fix issue where `ModelAdmin` index listings with export list enabled would show buttons with an incorrect layout (Josh Woodcock)
|
||||||
|
|
||||||
|
|
||||||
3.0 (xx.xx.xxxx) - IN DEVELOPMENT
|
3.0 (xx.xx.xxxx) - IN DEVELOPMENT
|
||||||
|
|
|
@ -595,6 +595,7 @@ Contributors
|
||||||
* Luz Paz
|
* Luz Paz
|
||||||
* Simon Krull
|
* Simon Krull
|
||||||
* Przemysław Buczkowski
|
* Przemysław Buczkowski
|
||||||
|
* Josh Woodcock
|
||||||
|
|
||||||
Translators
|
Translators
|
||||||
===========
|
===========
|
||||||
|
|
|
@ -18,7 +18,7 @@ depth: 1
|
||||||
|
|
||||||
### Bug fixes
|
### Bug fixes
|
||||||
|
|
||||||
* ...
|
* Fix issue where `ModelAdmin` index listings with export list enabled would show buttons with an incorrect layout (Josh Woodcock)
|
||||||
|
|
||||||
|
|
||||||
## Upgrade considerations
|
## Upgrade considerations
|
||||||
|
|
|
@ -33,18 +33,20 @@
|
||||||
</div>
|
</div>
|
||||||
{% block header_extra %}
|
{% block header_extra %}
|
||||||
<div class="right header-right">
|
<div class="right header-right">
|
||||||
{% if user_can_create %}
|
{% if view.list_export or user_can_create %}
|
||||||
<div class="actionbutton">
|
<div class="actionbutton">
|
||||||
{% include 'modeladmin/includes/button.html' with button=view.button_helper.add_button %}
|
{% if user_can_create %}
|
||||||
</div>
|
{% include 'modeladmin/includes/button.html' with button=view.button_helper.add_button %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if view.list_export %}
|
{% if view.list_export %}
|
||||||
<div class="dropdown dropdown-button match-width col">
|
<div class="dropdown dropdown-button match-width col">
|
||||||
<a href="?export=xlsx&{{ request.GET.urlencode }}" class="button bicolor button--icon">{% icon name="download" wrapped=1 %}{% trans 'Download XLSX' %}</a>
|
<a href="?export=xlsx&{{ request.GET.urlencode }}" class="button bicolor button--icon">{% icon name="download" wrapped=1 %}{% trans 'Download XLSX' %}</a>
|
||||||
<div class="dropdown-toggle">{% icon name="arrow-down" %}</div>
|
<div class="dropdown-toggle">{% icon name="arrow-down" %}</div>
|
||||||
<ul>
|
<ul>
|
||||||
<li><a class="button bicolor button--icon" href="?export=csv&{{ request.GET.urlencode }}">{% icon name="download" wrapped=1 %}{% trans 'Download CSV' %}</a></li>
|
<li><a class="button bicolor button--icon" href="?export=csv&{{ request.GET.urlencode }}">{% icon name="download" wrapped=1 %}{% trans 'Download CSV' %}</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
|
</div>
|
||||||
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
|
|
Ładowanie…
Reference in New Issue