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
10680598
Commit
10680598
authored
Oct 25, 2015
by
Serge S. Koval
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1097 from pawl/more_form_blocks
add form blocks to modal and fileadmin templates too
parents
c2d376b9
de0e2e06
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 @
10680598
...
...
@@ -3,5 +3,7 @@
{% block body %}
{% block header %}
<h3>
{{ header_text }}
</h3>
{% endblock %}
{{ lib.render_form(form, dir_url) }}
{% block fa_form %}
{{ lib.render_form(form, dir_url) }}
{% endblock %}
{% endblock %}
flask_admin/templates/bootstrap2/admin/file/modals/form.html
View file @
10680598
...
...
@@ -3,7 +3,9 @@
{% block body %}
{# 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 %}
{% block tail %}
...
...
flask_admin/templates/bootstrap2/admin/model/modals/create.html
View file @
10680598
...
...
@@ -6,9 +6,11 @@
{% block body %}
{# "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,
action=url_for('.create_view', url=return_url),
is_modal=True) }}
{% block create_form %}
{{ lib.render_form(form, return_url, extra=None, form_opts=form_opts,
action=url_for('.create_view', url=return_url),
is_modal=True) }}
{% endblock %}
{% endblock %}
{% block tail %}
...
...
flask_admin/templates/bootstrap2/admin/model/modals/edit.html
View file @
10680598
...
...
@@ -6,9 +6,11 @@
{% block body %}
{# "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,
action=url_for('.edit_view', id=request.args.get('id'), url=return_url),
is_modal=True) }}
{% block edit_form %}
{{ lib.render_form(form, return_url, extra=None, form_opts=form_opts,
action=url_for('.edit_view', id=request.args.get('id'), url=return_url),
is_modal=True) }}
{% endblock %}
{% endblock %}
{% block tail %}
...
...
flask_admin/templates/bootstrap3/admin/file/form.html
View file @
10680598
...
...
@@ -3,5 +3,7 @@
{% block body %}
{% block header %}
<h3>
{{ header_text }}
</h3>
{% endblock %}
{{ lib.render_form(form, dir_url) }}
{% block fa_form %}
{{ lib.render_form(form, dir_url) }}
{% endblock %}
{% endblock %}
flask_admin/templates/bootstrap3/admin/file/modals/form.html
View file @
10680598
...
...
@@ -8,7 +8,9 @@
{% block header %}
<h3>
{{ header_text }}
</h3>
{% endblock %}
</div>
<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>
{% endblock %}
...
...
flask_admin/templates/bootstrap3/admin/model/modals/create.html
View file @
10680598
...
...
@@ -11,9 +11,11 @@
</div>
<div
class=
"modal-body"
>
{# "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,
action=url_for('.create_view', url=return_url),
is_modal=True) }}
{% block create_form %}
{{ lib.render_form(form, return_url, extra=None, form_opts=form_opts,
action=url_for('.create_view', url=return_url),
is_modal=True) }}
{% endblock %}
</div>
{% endblock %}
...
...
flask_admin/templates/bootstrap3/admin/model/modals/edit.html
View file @
10680598
...
...
@@ -13,9 +13,11 @@
</div>
<div
class=
"modal-body"
>
{# "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,
action=url_for('.edit_view', id=request.args.get('id'), url=return_url),
is_modal=True) }}
{% block edit_form %}
{{ lib.render_form(form, return_url, extra=None, form_opts=form_opts,
action=url_for('.edit_view', id=request.args.get('id'), url=return_url),
is_modal=True) }}
{% endblock %}
</div>
{% 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