Commit 1065d833 authored by Paul Brown's avatar Paul Brown

add cancel button back, remove right alignment of form buttons

parent ffc5ecd1
......@@ -195,7 +195,7 @@
{% macro render_form_buttons(cancel_url, extra=None, is_modal=False) %}
<hr>
<div class="control-group pull-right">
<div class="control-group">
<div class="controls">
<input type="submit" class="btn btn-primary" value="{{ _gettext('Save') }}" />
{% if extra %}
......
......@@ -23,7 +23,7 @@
</ul>
{% endblock %}
{{ lib.render_form(form, cancel_url=None, extra=extra(), form_opts=form_opts) }}
{{ lib.render_form(form, return_url, extra(), form_opts) }}
{% endblock %}
{% block tail %}
......
......@@ -33,7 +33,7 @@
</ul>
{% endblock %}
{{ lib.render_form(form, cancel_url=None, extra=extra(), form_opts=form_opts) }}
{{ lib.render_form(form, return_url, extra(), form_opts) }}
{% endblock %}
{% block tail %}
......
......@@ -186,7 +186,7 @@
{% macro render_form_buttons(cancel_url, extra=None, is_modal=False) %}
<hr>
<div class="form-group">
<div class="col-md-offset-2 col-md-10 submit-row text-right">
<div class="col-md-offset-2 col-md-10 submit-row">
<input type="submit" class="btn btn-primary" value="{{ _gettext('Save') }}" />
{% if extra %}
{{ extra }}
......
......@@ -23,7 +23,7 @@
</ul>
{% endblock %}
{{ lib.render_form(form, cancel_url=None, extra=extra(), form_opts=form_opts) }}
{{ lib.render_form(form, return_url, extra(), form_opts) }}
{% endblock %}
{% block tail %}
......
......@@ -33,7 +33,7 @@
</ul>
{% endblock %}
{{ lib.render_form(form, cancel_url=None, extra=extra(), form_opts=form_opts) }}
{{ lib.render_form(form, return_url, extra(), form_opts) }}
{% endblock %}
{% block tail %}
......
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