_filter_form.haml 452 Bytes
Newer Older
1
2
3
4
5
6
7
8
9
10
11
- 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

Nicolas Joyard's avatar
Nicolas Joyard committed
12
13
14
15
16
17
  - if csv

    - buttons
      %button{'type': 'submit', 'name': 'csv', 'class': 'btn btn-default'}
        {% bootstrap_icon "download-alt" %} Download as CSV
    - endbuttons