Commit 0ac14567 authored by Serge S. Koval's avatar Serge S. Koval

Bootstrap 3 adjustments.

parent c8a4cc93
......@@ -129,7 +129,7 @@ table.flters tr td:nth-child(2){
}
.submit-row {
margin-top: 35px;
margin-top: 5px;
}
td>span.glyphicon {
......
......@@ -39,11 +39,12 @@
{% if messages %}
{% for category, m in messages %}
{% if category %}
<div class="alert alert-{{ category }} alert-dismissable">
{% set mapping = {'message': 'info', 'error': 'danger'} %}
<div class="alert alert-{{ mapping.get(category, 'warning') }} alert-dismissable">
{% else %}
<div class="alert alert-dismissable">
{% endif %}
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>
{{ m }}
</div>
{% endfor %}
......
......@@ -132,8 +132,8 @@
{% endif %}
{% endmacro %}
{% macro form_tag(form=None) %}
<form action="" method="POST" role="form" class="form-horizontal" enctype="multipart/form-data">
{% macro form_tag(form=None, action=None) %}
<form action="{{ action or '' }}" method="POST" role="form" class="form-horizontal" enctype="multipart/form-data">
{{ caller() }}
</form>
{% endmacro %}
......@@ -152,8 +152,8 @@
</div>
{% endmacro %}
{% macro render_form(form, cancel_url, extra=None, form_opts=None) -%}
{% call form_tag() %}
{% macro render_form(form, cancel_url, extra=None, form_opts=None, action=None) -%}
{% call form_tag(action=action) %}
{{ render_form_fields(form, form_opts=form_opts) }}
{{ render_form_buttons(cancel_url, extra) }}
{% 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