@@ -46,11 +46,7 @@ class AdvisorySearchForm(forms.Form):
4646class ApiUserCreationForm (forms .ModelForm ):
4747 """Support a simplified creation for API-only users directly from the UI."""
4848
49- captcha = AltchaField (
50- floating = True ,
51- hidefooter = True ,
52- hidelogo = True ,
53- )
49+ captcha = AltchaField (floating = True , hidefooter = True )
5450
5551 class Meta :
5652 model = ApiUser
@@ -66,18 +62,15 @@ def __init__(self, *args, **kwargs):
6662 first_name_field = self .fields ["first_name" ]
6763 last_name_field = self .fields ["last_name" ]
6864 email_field .required = True
69- email_field .label = "Email"
7065 email_field .widget .attrs ["class" ] = "input"
71- email_field .widget .attrs ["style" ] = "width: 50%"
72- email_field .widget .attrs ["placeholder" ] = "foo@bar.com"
73- first_name_field .label = "First Name"
66+ email_field .widget .attrs ["placeholder" ] = "Email"
7467 first_name_field .widget .attrs ["class" ] = "input"
75- first_name_field .widget .attrs ["style" ] = "width: 50%"
76- first_name_field .widget .attrs ["placeholder" ] = "Jon"
77- last_name_field .label = "Last Name"
68+ first_name_field .widget .attrs ["placeholder" ] = "First Name"
7869 last_name_field .widget .attrs ["class" ] = "input"
79- last_name_field .widget .attrs ["style" ] = "width: 50%"
80- last_name_field .widget .attrs ["placeholder" ] = "Doe"
70+ last_name_field .widget .attrs ["placeholder" ] = "Last Name"
71+ email_field .label = ""
72+ first_name_field .label = ""
73+ last_name_field .label = ""
8174
8275 def save (self , commit = True ):
8376 return ApiUser .objects .create_api_user (
@@ -109,8 +102,4 @@ class PipelineSchedulePackageForm(forms.Form):
109102
110103
111104class AdminLoginForm (AdminAuthenticationForm ):
112- captcha = AltchaField (
113- floating = True ,
114- hidefooter = True ,
115- hidelogo = True ,
116- )
105+ captcha = AltchaField (floating = True , hidefooter = True )
0 commit comments