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
0fa65bad
Commit
0fa65bad
authored
Nov 15, 2013
by
Petrus J.v.Rensburg
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of github.com:mrjoes/flask-admin into examples
parents
2a8690f0
8f51c9c2
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
11 additions
and
1 deletion
+11
-1
.gitignore
.gitignore
+1
-0
actions.html
flask_admin/templates/admin/actions.html
+3
-0
lib.html
flask_admin/templates/admin/lib.html
+3
-0
list.html
flask_admin/templates/admin/model/list.html
+4
-1
No files found.
.gitignore
View file @
0fa65bad
...
...
@@ -20,3 +20,4 @@ examples/sqla-inline/static
examples/file/files
.DS_Store
.idea/
*.sqlite
flask_admin/templates/admin/actions.html
View file @
0fa65bad
...
...
@@ -12,6 +12,9 @@
{% macro form(actions, url) %}
{% if actions %}
<form
id=
"action_form"
action=
"{{ url }}"
method=
"POST"
style=
"display: none"
>
{% if csrf_token %}
<input
type=
"hidden"
name=
"csrf_token"
value=
"{{ csrf_token() }}"
/>
{% endif %}
<input
type=
"hidden"
id=
"action"
name=
"action"
/>
</form>
{% endif %}
...
...
flask_admin/templates/admin/lib.html
View file @
0fa65bad
...
...
@@ -112,6 +112,9 @@
{% if form.hidden_tag is defined %}
{{ form.hidden_tag() }}
{% else %}
{% if csrf_token %}
<input
type=
"hidden"
name=
"csrf_token"
value=
"{{ csrf_token() }}"
/>
{% endif %}
{% for f in form if f.type == 'HiddenField' %}
{{ f }}
{% endfor %}
...
...
flask_admin/templates/admin/model/list.html
View file @
0fa65bad
...
...
@@ -107,7 +107,10 @@
{%- endif -%}
{%- if admin_view.can_delete -%}
<form
class=
"icon"
method=
"POST"
action=
"{{ url_for('.delete_view', id=get_pk_value(row), url=return_url) }}"
>
<button
onclick=
"return confirm('{{ _gettext('You sure you want to delete this item?') }}');"
>
{% if csrf_token %}
<input
type=
"hidden"
name=
"csrf_token"
value=
"{{ csrf_token() }}"
/>
{% endif %}
<button
onclick=
"return confirm('{{ _gettext('You sure you want to delete this item?') }}');"
>
<i
class=
"icon-trash"
></i>
</button>
</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