Merge "UX: Add IPSec Policy Modal Hint List is hard to read"

This commit is contained in:
Jenkins 2016-08-05 17:59:37 +00:00 committed by Gerrit Code Review
commit 87818bcd3f
6 changed files with 59 additions and 57 deletions

View File

@ -0,0 +1,20 @@
{% load i18n %}
<p>{% trans "Create IKE Policy for current project." %}</p>
<p>{% trans "An IKE policy is an association of the following attributes:" %}</p>
<dl class="dl-readable">
<dt>{% trans 'Authorization algorithm' %}</dt>
<dd>{% trans 'Auth algorithm limited to SHA1 only.' %}</dd>
<dt>{% trans 'Encryption algorithm' %}</dt>
<dd>{% trans 'The type of algorithm (3des, aes-128, aes-192, aes-256) used in the IKE Policy.' %}</dd>
<dt>{% trans 'IKE version' %}</dt>
<dd>{% trans 'The type of version (v1/v2) that needs to be filtered.' %}</dd>
<dt>{% trans 'Lifetime' %}</dt>
<dd>{% trans "Life time consists of units and value. Units in 'seconds' and the default value is 3600." %}</dd>
<dt>{% trans 'Perfect Forward Secrecy' %}</dt>
<dd>{% trans 'PFS limited to using Diffie-Hellman groups 2, 5 (default) and 14.' %}</dd>
<dt>{% trans 'IKE Phase 1 negotiation mode' %}</dt>
<dd>{% trans "Limited to 'main' mode only." %}</dd>
</dl>
<p>{% trans "All fields are optional." %}</p>

View File

@ -0,0 +1,19 @@
{% load i18n %}
<p>{% trans 'Create IPSec Policy for current project.' %}</p>
<p>{% trans 'An IPSec policy is an association of the following attributes' %}</p>
<dl class="dl-readable">
<dt>{% trans 'Authorization algorithm' %}</dt>
<dd>{% trans 'Auth algorithm limited to SHA1 only.' %}</dd>
<dt>{% trans 'Encapsulation mode' %}</dt>
<dd>{% trans 'The type of IPsec tunnel (tunnel/transport) to be used.' %}</dd>
<dt>{% trans 'Encryption algorithm' %}</dt>
<dd>{% trans 'The type of algorithm (3des, aes-128, aes-192, aes-256) used in the IPSec Policy.' %}</dd>
<dt>{% trans 'Lifetime' %}</dt>
<dd>{% trans "Life time consists of units and value. Units in 'seconds' and the default value is 3600." %}</dd>
<dt>{% trans 'Perfect Forward Secrecy' %}</dt>
<dd>{% trans 'PFS limited to using Diffie-Hellman groups 2, 5 (default) and 14.' %}</dd>
<dt>{% trans 'Transform Protocol' %}</dt>
<dd>{% trans 'The type of protocol (esp, ah, ah-esp) used in IPSec Policy.' %}</dd>
</dl>
<p>{% trans 'All fields are optional.' %}</p>

View File

@ -0,0 +1,7 @@
{% load i18n %}
<p>{% trans "Create VPN service for current project." %}</p>
<p>{% trans "The VPN service is attached to a router and references to a single subnet to push to a remote site." %}</p>
<p>{% trans "Specify a name, description, router, and subnet for the VPN Service." %}</p>
<p>{% trans "Admin State is UP (True) by default." %}</p>
<p>{% trans "The router, subnet and admin state fields are required. All others are optional." %} </p>

View File

@ -70,17 +70,7 @@ class AddVPNServiceAction(workflows.Action):
class Meta(object): class Meta(object):
name = _("Add New VPN Service") name = _("Add New VPN Service")
permissions = ('openstack.services.network',) permissions = ('openstack.services.network',)
help_text = _("Create VPN Service for current project.\n\n" help_text_template = "project/vpn/_add_vpn_service_help.html"
"The VPN service is attached to a router "
"and references to a single subnet "
"to push to a remote site.\n"
"Specify a name, description, router, and subnet "
"for the VPN Service. "
"Admin State is UP (True) by default.\n\n"
"The router, subnet and admin state "
"fields are required, "
"all others are optional."
)
class AddVPNServiceStep(workflows.Step): class AddVPNServiceStep(workflows.Step):
@ -175,27 +165,7 @@ class AddIKEPolicyAction(workflows.Action):
class Meta(object): class Meta(object):
name = _("Add New IKE Policy") name = _("Add New IKE Policy")
permissions = ('openstack.services.network',) permissions = ('openstack.services.network',)
help_text = _("Create IKE Policy for current project.\n\n" help_text_template = "project/vpn/_add_ike_policy_help.html"
"An IKE policy is an association "
"of the following attributes:\n\n"
"<li>Authorization algorithm: "
"Auth algorithm limited to SHA1 only.</li>"
"<li>Encryption algorithm: "
"The type of algorithm "
"(3des, aes-128, aes-192, aes-256) "
"used in the IKE Policy.</li>"
"<li>IKE version: The type of version (v1/v2) "
"that needs to be filtered.</li>"
"<li>Lifetime: Life time consists of units and value. "
"Units in 'seconds' "
"and the default value is 3600.</li>"
"<li>Perfect Forward Secrecy: "
"PFS limited to using Diffie-Hellman "
"groups 2, 5(default) and 14.</li>"
"<li>IKE Phase 1 negotiation mode: "
"Limited to 'main' mode only.</li>\n"
"All fields are optional."
)
class AddIKEPolicyStep(workflows.Step): class AddIKEPolicyStep(workflows.Step):
@ -296,29 +266,7 @@ class AddIPSecPolicyAction(workflows.Action):
class Meta(object): class Meta(object):
name = _("Add New IPSec Policy") name = _("Add New IPSec Policy")
permissions = ('openstack.services.network',) permissions = ('openstack.services.network',)
help_text = _("Create IPSec Policy for current project.\n\n" help_text_template = 'project/vpn/_add_ipsec_policy_help.html'
"An IPSec policy is an association "
"of the following attributes:\n\n"
"<li>Authorization algorithm: "
"Auth_algorithm limited to SHA1 only.</li>"
"<li>Encapsulation mode: "
"The type of IPsec tunnel (tunnel/transport) "
"to be used.</li>"
"<li>Encryption algorithm: "
"The type of algorithm "
"(3des, aes-128, aes-192, aes-256) "
"used in the IPSec Policy.</li>"
"<li>Lifetime: Life time consists of units and value. "
"Units in 'seconds' "
"and the default value is 3600.</li>"
"<li>Perfect Forward Secrecy: "
"PFS limited to using Diffie-Hellman "
"groups 2, 5(default) and 14.</li>"
"<li>Transform Protocol: "
"The type of protocol "
"(esp, ah, ah-esp) used in IPSec Policy.</li>\n"
"All fields are optional."
)
class AddIPSecPolicyStep(workflows.Step): class AddIPSecPolicyStep(workflows.Step):
@ -441,8 +389,8 @@ class AddIPSecSiteConnectionAction(workflows.Action):
class Meta(object): class Meta(object):
name = _("Add New IPSec Site Connection") name = _("Add New IPSec Site Connection")
permissions = ('openstack.services.network',) permissions = ('openstack.services.network',)
help_text = _("Create IPSec Site Connection for current project.\n\n" help_text = _("Create IPSec Site Connection for current "
"Assign a name and description for the " "project. Assign a name and description for the "
"IPSec Site Connection. " "IPSec Site Connection. "
"All fields in this tab are required." "All fields in this tab are required."
) )

View File

@ -0,0 +1,7 @@
.dl-readable {
dd {
padding-left: $padding-base-vertical;
padding-bottom: $padding-base-horizontal;
}
}

View File

@ -20,6 +20,7 @@
@import "components/charts"; @import "components/charts";
@import "components/checkboxes"; @import "components/checkboxes";
@import "components/datepicker"; @import "components/datepicker";
@import "components/dl_lists";
@import "components/dropdowns"; @import "components/dropdowns";
@import "components/forms"; @import "components/forms";
@import "components/help_panel"; @import "components/help_panel";