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:
Masco Kaliyamoorthy 2015-04-08 15:31:52 +05:30
parent 394765e1ab
commit 38485b4fa0
2 changed files with 2 additions and 0 deletions

View File

@ -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'

View File

@ -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."))