Commit df42cd14 authored by Serge S. Koval's avatar Serge S. Koval

More consistent form_tag macro behavior

parent d0e735cf
...@@ -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() }}
......
...@@ -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 %}
......
...@@ -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 %}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment