This repository was archived by the owner on Nov 5, 2024. It is now read-only.
File tree 8 files changed +14
-14
lines changed
8 files changed +14
-14
lines changed Original file line number Diff line number Diff line change @@ -17,11 +17,11 @@ <h1>[% loc('Submit') %]</h1>
17
17
18
18
< p id ="confirm_details "> [% loc('Confirm details') %]</ p >
19
19
< div id ="name_details ">
20
- < label for ="form_may_show_name "> [% loc('Name') %]</ label >
20
+ < label for ="form_name "> [% loc('Name') %]</ label >
21
21
< input type ="text " class ="validName " value ="<%= user.name %> " name ="name " id ="form_name " placeholder ="[% loc('Your name') %] ">
22
22
23
23
< div class ="checkbox-group ">
24
- < input type ="checkbox " name ="may_show_name " id ="form_may_show_name " value ="1 " checked >
24
+ < input type ="checkbox " name ="may_show_name " id ="form_may_show_name " value ="1 " < %= user.may_show_name ? ' checked' : '' % > >
25
25
< label class ="inline " for ="form_may_show_name "> [% loc('Show my name publicly') %]</ label >
26
26
</ div >
27
27
@@ -56,11 +56,11 @@ <h5>[% loc('<strong>Yes</strong> I have a password') %]</h5>
56
56
< h5 id ="let_me_confirm "> [% loc('< strong > No</ strong > Let me confirm my report by email') %]</ h5 >
57
57
58
58
< div id ="name_details ">
59
- < label for ="form_may_show_name "> [% loc('Name') %]</ label >
59
+ < label for ="form_name "> [% loc('Name') %]</ label >
60
60
< input type ="text " class ="validName " value ="<%= user.name %> " name ="name " id ="form_name " placeholder ="[% loc('Your name') %] ">
61
61
62
62
< div class ="checkbox-group ">
63
- < input type ="checkbox " name ="may_show_name " id ="form_may_show_name " value ="1 " checked >
63
+ < input type ="checkbox " name ="may_show_name " id ="form_may_show_name " value ="1 " < %= user.may_show_name ? ' checked' : '' % > >
64
64
< label class ="inline " for ="form_may_show_name "> [% loc('Show my name publicly') %]</ label >
65
65
</ div >
66
66
Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ <h1>[% loc('Your details') %]</h1>
30
30
< input data-role ="none " type ="tel " value ="<%= user.phone %> " name ="name " id ="form_phone " placeholder ="[% loc('Optionally enter your phone number') %] ">
31
31
</ div >
32
32
< div class ="checkbox-group noborder ">
33
- < input type ="checkbox " name ="may_show_name " id ="form_may_show_name " value ="1 " < % if ( typeof user.may_show_name == 'undefined' || user.may_show_name ) { % > checked < % } %> >
33
+ < input type ="checkbox " name ="may_show_name " id ="form_may_show_name " value ="1 " < %= user.may_show_name ? 'checked' : '' %> >
34
34
< label class ="inline " for ="form_may_show_name "> [% loc('Show my name publicly') %]</ label >
35
35
</ div >
36
36
</ div >
Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ <h1>[% loc('Your details') %]</h1>
28
28
</ div >
29
29
< div data-role ="fieldcontain ">
30
30
< fieldset data-role ="controlgroup ">
31
- < input type ="checkbox " name ="may_show_name " id ="form_may_show_name " value ="1 " < % if ( typeof user.may_show_name == 'undefined' || user.may_show_name ) { % > checked < % } %> >
31
+ < input type ="checkbox " name ="may_show_name " id ="form_may_show_name " value ="1 " < %= user.may_show_name ? 'checked' : '' %> >
32
32
< label for ="form_may_show_name "> [% loc('Show my name publicly') %]</ label >
33
33
</ fieldset >
34
34
</ div >
Original file line number Diff line number Diff line change @@ -38,7 +38,7 @@ <h1>[% loc('Your details') %]</h1>
38
38
</ div >
39
39
< div data-role ="fieldcontain ">
40
40
< fieldset data-role ="controlgroup ">
41
- < input type ="checkbox " name ="may_show_name " id ="form_may_show_name " value ="1 " checked >
41
+ < input type ="checkbox " name ="may_show_name " id ="form_may_show_name " value ="1 " < %= user.may_show_name ? ' checked' : '' % > >
42
42
< label for ="form_may_show_name "> [% loc('Show my name publicly') %]</ label >
43
43
</ fieldset >
44
44
</ div >
Original file line number Diff line number Diff line change @@ -17,11 +17,11 @@ <h1>Submit</h1>
17
17
18
18
< p id ="confirm_details "> Confirm details</ p >
19
19
< div id ="name_details ">
20
- < label for ="form_may_show_name "> Name</ label >
20
+ < label for ="form_name "> Name</ label >
21
21
< input type ="text " class ="validName " value ="<%= user.name %> " name ="name " id ="form_name " placeholder ="Your name ">
22
22
23
23
< div class ="checkbox-group ">
24
- < input type ="checkbox " name ="may_show_name " id ="form_may_show_name " value ="1 " checked >
24
+ < input type ="checkbox " name ="may_show_name " id ="form_may_show_name " value ="1 " < %= user.may_show_name ? ' checked' : '' % > >
25
25
< label class ="inline " for ="form_may_show_name "> Show my name publicly</ label >
26
26
</ div >
27
27
@@ -56,11 +56,11 @@ <h5><strong>Yes</strong> I have a password</h5>
56
56
< h5 id ="let_me_confirm "> < strong > No</ strong > Let me confirm my report by email</ h5 >
57
57
58
58
< div id ="name_details ">
59
- < label for ="form_may_show_name "> Name</ label >
59
+ < label for ="form_name "> Name</ label >
60
60
< input type ="text " class ="validName " value ="<%= user.name %> " name ="name " id ="form_name " placeholder ="Your name ">
61
61
62
62
< div class ="checkbox-group ">
63
- < input type ="checkbox " name ="may_show_name " id ="form_may_show_name " value ="1 " checked >
63
+ < input type ="checkbox " name ="may_show_name " id ="form_may_show_name " value ="1 " < %= user.may_show_name ? ' checked' : '' % > >
64
64
< label class ="inline " for ="form_may_show_name "> Show my name publicly</ label >
65
65
</ div >
66
66
Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ <h1>Your details</h1>
30
30
< input data-role ="none " type ="tel " value ="<%= user.phone %> " name ="name " id ="form_phone " placeholder ="Optionally enter your phone number ">
31
31
</ div >
32
32
< div class ="checkbox-group noborder ">
33
- < input type ="checkbox " name ="may_show_name " id ="form_may_show_name " value ="1 " < % if ( typeof user.may_show_name == 'undefined' || user.may_show_name ) { % > checked < % } %> >
33
+ < input type ="checkbox " name ="may_show_name " id ="form_may_show_name " value ="1 " < %= user.may_show_name ? 'checked' : '' %> >
34
34
< label class ="inline " for ="form_may_show_name "> Show my name publicly</ label >
35
35
</ div >
36
36
</ div >
Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ <h1>Your details</h1>
28
28
</ div >
29
29
< div data-role ="fieldcontain ">
30
30
< fieldset data-role ="controlgroup ">
31
- < input type ="checkbox " name ="may_show_name " id ="form_may_show_name " value ="1 " < % if ( typeof user.may_show_name == 'undefined' || user.may_show_name ) { % > checked < % } %> >
31
+ < input type ="checkbox " name ="may_show_name " id ="form_may_show_name " value ="1 " < %= user.may_show_name ? 'checked' : '' %> >
32
32
< label for ="form_may_show_name "> Show my name publicly</ label >
33
33
</ fieldset >
34
34
</ div >
Original file line number Diff line number Diff line change @@ -38,7 +38,7 @@ <h1>Your details</h1>
38
38
</ div >
39
39
< div data-role ="fieldcontain ">
40
40
< fieldset data-role ="controlgroup ">
41
- < input type ="checkbox " name ="may_show_name " id ="form_may_show_name " value ="1 " checked >
41
+ < input type ="checkbox " name ="may_show_name " id ="form_may_show_name " value ="1 " < %= user.may_show_name ? ' checked' : '' % > >
42
42
< label for ="form_may_show_name "> Show my name publicly</ label >
43
43
</ fieldset >
44
44
</ div >
You can’t perform that action at this time.
0 commit comments