java/code/webapp/WEB-INF/pages/systems/probes/edit.jsp | 20 ++++++++--------
java/code/webapp/WEB-INF/pages/systems/systemsearch.jsp | 16 ++++++------
2 files changed, 18 insertions(+), 18 deletions(-)
New commits:
commit 1c87c97218cb746584b1bcad1dc9fb84bc2d19e4
Author: Miroslav Suchý <msuchy(a)redhat.com>
Date: Wed Sep 15 17:10:25 2010 +0200
implement <label> for form fields - systems/probes/edit.jsp
diff --git a/java/code/webapp/WEB-INF/pages/systems/probes/edit.jsp
b/java/code/webapp/WEB-INF/pages/systems/probes/edit.jsp
index d68eed6..64e70a0 100644
--- a/java/code/webapp/WEB-INF/pages/systems/probes/edit.jsp
+++ b/java/code/webapp/WEB-INF/pages/systems/probes/edit.jsp
@@ -52,18 +52,18 @@ function refreshNotifFields() {
</tr>
</c:if>
<tr>
- <th><bean:message key="probeedit.jsp.description"
/></th>
- <td colspan="3"><html:text property="description"
maxlength="100" size="50" /></td>
+ <th><label for="description"><bean:message
key="probeedit.jsp.description" /></label></th>
+ <td colspan="3"><html:text property="description"
maxlength="100" size="50"
styleId="description"/></td>
</tr>
<tr>
- <th><bean:message key="probeedit.jsp.notification"
/></th>
- <td colspan="3"><html:checkbox
onclick="refreshNotifFields()" property="notification"
/></td>
+ <th><label for="notification"><bean:message
key="probeedit.jsp.notification" /></label></th>
+ <td colspan="3"><html:checkbox
onclick="refreshNotifFields()" property="notification"
styleId="notification"/></td>
</tr>
<tr>
- <th><bean:message key="probeedit.jsp.notifmin"
/></th>
+ <th><label for="notifmin"><bean:message
key="probeedit.jsp.notifmin" /></label></th>
<td colspan="3">
<html:select property="notification_interval_min"
- disabled="${not probeEditForm.map.notification}">
+ disabled="${not probeEditForm.map.notification}"
styleId="notifmin">
<html:options collection="intervals"
property="value"
labelProperty="label" />
@@ -71,9 +71,9 @@ function refreshNotifFields() {
</td>
</tr>
<tr>
- <th><bean:message key="probeedit.jsp.notifmethod"
/></th>
+ <th><label for="notifmethod"><bean:message
key="probeedit.jsp.notifmethod" /></label></th>
<td colspan="3"><html:select
property="contact_group_id"
- disabled="${not probeEditForm.map.notification}">
+ disabled="${not probeEditForm.map.notification}"
styleId="notifmethod">
<html:options collection="contactGroups"
property="value"
labelProperty="label" />
@@ -81,9 +81,9 @@ function refreshNotifFields() {
</td>
</tr>
<tr>
- <th><bean:message key="probeedit.jsp.checkinterval"
/></th>
+ <th><label for="checkinterval"><bean:message
key="probeedit.jsp.checkinterval" /></label></th>
<td colspan="3">
- <html:select property="check_interval_min">
+ <html:select property="check_interval_min"
styleId="checkinterval">
<html:options collection="intervals"
property="value"
labelProperty="label" />
commit 7e9c4294c8dba6e08dafa48263511b1c2c48db9b
Author: Miroslav Suchý <msuchy(a)redhat.com>
Date: Wed Sep 15 16:57:03 2010 +0200
implement <label> for form fields - systems/systemsearch.jsp
diff --git a/java/code/webapp/WEB-INF/pages/systems/systemsearch.jsp
b/java/code/webapp/WEB-INF/pages/systems/systemsearch.jsp
index d0b1e99..3ff16a3 100644
--- a/java/code/webapp/WEB-INF/pages/systems/systemsearch.jsp
+++ b/java/code/webapp/WEB-INF/pages/systems/systemsearch.jsp
@@ -20,9 +20,9 @@
<div class="search-choices">
<div class="search-choices-group">
<table class="details">
- <tr><th><bean:message
key="erratasearch.jsp.searchfor"/></th>
+ <tr><th><label for="searchfor"><bean:message
key="erratasearch.jsp.searchfor"/></label></th>
<td>
- <html:text property="search_string"
name="search_string"
+ <html:text property="search_string"
name="search_string" styleId="searchfor"
value="${search_string}" maxlength="36"
/>
<html:submit>
<bean:message key="button.search" />
@@ -30,9 +30,9 @@
</td>
</tr>
<tr>
- <th><bean:message
key="systemsearch.jsp.fieldtosearch"/></th>
+ <th><label for="fieldtosearch"><bean:message
key="systemsearch.jsp.fieldtosearch"/></label></th>
<td>
- <select name="view_mode" >
+ <select name="view_mode" styleId="fieldtosearch">
<c:forEach items="${optGroupsKeys}" var="key">
<optgroup label="<bean:message key="${key}"/>">
<c:forEach items="${optGroupsMap[key]}" var="option">
@@ -55,19 +55,19 @@
<th><bean:message
key="systemsearch.jsp.wheretosearch"/></th>
<td>
<div style="text-align: left">
- <html:radio property="whereToSearch"
value="all"/><bean:message
key="systemsearch.jsp.searchallsystems"/>
+ <html:radio property="whereToSearch" value="all"
styleId="whereToSearch-all"/><label
for="whereToSearch-all"><bean:message
key="systemsearch.jsp.searchallsystems"/></label>
</div>
<div style="text-align: left">
- <html:radio property="whereToSearch"
value="system_list"/><bean:message
key="systemsearch.jsp.searchSSM"/>
+ <html:radio property="whereToSearch" value="system_list"
styleId="whereToSearch-system_list"/><label
for="whereToSearch-system_list"><bean:message
key="systemsearch.jsp.searchSSM"/></label>
</div>
</td>
</tr>
<tr>
- <th><bean:message
key="systemsearch.jsp.invertlabel"/></th>
+ <th><label for="invertlabel"><bean:message
key="systemsearch.jsp.invertlabel"/></label></th>
<td>
<div style="text-align: left">
- <html:checkbox property="invert"><bean:message
key="systemsearch.jsp.invertdescription"/></html:checkbox>
+ <html:checkbox property="invert"
styleId="invertlabel"><label
for="invertlabel"><bean:message
key="systemsearch.jsp.invertdescription"/></label></html:checkbox>
</div>
</td>
</tr>
Show replies by date