clean up as hints are not yet exposed to slice request an contact
authorThierry Parmentelat <thierry.parmentelat@inria.fr>
Sat, 28 Sep 2013 07:20:40 +0000 (09:20 +0200)
committerThierry Parmentelat <thierry.parmentelat@inria.fr>
Sat, 28 Sep 2013 07:20:40 +0000 (09:20 +0200)
not quite sure these hints are really useful except in some very specific cases

portal/forms.py
portal/templates/contact.html
portal/templates/slice-request-view.html

index 07c25b4..109d966 100644 (file)
@@ -62,8 +62,7 @@ class SliceRequestForm(forms.Form):
 #    email = forms.EmailField()
 #    cc_myself = forms.BooleanField(required=False)
 
-    slice_name = forms.CharField(widget=forms.TextInput(attrs={'class':'form-control'}),
-                                 help_text="This shows up as a hint")
+    slice_name = forms.CharField(widget=forms.TextInput(attrs={'class':'form-control'}))
     authority_hrn = forms.ChoiceField(choices=[(1, 'un')],widget=forms.Select(attrs={'class':'form-control'}))
     number_of_nodes  = forms.DecimalField(widget=forms.TextInput(attrs={'class':'form-control'}))
     type_of_nodes = forms.CharField(widget=forms.TextInput(attrs={'class':'form-control'}))
index a174a5c..3468b0f 100644 (file)
@@ -19,7 +19,7 @@
     {% for field in form %}
     <div class="form-group">
       <label for="{{ field.html_name }}" class="col-md-4 control-label">{{ field.label }}</label>
-      <div class="col-md-4"> {{ field.errors }} {{ field }} <p class="hint">{{ field.help_text }}</p> </div>
+      <div class="col-md-4"> {{ field.errors }} {{ field }} <p class="form-hint">{{ field.help_text }}</p> </div>
     </div>
     {% endfor %}
     <div class="col-md-offset-4 col-md-4">
index 627a05c..7ff306c 100644 (file)
@@ -21,7 +21,7 @@
     {% for field in form %}
     <div class="form-group">
       <label for="{{ field.html_name }}" class="col-md-4 control-label">{{ field.label }}</label>
-      <div class="col-md-4"> {{ field.errors }} {{ field }} <p class="hint">{{ field.help_text }}</p> </div>
+      <div class="col-md-4"> {{ field.errors }} {{ field }} <p class="form-hint">{{ field.help_text }}</p> </div>
     </div>
     {% endfor %}
     <div class="col-md-offset-4 col-md-4">