Add labels for all controls of templates: gantt.html and calendar.html
Index: gantt.html =================================================================== --- gantt.html (revision 808) +++ gantt.html (working copy) @@ -195,44 +195,53 @@ <table class="list"> <tr> <td> + <label> ${_('Base Day')} <input type="text" id="field-baseday" name="baseday" value="${baseday.strftime(dateFormat)}" length="10" style="font-size:100%"/> + </label> </td> </tr> <tr> <td> + <label> ${_('Sort by')} <select name="sorted_field" style="font-size:100%"> <option value="milestone" selected="${sorted_field=='milestone' or None}">${_('Milestone')}</option> <option value="component" selected="${sorted_field=='component' or None}">${_('Component')}</option> - </select><br/> + </select> + </label><br/> </td> </tr> <tr> <td> - ${_('Selected')} ${_('Milestone')} = + ${_('Selected')} + <label> + ${_('Milestone')} = <select name="selected_milestone"> <py:for each="i in milestones.keys()"> <option selected="${selected_milestone==i or None}" value="$i">$i</option> </py:for> </select> + </label> AND + <label> ${_('Component')} = <select name="selected_component"> <py:for each="i in components"> <option selected="${selected_component==i.name or None}" value="${i.name}">${i.name}</option> </py:for> </select> + </label> </td> </tr> <tr> <td> - <input type="checkbox" name="show_my_ticket" checked="$show_my_ticket" />${_('Show only my tickets')} - <input type="checkbox" name="show_closed_ticket" checked="$show_closed_ticket" />${_('Include closed tickets')} + <label><input type="checkbox" name="show_my_ticket" checked="$show_my_ticket" />${_('Show only my tickets')}</label> + <label><input type="checkbox" name="show_closed_ticket" checked="$show_closed_ticket" />${_('Include closed tickets')}</label> - <input type="checkbox" name="show_ticket_summary" checked="$show_ticket_summary" />${_('Show ticket summary')} - <input type="checkbox" name="show_ticket_status" checked="$show_ticket_status" />${_('Show ticket status')}<br/> + <label><input type="checkbox" name="show_ticket_summary" checked="$show_ticket_summary" />${_('Show ticket summary')}</label> + <label><input type="checkbox" name="show_ticket_status" checked="$show_ticket_status" />${_('Show ticket status')}</label><br/> </td> <td align="right" valign="bottom"> Index: calendar.html =================================================================== --- calendar.html (revision 808) +++ calendar.html (working copy) @@ -116,14 +116,20 @@ <td> </td> <td> + <label> ${_('Milestone')} <select name="selected_milestone"> <option py:for="m in milestones" value="${m.name}" selected="${selected_milestone==m.name or None}">${m.name}</option> </select> + </label> + <label> <input type="checkbox" name="show_my_ticket" checked="$show_my_ticket" />${_('Show only my tickets')} + </label> + <label> <input type="checkbox" name="show_closed_ticket" checked="$show_closed_ticket" />${_('Include closed tickets')} + </label> </td> <td align="right"> <input type="submit" value="${_('Update')}" />
Applied by jun66j5.
Détails