Merge "Add tooltips for "Admin State" in related forms"
This commit is contained in:
commit
1ae34a85ce
|
@ -118,9 +118,11 @@ class CreateNetwork(forms.SelfHandlingForm):
|
|||
'class': 'switched',
|
||||
'data-switch-on': 'network_type',
|
||||
}))
|
||||
admin_state = forms.BooleanField(label=_("Enable Admin State"),
|
||||
initial=True,
|
||||
required=False)
|
||||
admin_state = forms.BooleanField(
|
||||
label=_("Enable Admin State"),
|
||||
initial=True,
|
||||
required=False,
|
||||
help_text=_("If checked, the network will be enabled."))
|
||||
shared = forms.BooleanField(label=_("Shared"),
|
||||
initial=False, required=False)
|
||||
external = forms.BooleanField(label=_("External Network"),
|
||||
|
@ -329,8 +331,10 @@ class CreateNetwork(forms.SelfHandlingForm):
|
|||
|
||||
class UpdateNetwork(forms.SelfHandlingForm):
|
||||
name = forms.CharField(label=_("Name"), required=False)
|
||||
admin_state = forms.BooleanField(label=_("Enable Admin State"),
|
||||
required=False)
|
||||
admin_state = forms.BooleanField(
|
||||
label=_("Enable Admin State"),
|
||||
required=False,
|
||||
help_text=_("If checked, the network will be enabled."))
|
||||
shared = forms.BooleanField(label=_("Shared"), required=False)
|
||||
external = forms.BooleanField(label=_("External Network"), required=False)
|
||||
failure_url = 'horizon:admin:networks:index'
|
||||
|
|
|
@ -34,8 +34,10 @@ LOG = logging.getLogger(__name__)
|
|||
|
||||
class UpdateNetwork(forms.SelfHandlingForm):
|
||||
name = forms.CharField(label=_("Name"), required=False)
|
||||
admin_state = forms.BooleanField(label=_("Enable Admin State"),
|
||||
required=False)
|
||||
admin_state = forms.BooleanField(
|
||||
label=_("Enable Admin State"),
|
||||
required=False,
|
||||
help_text=_("If checked, the network will be enabled."))
|
||||
shared = forms.BooleanField(label=_("Shared"), required=False)
|
||||
failure_url = 'horizon:project:networks:index'
|
||||
|
||||
|
|
|
@ -58,9 +58,11 @@ class CreatePortInfoAction(workflows.Action):
|
|||
name = forms.CharField(max_length=255,
|
||||
label=_("Name"),
|
||||
required=False)
|
||||
admin_state = forms.BooleanField(label=_("Enable Admin State"),
|
||||
initial=True,
|
||||
required=False)
|
||||
admin_state = forms.BooleanField(
|
||||
label=_("Enable Admin State"),
|
||||
initial=True,
|
||||
required=False,
|
||||
help_text=_("If checked, the port will be enabled."))
|
||||
device_id = forms.CharField(max_length=100, label=_("Device ID"),
|
||||
help_text=_("Device ID attached to the port"),
|
||||
required=False)
|
||||
|
@ -304,8 +306,10 @@ class UpdatePortInfoAction(workflows.Action):
|
|||
name = forms.CharField(max_length=255,
|
||||
label=_("Name"),
|
||||
required=False)
|
||||
admin_state = forms.BooleanField(label=_("Enable Admin State"),
|
||||
required=False)
|
||||
admin_state = forms.BooleanField(
|
||||
label=_("Enable Admin State"),
|
||||
required=False,
|
||||
help_text=_("If checked, the port will be enabled."))
|
||||
|
||||
def __init__(self, request, *args, **kwargs):
|
||||
super(UpdatePortInfoAction, self).__init__(request, *args, **kwargs)
|
||||
|
|
|
@ -41,7 +41,7 @@ class CreateNetworkInfoAction(workflows.Action):
|
|||
label=_("Enable Admin State"),
|
||||
initial=True,
|
||||
required=False,
|
||||
help_text=_("The state to start the network in."))
|
||||
help_text=_("If checked, the network will be enabled."))
|
||||
shared = forms.BooleanField(label=_("Shared"), initial=False,
|
||||
required=False)
|
||||
with_subnet = forms.BooleanField(label=_("Create Subnet"),
|
||||
|
|
|
@ -34,9 +34,11 @@ LOG = logging.getLogger(__name__)
|
|||
class CreateForm(forms.SelfHandlingForm):
|
||||
name = forms.CharField(max_length=255, label=_("Router Name"),
|
||||
required=False)
|
||||
admin_state_up = forms.BooleanField(label=_("Enable Admin State"),
|
||||
initial=True,
|
||||
required=False)
|
||||
admin_state_up = forms.BooleanField(
|
||||
label=_("Enable Admin State"),
|
||||
initial=True,
|
||||
required=False,
|
||||
help_text=_("If checked, the router will be enabled."))
|
||||
external_network = forms.ThemableChoiceField(label=_("External Network"),
|
||||
required=False)
|
||||
enable_snat = forms.BooleanField(label=_("Enable SNAT"),
|
||||
|
@ -153,8 +155,10 @@ class CreateForm(forms.SelfHandlingForm):
|
|||
|
||||
class UpdateForm(forms.SelfHandlingForm):
|
||||
name = forms.CharField(label=_("Name"), required=False)
|
||||
admin_state = forms.BooleanField(label=_("Enable Admin State"),
|
||||
required=False)
|
||||
admin_state = forms.BooleanField(
|
||||
label=_("Enable Admin State"),
|
||||
required=False,
|
||||
help_text=_("If checked, the router will be enabled."))
|
||||
mode = forms.ThemableChoiceField(label=_("Router Type"))
|
||||
ha = forms.BooleanField(label=_("High Availability Mode"), required=False)
|
||||
|
||||
|
|
Loading…
Reference in New Issue