From: Thierry Parmentelat Date: Mon, 4 Nov 2013 14:23:53 +0000 (+0100) Subject: include onelab_marko in all views X-Git-Tag: myslice-0.3-0~119 X-Git-Url: http://git.onelab.eu/?p=myslice.git;a=commitdiff_plain;h=194f64e52b806bafa5a5e0ed2940b94a462fe87e include onelab_marko in all views harmonize 3 form views (register, slice request, and support) in terms of style, and avoid blinking hints as far as possible --- diff --git a/portal/forms.py b/portal/forms.py index 6a23e784..9bcf8fa6 100644 --- a/portal/forms.py +++ b/portal/forms.py @@ -64,27 +64,27 @@ class SliceRequestForm(forms.Form): slice_name = forms.CharField( widget=forms.TextInput(attrs={'class':'form-control'}), - help_text="Enter a name for the slice you wish to create") + help_text="The name for the slice you wish to create") authority_hrn = forms.ChoiceField( widget = forms.Select(attrs={'class':'form-control'}), choices = [], - help_text = "Please select an authority responsible for vetting your slice") + help_text = "An authority responsible for vetting your slice") number_of_nodes = forms.DecimalField( widget = forms.TextInput(attrs={'class':'form-control'}), - help_text = "Enter the number of nodes you expect to request (informative only)") + help_text = "The number of nodes you expect to request (informative)") type_of_nodes = forms.CharField( widget = forms.TextInput(attrs={'class':'form-control'}), - help_text = "Enter the type of nodes you expect to request (informative only)") + help_text = "The type of nodes you expect to request (informative)") purpose = forms.CharField( widget = forms.Textarea(attrs={'class':'form-control'}), - help_text = "Enter the purpose of your experiment (informative only)") + help_text = "The purpose of your experiment (informative)") email = forms.EmailField( widget = forms.TextInput(attrs={'class':'form-control'}), - help_text = "Enter your email address") + help_text = "Your email address") cc_myself = forms.BooleanField( widget = forms.CheckboxInput(attrs={'class':'form-control'}), required = False, - help_text = "Please indicate whether you would like to be CC'ed to the request email") + help_text = "If you'd like to be cc'ed on the request email") def __init__(self, *args, **kwargs): initial = kwargs.get('initial', {}) @@ -106,5 +106,5 @@ class SliceRequestForm(forms.Form): self.fields['authority_hrn'] = forms.ChoiceField( widget = forms.Select(attrs={'class':'form-control'}), choices = authority_hrn, - help_text = "Please select an authority responsible for vetting your slice") + help_text = "An authority responsible for vetting your slice") diff --git a/portal/static/css/registration.css b/portal/static/css/registration.css index 1a274a24..5fe83215 100644 --- a/portal/static/css/registration.css +++ b/portal/static/css/registration.css @@ -29,3 +29,8 @@ div.form-group:hover p.form-hint { -webkit-border-radius: 7px; border-radius: 7px; } + +/* avoid blinking effect with the rhs hints */ +select#auth_list { + height: 34px; +} diff --git a/portal/templates/contact.html b/portal/templates/contact.html index 26526477..43adfa5c 100644 --- a/portal/templates/contact.html +++ b/portal/templates/contact.html @@ -13,16 +13,18 @@ or visit us +
{% csrf_token %}
{% for field in form %}
- -
{{ field.errors }} {{ field }}

{{ field.help_text }}

+ +
{{ field.errors }} {{ field }}

{{ field.help_text }}

{% endfor %} - +
diff --git a/portal/templates/registration_view.html b/portal/templates/registration_view.html index 3d1010c5..2780d60a 100644 --- a/portal/templates/registration_view.html +++ b/portal/templates/registration_view.html @@ -20,21 +20,21 @@
{% csrf_token %}
- +
-

Enter your first name

+

Enter your first name

- +
-

Enter your last name

+

Enter your last name

- +
-

Please select an authority responsible for vetting your account

+

An authority responsible for vetting your account

- +
-

Enter your login

+

Enter your login

- +
-

Enter a valid email address

+

Enter a valid email address

- +
-

Enter password

+

Enter password

- +
-

Retype the password

+

Retype the password

- +
-

Genkey: Account Delegation Automatic (Recommended)

+

Genkey: Account Delegation Automatic (Recommended)

- +
diff --git a/portal/templates/slice-request-view.html b/portal/templates/slice-request-view.html index 6aede04f..502e380b 100644 --- a/portal/templates/slice-request-view.html +++ b/portal/templates/slice-request-view.html @@ -20,12 +20,12 @@
{% for field in form %}
- +
{{ field.errors }} {{ field }}
-

{{ field.help_text }}

+

{{ field.help_text }}

{% endfor %} - +
diff --git a/ui/templates/base.html b/ui/templates/base.html index 8c49b4a6..2cf0b0a8 100644 --- a/ui/templates/base.html +++ b/ui/templates/base.html @@ -10,7 +10,6 @@ {{ header_prelude }} {% block head %} {% endblock head %} {# let's add these ones no matter what #} -{% insert_str prelude "css/layout-unfold2.css" %} {% insert_str prelude "js/jquery.min.js" %} {% insert_str prelude "js/jquery.html5storage.min.js" %} {% insert_str prelude "js/messages-runtime.js" %} @@ -20,7 +19,10 @@ {% insert_str prelude "js/plugin.js" %} {% insert_str prelude "js/manifold.js" %} {% insert_str prelude "js/topmenu.js" %} +{% insert_str prelude "css/layout-unfold2.css" %} {% insert_str prelude "css/manifold.css" %} +{% insert_str prelude "css/plugin.css" %} +{% insert_str prelude "css/onelab_marko.css" %} {% block container %} {% block topmenu %} diff --git a/unfold/page.py b/unfold/page.py index 034b33b2..bc44cd1a 100644 --- a/unfold/page.py +++ b/unfold/page.py @@ -33,8 +33,8 @@ class Page: # queue of queries with maybe a domid, see enqueue_query self._queue=[] # global prelude object - self.prelude=Prelude(css_files=[ - 'css/plugin.css','css/onelab_marko.css',]) +# self.prelude=Prelude(css_files=['css/plugin.css','css/onelab_marko.css',]) + self.prelude=Prelude() # record known plugins hashed on their domid def record_plugin (self, plugin): diff --git a/unfold/static/css/onelab_marko.css b/unfold/static/css/onelab_marko.css index 8fa53dd7..39ce57f4 100644 --- a/unfold/static/css/onelab_marko.css +++ b/unfold/static/css/onelab_marko.css @@ -6,7 +6,7 @@ .container { padding: 0 !important; - color: #fff; +/* color: #fff; */ } .container h1 {