X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=portal%2Fforms.py;h=6a23e784881f6af032d6defcc767aa625bceb41f;hb=2dc73f7ed3bbb2090f1e29c734269181dda18db1;hp=075f9427c50130de2b89302e84029f5e9bf2bfce;hpb=9b5bc9a851083b209d3296a7cae0fb67d05763b6;p=unfold.git diff --git a/portal/forms.py b/portal/forms.py index 075f9427..6a23e784 100644 --- a/portal/forms.py +++ b/portal/forms.py @@ -103,5 +103,8 @@ class SliceRequestForm(forms.Form): if authority_hrn:# and authority_hrn[0] not in (c[0] for c in authority_hrn): # XXX This does not work, the choicefield is not updated... #self.fields['authority_hrn'].choices.extend(authority_hrn) - self.fields['authority_hrn'] = forms.ChoiceField( choices=authority_hrn) + 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")