igniterealtime/openfire-pushserver-plugin

JSP: use 'label' for form input fields

guusdk opened this issue · 0 comments

By using HTML label elements, the user experience of the end-user is improved a bit (as they can then click on the label of the input field to activate it).

Labels are easily added, by wrapping the description of the form field in a label element, that has a for attribute. The attribute value must match the id value for the input that it relates to. The id attribute must probably be added to the input field.

<td>
    <label for="key"><fmt:message key="pushserver.settings.ios.key" /><label>
</td>
<td>
    <input type="text" name="key" id="key" size="80" value='${pm:getProperty("pushserver.apple.apns.key")}' />
</td>