File tree 2 files changed +9
-4
lines changed
crispy_tailwind/templatetags
2 files changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -88,7 +88,7 @@ class CrispyTailwindFieldNode(template.Node):
88
88
"radioselect" : "" ,
89
89
"email" : base_input ,
90
90
"url" : base_input ,
91
- "password" : "" ,
91
+ "password" : base_input ,
92
92
"hidden" : "" ,
93
93
"multiplehidden" : "" ,
94
94
"file" : "" ,
@@ -158,7 +158,6 @@ def render(self, context): # noqa: C901
158
158
css_class = class_name
159
159
160
160
# Added additional code for Tailwind
161
-
162
161
if template_pack == "tailwind" :
163
162
css_container = context .get ("css_container" , self .default_container )
164
163
if css_container :
Original file line number Diff line number Diff line change @@ -37,13 +37,19 @@ def test_crispy_filter(self):
37
37
<label for="id_password1" class="block text-gray-700 text-sm font-bold mb-2">password<span
38
38
class="asteriskField">*</span>
39
39
</label>
40
- <input type="password" name="password1" maxlength="30" class="passwordinput " required id="id_password1">
40
+ <input type="password" name="password1" maxlength="30"
41
+ class="passwordinput w-full rounded-lg """
42
+ """border appearance-none py-2 border-gray-300 bg-white text-gray-700 focus:outline-none px-4 block """
43
+ """leading-normal" required id="id_password1">
41
44
</div>
42
45
43
46
<div id="div_id_password2" class=" mb-3">
44
47
<label for="id_password2" class="block text-gray-700 text-sm font-bold mb-2">
45
48
re-enter password<span class="asteriskField">*</span> </label>
46
- <input type="password" name="password2" maxlength="30" class="passwordinput "
49
+ <input type="password" name="password2" maxlength="30"
50
+ class="passwordinput w-full rounded-lg """
51
+ """border appearance-none py-2 border-gray-300 bg-white text-gray-700 focus:outline-none px-4 block """
52
+ """leading-normal"
47
53
required id="id_password2"> </div>
48
54
49
55
<div id="div_id_first_name" class=" mb-3">
You can’t perform that action at this time.
0 commit comments