Commit 7da6745b authored by Nicolas Joyard's avatar Nicolas Joyard
Browse files

Separate filter form & integrate csv button

parent 2c1afc9b
- load bootstrap3
%form.filter-form{'action': '{{action}}', 'method': 'get'}
- bootstrap_form form=form bound_css_class='filter-form-group'
- buttons
%button{'type': 'submit', 'class': 'btn btn-primary'}
{% bootstrap_icon "filter" %} Filter
- endbuttons
- buttons
%a{'href': '?{{ qs }}&csv', 'class': 'btn btn-primary'}
{% bootstrap_icon "download-alt" %} Download as CSV
- endbuttons
......@@ -4,18 +4,16 @@
- load memopol_tags
- load representatives_recommendations_tags
- block content
- block search
- block head
{{ filter.form.media }}
%form.filter-form{action:'', method:'get'}
{{ filter.form.as_p }}
%input{type:"submit", value:"Go"}
- block content
- block search
%a{href:"?{% if request.GET.search %}search={{ request.GET.search }}&{% endif %}csv"}
- trans 'Download data as CSV'
{% url 'representative-list' as action_url %}
- include 'representatives/_filter_form.html' with action=action_url form=filter.form qs=request.GET.urlencode
- include 'core/blocks/pagination.html'
......
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