kopia lustrzana https://github.com/wagtail/wagtail
Fix document chooser template to account for hidden fields
rodzic
61b6de2e4e
commit
0c9ad90edd
|
@ -13,6 +13,7 @@ Changelog
|
|||
* Fix: Unauthenticated AJAX requests to admin views now return 403 rather than redirecting to the login page (Karl Hobley)
|
||||
* Fix: `TableBlock` options `afterChange`, `afterCreateCol`, `afterCreateRow`, `afterRemoveCol`, `afterRemoveRow` and `contextMenu` can now be overridden (Loic Teixeira)
|
||||
* Fix: The lastmod field returned by wagtailsitemaps now shows the last published date rather than the date of the last draft edit (Matt Westcott)
|
||||
* Fix: Document chooser upload form no longer renders container elements for hidden fields (Jeffrey Chau)
|
||||
|
||||
|
||||
1.10.1 (19.05.2017)
|
||||
|
|
|
@ -57,6 +57,7 @@ Bug fixes
|
|||
* Unauthenticated AJAX requests to admin views now return 403 rather than redirecting to the login page (Karl Hobley)
|
||||
* ``TableBlock`` options ``afterChange``, ``afterCreateCol``, ``afterCreateRow``, ``afterRemoveCol``, ``afterRemoveRow`` and ``contextMenu`` can now be overridden (Loic Teixeira)
|
||||
* The lastmod field returned by wagtailsitemaps now shows the last published date rather than the date of the last draft edit (Matt Westcott)
|
||||
* Document chooser upload form no longer renders container elements for hidden fields (Jeffrey Chau)
|
||||
|
||||
|
||||
Upgrade considerations
|
||||
|
|
|
@ -32,7 +32,11 @@
|
|||
{% csrf_token %}
|
||||
<ul class="fields">
|
||||
{% for field in uploadform %}
|
||||
{% include "wagtailadmin/shared/field_as_li.html" with field=field %}
|
||||
{% if field.is_hidden %}
|
||||
{{ field }}
|
||||
{% else %}
|
||||
{% include "wagtailadmin/shared/field_as_li.html" with field=field %}
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
<li>
|
||||
<button type="submit" class="button button-longrunning" data-clicked-text="{% trans 'Uploading...' %}"><span class="icon icon-spinner"></span><em>{% trans 'Upload' %}</em></button>
|
||||
|
|
Ładowanie…
Reference in New Issue