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
afd39bb0
Commit
afd39bb0
authored
Apr 23, 2015
by
Petrus J.v.Rensburg
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'Code4SA-upstream-column-classes'
parents
43ebeb80
57890933
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
8 deletions
+12
-8
list.html
flask_admin/templates/bootstrap2/admin/model/list.html
+6
-4
list.html
flask_admin/templates/bootstrap3/admin/model/list.html
+6
-4
No files found.
flask_admin/templates/bootstrap2/admin/model/list.html
View file @
afd39bb0
...
...
@@ -61,7 +61,7 @@
{% endblock %}
{% set column = 0 %}
{% for c, name in list_columns %}
<th
class=
"column-header"
>
<th
class=
"column-header
col-{{c}}
"
>
{% if admin_view.is_sortable(c) %}
{% if sort_column == column %}
<a
href=
"{{ sort_url(column, True) }}"
title=
"{{ _gettext('Sort by %(name)s', name=name) }}"
>
...
...
@@ -121,15 +121,17 @@
{% endblock %}
{% for c, name in list_columns %}
<td
class=
"col-{{c}}"
>
{% if admin_view.is_editable(c) %}
{% 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 %}
<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 %}
{% else %}
<td>
{{ get_value(row, c) }}
</td>
{{ get_value(row, c) }}
{% endif %}
</td>
{% endfor %}
{% endblock %}
</tr>
...
...
flask_admin/templates/bootstrap3/admin/model/list.html
View file @
afd39bb0
...
...
@@ -61,7 +61,7 @@
{% endblock %}
{% set column = 0 %}
{% for c, name in list_columns %}
<th
class=
"column-header"
>
<th
class=
"column-header
col-{{c}}
"
>
{% if admin_view.is_sortable(c) %}
{% if sort_column == column %}
<a
href=
"{{ sort_url(column, True) }}"
title=
"{{ _gettext('Sort by %(name)s', name=name) }}"
>
...
...
@@ -120,15 +120,17 @@
</td>
{% endblock %}
{% for c, name in list_columns %}
<td
class=
"col-{{c}}"
>
{% if admin_view.is_editable(c) %}
{% 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 %}
<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 %}
{% else %}
<td>
{{ get_value(row, c) }}
</td>
{{ get_value(row, c) }}
{% endif %}
</td>
{% endfor %}
{% endblock %}
</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