Unverified Commit 36d98a23 authored by BaiJiangJie's avatar BaiJiangJie Committed by GitHub

[Update] 资产授权 Action 添加 Help text (#3383)

* [Update] 资产授权 Action 添加 Help text

* [Update] 资产授权 Action 添加 Help text(修改翻译)
parent d3cf2afb
This diff is collapsed.
...@@ -20,6 +20,10 @@ class ActionField(forms.MultipleChoiceField): ...@@ -20,6 +20,10 @@ class ActionField(forms.MultipleChoiceField):
kwargs['initial'] = Action.ALL kwargs['initial'] = Action.ALL
kwargs['label'] = _("Action") kwargs['label'] = _("Action")
kwargs['widget'] = forms.CheckboxSelectMultiple() kwargs['widget'] = forms.CheckboxSelectMultiple()
kwargs['help_text'] = _(
'Tips: The RDP protocol does not support separate controls '
'for uploading or downloading files'
)
super().__init__(*args, **kwargs) super().__init__(*args, **kwargs)
def to_python(self, value): def to_python(self, value):
...@@ -89,10 +93,6 @@ class AssetPermissionForm(OrgModelForm): ...@@ -89,10 +93,6 @@ class AssetPermissionForm(OrgModelForm):
labels = { labels = {
'nodes': _("Node"), 'nodes': _("Node"),
} }
help_texts = {
'actions': _('Tips: The RDP protocol does not support separate '
'controls for uploading or downloading files')
}
def clean_user_groups(self): def clean_user_groups(self):
users = self.cleaned_data.get('users') users = self.cleaned_data.get('users')
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment