removed asterisk for admin state in network create
In network create and update, the admin_state parameter is optional but in horizon forms, asterisk is shown for admin state choice field which is wrong. In this patch, asterisk mark is removed for admin state choice field in network create and update forms. Change-Id: I349915f8fbe496cf79d33cd54e9c405799eb61e2 Closes-Bug: #1441511
This commit is contained in:
parent
394765e1ab
commit
38485b4fa0
@ -36,6 +36,7 @@ class UpdateNetwork(forms.SelfHandlingForm):
|
||||
tenant_id = forms.CharField(widget=forms.HiddenInput)
|
||||
admin_state = forms.ChoiceField(choices=[(True, _('UP')),
|
||||
(False, _('DOWN'))],
|
||||
required=False,
|
||||
label=_("Admin State"))
|
||||
failure_url = 'horizon:project:networks:index'
|
||||
|
||||
|
@ -47,6 +47,7 @@ class CreateNetworkInfoAction(workflows.Action):
|
||||
admin_state = forms.ChoiceField(choices=[(True, _('UP')),
|
||||
(False, _('DOWN'))],
|
||||
label=_("Admin State"),
|
||||
required=False,
|
||||
help_text=_("The state to start"
|
||||
" the network in."))
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user