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
df42cd14
Commit
df42cd14
authored
Apr 24, 2013
by
Serge S. Koval
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
More consistent form_tag macro behavior
parent
d0e735cf
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
3 deletions
+3
-3
lib.html
flask_admin/templates/admin/lib.html
+1
-1
create.html
flask_admin/templates/admin/model/create.html
+1
-1
edit.html
flask_admin/templates/admin/model/edit.html
+1
-1
No files found.
flask_admin/templates/admin/lib.html
View file @
df42cd14
...
@@ -116,7 +116,7 @@
...
@@ -116,7 +116,7 @@
{% endfor %}
{% endfor %}
{% endmacro %}
{% endmacro %}
{% macro form_tag() %}
{% macro form_tag(
form=None
) %}
<form
action=
""
method=
"POST"
class=
"form-horizontal"
enctype=
"multipart/form-data"
>
<form
action=
""
method=
"POST"
class=
"form-horizontal"
enctype=
"multipart/form-data"
>
<fieldset>
<fieldset>
{{ caller() }}
{{ caller() }}
...
...
flask_admin/templates/admin/model/create.html
View file @
df42cd14
...
@@ -21,7 +21,7 @@
...
@@ -21,7 +21,7 @@
</li>
</li>
</ul>
</ul>
{% call lib.form_tag() %}
{% call lib.form_tag(
form
) %}
{{ lib.render_form_fields(form, widget_args=form_widget_args) }}
{{ lib.render_form_fields(form, widget_args=form_widget_args) }}
{{ lib.render_form_buttons(return_url, extra()) }}
{{ lib.render_form_buttons(return_url, extra()) }}
{% endcall %}
{% endcall %}
...
...
flask_admin/templates/admin/model/edit.html
View file @
df42cd14
...
@@ -8,7 +8,7 @@
...
@@ -8,7 +8,7 @@
{% endblock %}
{% endblock %}
{% block body %}
{% block body %}
{% call lib.form_tag() %}
{% call lib.form_tag(
form
) %}
{{ lib.render_form_fields(form, widget_args=form_widget_args) }}
{{ lib.render_form_fields(form, widget_args=form_widget_args) }}
{{ lib.render_form_buttons(return_url) }}
{{ lib.render_form_buttons(return_url) }}
{% endcall %}
{% endcall %}
...
...
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