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
de0e2e06
Commit
de0e2e06
authored
Oct 24, 2015
by
Paul Brown
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add form blocks to modal and fileadmin templates
parent
c2d376b9
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
32 additions
and
16 deletions
+32
-16
form.html
flask_admin/templates/bootstrap2/admin/file/form.html
+3
-1
form.html
flask_admin/templates/bootstrap2/admin/file/modals/form.html
+3
-1
create.html
...admin/templates/bootstrap2/admin/model/modals/create.html
+5
-3
edit.html
...k_admin/templates/bootstrap2/admin/model/modals/edit.html
+5
-3
form.html
flask_admin/templates/bootstrap3/admin/file/form.html
+3
-1
form.html
flask_admin/templates/bootstrap3/admin/file/modals/form.html
+3
-1
create.html
...admin/templates/bootstrap3/admin/model/modals/create.html
+5
-3
edit.html
...k_admin/templates/bootstrap3/admin/model/modals/edit.html
+5
-3
No files found.
flask_admin/templates/bootstrap2/admin/file/form.html
View file @
de0e2e06
...
@@ -3,5 +3,7 @@
...
@@ -3,5 +3,7 @@
{% block body %}
{% block body %}
{% block header %}
<h3>
{{ header_text }}
</h3>
{% endblock %}
{% block header %}
<h3>
{{ header_text }}
</h3>
{% endblock %}
{{ lib.render_form(form, dir_url) }}
{% block fa_form %}
{{ lib.render_form(form, dir_url) }}
{% endblock %}
{% endblock %}
{% endblock %}
flask_admin/templates/bootstrap2/admin/file/modals/form.html
View file @
de0e2e06
...
@@ -3,7 +3,9 @@
...
@@ -3,7 +3,9 @@
{% block body %}
{% block body %}
{# content added to modal-content #}
{# content added to modal-content #}
{{ lib.render_form(form, dir_url, action=request.url, is_modal=True) }}
{% block fa_form %}
{{ lib.render_form(form, dir_url, action=request.url, is_modal=True) }}
{% endblock %}
{% endblock %}
{% endblock %}
{% block tail %}
{% block tail %}
...
...
flask_admin/templates/bootstrap2/admin/model/modals/create.html
View file @
de0e2e06
...
@@ -6,9 +6,11 @@
...
@@ -6,9 +6,11 @@
{% block body %}
{% block body %}
{# "save and add" button is removed from modal (it won't function properly) #}
{# "save and add" button is removed from modal (it won't function properly) #}
{{ lib.render_form(form, return_url, extra=None, form_opts=form_opts,
{% block create_form %}
action=url_for('.create_view', url=return_url),
{{ lib.render_form(form, return_url, extra=None, form_opts=form_opts,
is_modal=True) }}
action=url_for('.create_view', url=return_url),
is_modal=True) }}
{% endblock %}
{% endblock %}
{% endblock %}
{% block tail %}
{% block tail %}
...
...
flask_admin/templates/bootstrap2/admin/model/modals/edit.html
View file @
de0e2e06
...
@@ -6,9 +6,11 @@
...
@@ -6,9 +6,11 @@
{% block body %}
{% block body %}
{# "save and continue" button is removed from modal (it won't function properly) #}
{# "save and continue" button is removed from modal (it won't function properly) #}
{{ lib.render_form(form, return_url, extra=None, form_opts=form_opts,
{% block edit_form %}
action=url_for('.edit_view', id=request.args.get('id'), url=return_url),
{{ lib.render_form(form, return_url, extra=None, form_opts=form_opts,
is_modal=True) }}
action=url_for('.edit_view', id=request.args.get('id'), url=return_url),
is_modal=True) }}
{% endblock %}
{% endblock %}
{% endblock %}
{% block tail %}
{% block tail %}
...
...
flask_admin/templates/bootstrap3/admin/file/form.html
View file @
de0e2e06
...
@@ -3,5 +3,7 @@
...
@@ -3,5 +3,7 @@
{% block body %}
{% block body %}
{% block header %}
<h3>
{{ header_text }}
</h3>
{% endblock %}
{% block header %}
<h3>
{{ header_text }}
</h3>
{% endblock %}
{{ lib.render_form(form, dir_url) }}
{% block fa_form %}
{{ lib.render_form(form, dir_url) }}
{% endblock %}
{% endblock %}
{% endblock %}
flask_admin/templates/bootstrap3/admin/file/modals/form.html
View file @
de0e2e06
...
@@ -8,7 +8,9 @@
...
@@ -8,7 +8,9 @@
{% block header %}
<h3>
{{ header_text }}
</h3>
{% endblock %}
{% block header %}
<h3>
{{ header_text }}
</h3>
{% endblock %}
</div>
</div>
<div
class=
"modal-body"
>
<div
class=
"modal-body"
>
{{ lib.render_form(form, dir_url, action=request.url, is_modal=True) }}
{% block fa_form %}
{{ lib.render_form(form, dir_url, action=request.url, is_modal=True) }}
{% endblock %}
</div>
</div>
{% endblock %}
{% endblock %}
...
...
flask_admin/templates/bootstrap3/admin/model/modals/create.html
View file @
de0e2e06
...
@@ -11,9 +11,11 @@
...
@@ -11,9 +11,11 @@
</div>
</div>
<div
class=
"modal-body"
>
<div
class=
"modal-body"
>
{# "save and add" button is removed from modal (it won't function properly) #}
{# "save and add" button is removed from modal (it won't function properly) #}
{{ lib.render_form(form, return_url, extra=None, form_opts=form_opts,
{% block create_form %}
action=url_for('.create_view', url=return_url),
{{ lib.render_form(form, return_url, extra=None, form_opts=form_opts,
is_modal=True) }}
action=url_for('.create_view', url=return_url),
is_modal=True) }}
{% endblock %}
</div>
</div>
{% endblock %}
{% endblock %}
...
...
flask_admin/templates/bootstrap3/admin/model/modals/edit.html
View file @
de0e2e06
...
@@ -13,9 +13,11 @@
...
@@ -13,9 +13,11 @@
</div>
</div>
<div
class=
"modal-body"
>
<div
class=
"modal-body"
>
{# "save and continue" button is removed from modal (it won't function properly) #}
{# "save and continue" button is removed from modal (it won't function properly) #}
{{ lib.render_form(form, return_url, extra=None, form_opts=form_opts,
{% block edit_form %}
action=url_for('.edit_view', id=request.args.get('id'), url=return_url),
{{ lib.render_form(form, return_url, extra=None, form_opts=form_opts,
is_modal=True) }}
action=url_for('.edit_view', id=request.args.get('id'), url=return_url),
is_modal=True) }}
{% endblock %}
</div>
</div>
{% endblock %}
{% endblock %}
...
...
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