Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
F
flask-admin
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Python-Dev
flask-admin
Commits
f0d64774
Commit
f0d64774
authored
Dec 15, 2013
by
Serge S. Koval
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed #384. Some accessibility fixes
parent
1a62fce5
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
10 deletions
+8
-10
lib.html
flask_admin/templates/admin/lib.html
+1
-3
list.html
flask_admin/templates/admin/model/list.html
+7
-7
No files found.
flask_admin/templates/admin/lib.html
View file @
f0d64774
...
@@ -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"
>
*
</strong>
<strong
style=
"color: red"
>
*
</strong>
{% else %}
{% endif %}
{% endif %}
</div>
</div>
<div
class=
"controls"
>
<div
class=
"controls"
>
...
...
flask_admin/templates/admin/model/list.html
View file @
f0d64774
...
@@ -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>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment