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
9e3244de
Commit
9e3244de
authored
Mar 30, 2015
by
Greg Kempe
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add CSS classes for columns
parent
c2bb3aca
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
+6
-4
list.html
flask_admin/templates/bootstrap3/admin/model/list.html
+6
-4
No files found.
flask_admin/templates/bootstrap3/admin/model/list.html
View file @
9e3244de
...
@@ -61,7 +61,7 @@
...
@@ -61,7 +61,7 @@
{% endblock %}
{% endblock %}
{% set column = 0 %}
{% set column = 0 %}
{% for c, name in list_columns %}
{% for c, name in list_columns %}
<th
class=
"column-
header
"
>
<th
class=
"column-
{{c}}
"
>
{% 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) }}"
title=
"{{ _gettext('Sort by %(name)s', name=name) }}"
>
<a
href=
"{{ sort_url(column, True) }}"
title=
"{{ _gettext('Sort by %(name)s', name=name) }}"
>
...
@@ -120,15 +120,17 @@
...
@@ -120,15 +120,17 @@
</td>
</td>
{% endblock %}
{% endblock %}
{% for c, name in list_columns %}
{% for c, name in list_columns %}
<td
class=
"column-{{c}}"
>
{% if admin_view.is_editable(c) %}
{% if admin_view.is_editable(c) %}
{% if form.csrf_token %}
{% if form.csrf_token %}
<td>
{{ form[c](pk=get_pk_value(row), value=get_value(row, c), csrf=form.csrf_token._value()) }}
</td>
{{ form[c](pk=get_pk_value(row), value=get_value(row, c), csrf=form.csrf_token._value()) }}
{% else %}
{% else %}
<td>
{{ form[c](pk=get_pk_value(row), value=get_value(row, c)) }}
</td>
{{ form[c](pk=get_pk_value(row), value=get_value(row, c)) }}
{% endif %}
{% endif %}
{% else %}
{% else %}
<td>
{{ get_value(row, c) }}
</td>
{{ get_value(row, c) }}
{% endif %}
{% endif %}
</td>
{% endfor %}
{% endfor %}
{% endblock %}
{% endblock %}
</tr>
</tr>
...
...
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