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
c7e168d4
Commit
c7e168d4
authored
Sep 11, 2015
by
Paul Brown
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix form_rules rendering in modals, add comments for resolve_ctx
parent
c42eee33
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
14 additions
and
0 deletions
+14
-0
base.html
flask_admin/templates/bootstrap2/admin/base.html
+1
-0
create.html
...admin/templates/bootstrap2/admin/model/modals/create.html
+3
-0
edit.html
...k_admin/templates/bootstrap2/admin/model/modals/edit.html
+3
-0
base.html
flask_admin/templates/bootstrap3/admin/base.html
+1
-0
create.html
...admin/templates/bootstrap3/admin/model/modals/create.html
+3
-0
edit.html
...k_admin/templates/bootstrap3/admin/model/modals/edit.html
+3
-0
No files found.
flask_admin/templates/bootstrap2/admin/base.html
View file @
c7e168d4
...
...
@@ -53,6 +53,7 @@
{{ layout.messages() }}
{% endblock %}
{# store the jinja2 context for form_rules rendering logic #}
{% set render_ctx = h.resolve_ctx() %}
{% block body %}{% endblock %}
...
...
flask_admin/templates/bootstrap2/admin/model/modals/create.html
View file @
c7e168d4
{% import 'admin/static.html' as admin_static with context%}
{% import 'admin/lib.html' as lib with context %}
{# store the jinja2 context for form_rules rendering logic #}
{% set render_ctx = h.resolve_ctx() %}
{% 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,
...
...
flask_admin/templates/bootstrap2/admin/model/modals/edit.html
View file @
c7e168d4
{% import 'admin/static.html' as admin_static with context%}
{% import 'admin/lib.html' as lib with context %}
{# store the jinja2 context for form_rules rendering logic #}
{% set render_ctx = h.resolve_ctx() %}
{% 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,
...
...
flask_admin/templates/bootstrap3/admin/base.html
View file @
c7e168d4
...
...
@@ -64,6 +64,7 @@
{{ layout.messages() }}
{% endblock %}
{# store the jinja2 context for form_rules rendering logic #}
{% set render_ctx = h.resolve_ctx() %}
{% block body %}{% endblock %}
...
...
flask_admin/templates/bootstrap3/admin/model/modals/create.html
View file @
c7e168d4
{% import 'admin/static.html' as admin_static with context%}
{% import 'admin/lib.html' as lib with context %}
{# store the jinja2 context for form_rules rendering logic #}
{% set render_ctx = h.resolve_ctx() %}
{% block body %}
<div
class=
"modal-header"
>
<button
type=
"button"
class=
"close"
data-dismiss=
"modal"
aria-label=
"Close"
><span
aria-hidden=
"true"
>
×
</span></button>
...
...
flask_admin/templates/bootstrap3/admin/model/modals/edit.html
View file @
c7e168d4
{% import 'admin/static.html' as admin_static with context%}
{% import 'admin/lib.html' as lib with context %}
{# store the jinja2 context for form_rules rendering logic #}
{% set render_ctx = h.resolve_ctx() %}
{% block body %}
<div
class=
"modal-header"
>
<button
type=
"button"
class=
"close"
data-dismiss=
"modal"
aria-label=
"Close"
><span
aria-hidden=
"true"
>
×
</span></button>
...
...
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