Skip to content

Commit bbac8e3

Browse files
committed
WWSympa: Screen Reader needs clear labels for text fields (sympa-community#1748)
1 parent 4f62c3a commit bbac8e3

7 files changed

+43
-22
lines changed

default/web_tt2/arcsearch_form.tt2

+1
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
<strong>[% archive_name %]</strong>
1818
</a>
1919

20+
<label for="key_word">[%|loc%]Search keywords:[%END%]</label>
2021
<input id="key_word" name="key_word" type="text" size="30" value="[% key_word %]" />
2122
<input name="action" type="hidden" value="arcsearch" />
2223
<input class="MainMenuLinks disableIfEmpty" data-selector="#key_word" name="action_arcsearch" type="submit" value="[%|loc%]Search[%END%]" />

default/web_tt2/compose_mail.tt2

+2-1
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,9 @@
88
[%|loc(mailto)%]To: %1[%END%]<br />
99
<label for="subject">
1010
[%|loc%]Subject:[%END%]
11-
<input id="subject" type="text" size="45" name="subject" value="[% subject %]" />
1211
</label>
12+
<input id="subject" type="text" size="45" name="subject"
13+
value="[% subject %]" />
1314
[% IF subaction == "html_news_letter" %]
1415
<input type="hidden" name="html_news_letter" value="[% subaction %]" />
1516
[% END %]

default/web_tt2/manage_template.tt2

+3-6
Original file line numberDiff line numberDiff line change
@@ -59,13 +59,10 @@
5959
[%IF content %]
6060
<form action="[% path_cgi %]" method="post" name="edit_templates">
6161
<fieldset>
62+
<h2>
63+
[%|loc(message_template)%]Edit rejection message %1[%END%]
64+
</h2>
6265
<p>
63-
<h2>[%|loc%]Edit[%END%] [% message_template %]</h2>
64-
</p>
65-
<p>
66-
<!-- [%|loc()%]Message Name:[%END%]<input type="text" name="message_template" value="[% message_template %]"> -->
67-
<!-- <input class="MainMenuLinks" type="submit" name="subaction_default" value="[%|loc%]Default Message[%END%]" /> -->
68-
6966
<textarea name="content" cols="50" rows="10" wrap="soft">
7067
[%~ content ~%]
7168
</textarea>

default/web_tt2/rss_request.tt2

+16-4
Original file line numberDiff line numberDiff line change
@@ -50,35 +50,47 @@
5050
<li>
5151
<label for="latest_arc">
5252
[%|loc%]latest arc:[%END%]
53-
<input type="text" name="latest_arc" id="latest_arc" size="[% s.length %]" value="[% latest_arc_url %]" />
5453
</label>
54+
<input type="text"
55+
name="latest_arc" id="latest_arc"
56+
size="[% s.length %]"
57+
value="[% latest_arc_url %]" />
5558
</li>
5659
[% END %]
5760
[% IF latest_d_read_url %]
5861
[% s = String.new(latest_d_read_url) %]
5962
<li>
6063
<label for="latest_d_read">
6164
[%|loc%]latest document:[%END%]
62-
<input type="text" name="latest_d_read" id="latest_d_read" size="[% s.length %]" value="[% latest_d_read_url %]" />
6365
</label>
66+
<input type="text"
67+
name="latest_d_read" id="latest_d_read"
68+
size="[% s.length %]"
69+
value="[% latest_d_read_url %]" />
6470
</li>
6571
[% END %]
6672
[% IF active_lists_url %]
6773
[% s = String.new(active_lists_url) %]
6874
<li>
6975
<label for="active_lists">
7076
[%|loc%]active lists:[%END%]
71-
<input type="text" name="active_lists" id="active_lists" size="[% s.length %]" value="[% active_lists_url %]" />
7277
</label>
78+
<input type="text"
79+
name="active_lists" id="active_lists"
80+
size="[% s.length %]"
81+
value="[% active_lists_url %]" />
7382
</li>
7483
[% END %]
7584
[% IF latest_lists_url %]
7685
[% s = String.new(latest_lists_url) %]
7786
<li>
7887
<label for="latest_lists">
7988
[%|loc%]latest lists:[%END%]
80-
<input type="text" name="latest_lists" id="latest_lists" size="[% s.length %]" value="[% latest_lists_url %]" />
8189
</label>
90+
<input type="text"
91+
name="latest_lists" id="latest_lists"
92+
size="[% s.length %]"
93+
value="[% latest_lists_url %]" />
8294
</li>
8395
[% END %]
8496
</ul>

default/web_tt2/search_list_request.tt2

+5-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,11 @@
22
<h2><i class="fa fa-search"></i> [%|loc%]Search for list(s)[%END%]</h2>
33
<form action="[% path_cgi %]" method="post">
44
<fieldset>
5-
<input type="text" size="14" name="filter_list" value="[% filter_list %]" title="[%|loc%]Enter a list name[%END%]" placeholder="[%|loc%]Enter a list name[%END%]"/>
5+
<label for="filter_list">[%|loc%]Search keywords:[%END%]</label>
6+
<input type="text" id="filter_list" size="14"
7+
name="filter_list" value="[% filter_list %]"
8+
title="[%|loc%]Enter a list name[%END%]"
9+
placeholder="[%|loc%]Enter a list name[%END%]"/>
610
<input type="hidden" name="action" value="search_list" />
711
<input class="MainMenuLinks heavyWork" type="submit" name="action_search_list" value="[%|loc%]Search lists[%END%]" />
812
</fieldset>

default/web_tt2/serveradmin.tt2

+5-2
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,9 @@
8383
<form action="[% path_cgi %]" method="post">
8484
<fieldset>
8585
<div style="padding-bottom:1.0em;">
86-
<input type="text" name="email" size="30" value="[% email %]" />
86+
<label for="user_email">[%|loc%]Email address:[%END%]</label>
87+
<input type="text" id="user_email" name="email" size="30"
88+
value="[% email %]" />
8789
</div>
8890
<input type="hidden" name="action" value="search_user" />
8991
<input class="MainMenuLinks" type="submit" name="action_search_user" value="[%|loc%]Search User[%END%]" />
@@ -126,6 +128,7 @@
126128
<p>[%|loc%]Listmasters can switch context (impersonate) other users; this may be useful when providing assistance or when testing privileges. Enter the email address of the user you'd like to switch context to:[%END%]</p>
127129
<form class="bold_label" action="[% path_cgi %]" method="post">
128130
<fieldset>
131+
<label for="session_email">[%|loc%]Email address:[%END%]</label>
129132
<input id="session_email" type="text" name="email" size="50"/>
130133
<div style="padding-top:1.0em; clear:both;">
131134
<input class="MainMenuLinks" type="submit" name="action_set_session_email" value="[%|loc%]Switch User Context[%END%]" />
@@ -143,7 +146,7 @@
143146

144147
<form action="[% path_cgi %]" method="post">
145148
<fieldset>
146-
<label for="list"></label>
149+
<label for="list">[%|loc%]List name:[%END%]</label>
147150
<input id="list" type="text" name="list" size="20" />
148151
<div style="padding-top:1.0em; padding-bottom:0.25em; float:clear;">
149152
<input class="MainMenuLinks" type="submit" name="action_rebuildarc" value="[%|loc%]Rebuild archive[%END%]" />

default/web_tt2/sso_login.tt2

+11-8
Original file line numberDiff line numberDiff line change
@@ -22,14 +22,17 @@
2222

2323
<label for="email">
2424
<strong>[%|loc%]Your e-mail address:[%END%]</strong>
25-
<br />
26-
[% IF init_email %]
27-
[% email %]
28-
<input id="email" type="text" name="email" value="[% init_email %]" />
29-
[% ELSE %]
30-
<input id="email" type="text" name="email" value="" />
31-
[% END %]
32-
</label>&nbsp; &nbsp; &nbsp;
25+
</label>
26+
<br />
27+
[% IF init_email %]
28+
[% email %]
29+
<input id="email" type="text" name="email"
30+
value="[% init_email %]" />
31+
[% ELSE %]
32+
<input id="email" type="text" name="email"
33+
value="" />
34+
[% END %]
35+
&nbsp; &nbsp; &nbsp;
3336
<input type="submit" name="action_sso_login" value="[%|loc%]Send me a confirmation password[%END%]"/>
3437
</fieldset>
3538
</form>

0 commit comments

Comments
 (0)