Commit f0d64774 authored by Serge S. Koval's avatar Serge S. Koval

Fixed #384. Some accessibility fixes

parent 1a62fce5
...@@ -79,11 +79,9 @@ ...@@ -79,11 +79,9 @@
{% set direct_error = h.is_field_error(field.errors) %} {% set direct_error = h.is_field_error(field.errors) %}
<div class="control-group{{ ' error' if direct_error else '' }}"> <div class="control-group{{ ' error' if direct_error else '' }}">
<div class="control-label"> <div class="control-label">
{{ field.label.text }} <label for="{{ field.id }}">{{ field.label.text }}</label>
{% if h.is_required_form_field(field) %} {% if h.is_required_form_field(field) %}
<strong style="color: red">&#42;</strong> <strong style="color: red">&#42;</strong>
{% else %}
&nbsp;
{% endif %} {% endif %}
</div> </div>
<div class="controls"> <div class="controls">
......
...@@ -18,7 +18,7 @@ ...@@ -18,7 +18,7 @@
</li> </li>
{% if admin_view.can_create %} {% if admin_view.can_create %}
<li> <li>
<a href="{{ url_for('.create_view', url=return_url) }}">{{ _gettext('Create') }}</a> <a href="{{ url_for('.create_view', url=return_url) }}" title="{{ _gettext('Create new record') }}">{{ _gettext('Create') }}</a>
</li> </li>
{% endif %} {% endif %}
...@@ -54,7 +54,7 @@ ...@@ -54,7 +54,7 @@
{% block list_header scoped %} {% block list_header scoped %}
{% if actions %} {% if actions %}
<th class="span1"> <th class="span1">
<input type="checkbox" name="rowtoggle" class="action-rowtoggle" /> <input type="checkbox" name="rowtoggle" class="action-rowtoggle" title="{{ _gettext('Select all records') }}" />
</th> </th>
{% endif %} {% endif %}
{% block list_row_actions_header %} {% block list_row_actions_header %}
...@@ -65,7 +65,7 @@ ...@@ -65,7 +65,7 @@
<th> <th>
{% if admin_view.is_sortable(c) %} {% if admin_view.is_sortable(c) %}
{% if sort_column == column %} {% if sort_column == column %}
<a href="{{ sort_url(column, True) }}"> <a href="{{ sort_url(column, True) }}" title="{{ _gettext('Sort by %(name)s', name=name) }}">
{{ name }} {{ name }}
{% if sort_desc %} {% if sort_desc %}
<i class="icon-chevron-up"></i> <i class="icon-chevron-up"></i>
...@@ -74,7 +74,7 @@ ...@@ -74,7 +74,7 @@
{% endif %} {% endif %}
</a> </a>
{% else %} {% else %}
<a href="{{ sort_url(column) }}">{{ name }}</a> <a href="{{ sort_url(column) }}" title="{{ _gettext('Sort by %(name)s', name=name) }}">{{ name }}</a>
{% endif %} {% endif %}
{% else %} {% else %}
{{ name }} {{ name }}
...@@ -96,13 +96,13 @@ ...@@ -96,13 +96,13 @@
{% block list_row scoped %} {% block list_row scoped %}
{% if actions %} {% if actions %}
<td> <td>
<input type="checkbox" name="rowid" class="action-checkbox" value="{{ get_pk_value(row) }}" /> <input type="checkbox" name="rowid" class="action-checkbox" value="{{ get_pk_value(row) }}" title="{{ _gettext('Select record') }}" />
</td> </td>
{% endif %} {% endif %}
<td> <td>
{% block list_row_actions scoped %} {% block list_row_actions scoped %}
{%- if admin_view.can_edit -%} {%- if admin_view.can_edit -%}
<a class="icon" href="{{ url_for('.edit_view', id=get_pk_value(row), url=return_url) }}"> <a class="icon" href="{{ url_for('.edit_view', id=get_pk_value(row), url=return_url) }}" title="Edit record">
<i class="icon-pencil"></i> <i class="icon-pencil"></i>
</a> </a>
{%- endif -%} {%- endif -%}
...@@ -111,7 +111,7 @@ ...@@ -111,7 +111,7 @@
{% if csrf_token %} {% if csrf_token %}
<input type="hidden" name="csrf_token" value="{{ csrf_token() }}"/> <input type="hidden" name="csrf_token" value="{{ csrf_token() }}"/>
{% endif %} {% endif %}
<button onclick="return confirm('{{ _gettext('You sure you want to delete this item?') }}');"> <button onclick="return confirm('{{ _gettext('You sure you want to delete this item?') }}');" title="Delete record">
<i class="icon-trash"></i> <i class="icon-trash"></i>
</button> </button>
</form> </form>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment