kopia lustrzana https://github.com/wagtail/wagtail
Add some missing translated labels to the bulk actions
rodzic
e5efa69aa2
commit
36e4e9b93d
docs/releases
wagtail
documents/views/bulk_actions
images/views/bulk_actions
|
@ -120,8 +120,9 @@ Changelog
|
|||
* Simplify page chooser views by converting to class-based views (Matt Westcott)
|
||||
* Add reference documentation and snippets usage guide for `RevisionMixin`, `DraftStateMixin`, and `PreviewableMixin` (Sage Abdullah)
|
||||
* Add "Translate" button within pages’ Actions dropdown when editing pages (Sage Abdullah)
|
||||
* Add translated labels to the bulk actions tags and collections bulk update fields (Stefan Hammer)
|
||||
* Fix: Typo in `ResumeWorkflowActionFormatter` message (Stefan Hammer)
|
||||
* Fix issue where `ModelAdmin` index listings with export list enabled would show buttons with an incorrect layout (Josh Woodcock)
|
||||
* Fix: Issue where `ModelAdmin` index listings with export list enabled would show buttons with an incorrect layout (Josh Woodcock)
|
||||
* Fix: Throw a meaningful error when saving an image to an unrecognised image format (Christian Franke)
|
||||
* Fix: Remove extra padding for headers with breadcrumbs on mobile viewport (Steven Steinwand)
|
||||
* Fix: Ensure that custom document or image models support custom tag models (Matt Westcott)
|
||||
|
|
|
@ -183,6 +183,7 @@ There are also many improvements to the documentation both under the hood and in
|
|||
* Simplify page chooser views by converting to class-based views (Matt Westcott)
|
||||
* Add reference documentation and snippets usage guide for `RevisionMixin`, `DraftStateMixin`, and `PreviewableMixin` (Sage Abdullah)
|
||||
* Add "Translate" button within pages’ Actions dropdown when editing pages (Sage Abdullah)
|
||||
* Add translated labels to the bulk actions tags and collections bulk update fields (Stefan Hammer)
|
||||
|
||||
### Bug fixes
|
||||
|
||||
|
|
|
@ -7,7 +7,7 @@ from wagtail.documents.views.bulk_actions.document_bulk_action import DocumentBu
|
|||
|
||||
|
||||
class TagForm(forms.Form):
|
||||
tags = forms.Field(widget=widgets.AdminTagWidget)
|
||||
tags = forms.Field(label=_("Tags"), widget=widgets.AdminTagWidget)
|
||||
|
||||
|
||||
class AddTagsBulkAction(DocumentBulkAction):
|
||||
|
|
|
@ -10,9 +10,10 @@ class CollectionForm(forms.Form):
|
|||
user = kwargs.pop("user", None)
|
||||
super().__init__(*args, **kwargs)
|
||||
self.fields["collection"] = forms.ModelChoiceField(
|
||||
label=_("Collection"),
|
||||
queryset=DocumentBulkAction.permission_policy.collections_user_has_permission_for(
|
||||
user, "add"
|
||||
)
|
||||
),
|
||||
)
|
||||
|
||||
|
||||
|
|
|
@ -7,7 +7,7 @@ from wagtail.images.views.bulk_actions.image_bulk_action import ImageBulkAction
|
|||
|
||||
|
||||
class TagForm(forms.Form):
|
||||
tags = forms.Field(widget=widgets.AdminTagWidget)
|
||||
tags = forms.Field(label=_("Tags"), widget=widgets.AdminTagWidget)
|
||||
|
||||
|
||||
class AddTagsBulkAction(ImageBulkAction):
|
||||
|
|
|
@ -10,9 +10,10 @@ class CollectionForm(forms.Form):
|
|||
user = kwargs.pop("user", None)
|
||||
super().__init__(*args, **kwargs)
|
||||
self.fields["collection"] = forms.ModelChoiceField(
|
||||
label=_("Collection"),
|
||||
queryset=ImageBulkAction.permission_policy.collections_user_has_permission_for(
|
||||
user, "add"
|
||||
)
|
||||
),
|
||||
)
|
||||
|
||||
|
||||
|
|
Ładowanie…
Reference in New Issue