@@ -46,11 +46,7 @@ class AdvisorySearchForm(forms.Form):
46
46
class ApiUserCreationForm (forms .ModelForm ):
47
47
"""Support a simplified creation for API-only users directly from the UI."""
48
48
49
- captcha = AltchaField (
50
- floating = True ,
51
- hidefooter = True ,
52
- hidelogo = True ,
53
- )
49
+ captcha = AltchaField (floating = True , hidefooter = True )
54
50
55
51
class Meta :
56
52
model = ApiUser
@@ -66,18 +62,15 @@ def __init__(self, *args, **kwargs):
66
62
first_name_field = self .fields ["first_name" ]
67
63
last_name_field = self .fields ["last_name" ]
68
64
email_field .required = True
69
- email_field .label = "Email"
70
65
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"
74
67
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"
78
69
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 = ""
81
74
82
75
def save (self , commit = True ):
83
76
return ApiUser .objects .create_api_user (
@@ -109,8 +102,4 @@ class PipelineSchedulePackageForm(forms.Form):
109
102
110
103
111
104
class 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