diff --git a/memopol/tests/response_fixtures/RepresentativeListTest.test_filter_chamber.content b/memopol/tests/response_fixtures/RepresentativeListTest.test_filter_chamber.content index 267fce10594769e891040ad5e3dd7308e8825887..e43743c271267cb3e3fc4f068e9401a5e4cf2f57 100644 --- a/memopol/tests/response_fixtures/RepresentativeListTest.test_filter_chamber.content +++ b/memopol/tests/response_fixtures/RepresentativeListTest.test_filter_chamber.content @@ -145,9 +145,9 @@ </div> <div class="form-group"> - <a class='btn btn-primary' href='?country=&search=&group=&chamber=1&csv'> + <button class='btn btn-default' type='submit' name='csv'> <span class="glyphicon glyphicon-download-alt"></span> Download as CSV - </a> + </button> </div> </form> diff --git a/memopol/tests/response_fixtures/RepresentativeListTest.test_filter_country.content b/memopol/tests/response_fixtures/RepresentativeListTest.test_filter_country.content index ee1777053fbfb30eaf1fea4f2f79760f53d0ae4a..4d3da60e7ab8c39db99aac6c24dacc5e6d563abe 100644 --- a/memopol/tests/response_fixtures/RepresentativeListTest.test_filter_country.content +++ b/memopol/tests/response_fixtures/RepresentativeListTest.test_filter_country.content @@ -145,9 +145,9 @@ </div> <div class="form-group"> - <a class='btn btn-primary' href='?country=110&search=&group=&chamber=&csv'> + <button class='btn btn-default' type='submit' name='csv'> <span class="glyphicon glyphicon-download-alt"></span> Download as CSV - </a> + </button> </div> </form> diff --git a/memopol/tests/response_fixtures/RepresentativeListTest.test_filter_group.content b/memopol/tests/response_fixtures/RepresentativeListTest.test_filter_group.content index 4e6756748c0a2da7c5c6163dd8eee1d3a16ecd91..2143b3648b0f9a4779a428f086b43d84748f864c 100644 --- a/memopol/tests/response_fixtures/RepresentativeListTest.test_filter_group.content +++ b/memopol/tests/response_fixtures/RepresentativeListTest.test_filter_group.content @@ -146,9 +146,9 @@ </div> <div class="form-group"> - <a class='btn btn-primary' href='?country=&search=&group=17&chamber=&csv'> + <button class='btn btn-default' type='submit' name='csv'> <span class="glyphicon glyphicon-download-alt"></span> Download as CSV - </a> + </button> </div> </form> diff --git a/memopol/tests/response_fixtures/RepresentativeListTest.test_filter_multiple.content b/memopol/tests/response_fixtures/RepresentativeListTest.test_filter_multiple.content index d78219af981bf0962441bb63cc4060819d300d8c..c7ad17e354f928d460d3c892218bae093627de83 100644 --- a/memopol/tests/response_fixtures/RepresentativeListTest.test_filter_multiple.content +++ b/memopol/tests/response_fixtures/RepresentativeListTest.test_filter_multiple.content @@ -146,9 +146,9 @@ </div> <div class="form-group"> - <a class='btn btn-primary' href='?country=110&search=e&group=17&chamber=1&csv'> + <button class='btn btn-default' type='submit' name='csv'> <span class="glyphicon glyphicon-download-alt"></span> Download as CSV - </a> + </button> </div> </form> diff --git a/memopol/tests/response_fixtures/RepresentativeListTest.test_filter_notfound.content b/memopol/tests/response_fixtures/RepresentativeListTest.test_filter_notfound.content index 07ed02ac19bb977585b4568eb75527d59b680554..36bed4ed779cbafbb7e83e6dc42cb05f7cfdf5a0 100644 --- a/memopol/tests/response_fixtures/RepresentativeListTest.test_filter_notfound.content +++ b/memopol/tests/response_fixtures/RepresentativeListTest.test_filter_notfound.content @@ -145,9 +145,9 @@ </div> <div class="form-group"> - <a class='btn btn-primary' href='?country=&search=non-existing-rep-name&group=&chamber=&csv'> + <button class='btn btn-default' type='submit' name='csv'> <span class="glyphicon glyphicon-download-alt"></span> Download as CSV - </a> + </button> </div> </form> diff --git a/memopol/tests/response_fixtures/RepresentativeListTest.test_filter_search.content b/memopol/tests/response_fixtures/RepresentativeListTest.test_filter_search.content index e1de94124905e12b2a7dabdfb71c933e996a12eb..5f6741576f83ea2af8c85c8812ec42d1bab3e63c 100644 --- a/memopol/tests/response_fixtures/RepresentativeListTest.test_filter_search.content +++ b/memopol/tests/response_fixtures/RepresentativeListTest.test_filter_search.content @@ -145,9 +145,9 @@ </div> <div class="form-group"> - <a class='btn btn-primary' href='?country=&search=am&group=&chamber=&csv'> + <button class='btn btn-default' type='submit' name='csv'> <span class="glyphicon glyphicon-download-alt"></span> Download as CSV - </a> + </button> </div> </form> diff --git a/memopol/tests/response_fixtures/RepresentativeListTest.test_page1_paginateby12_active_displaylist.content b/memopol/tests/response_fixtures/RepresentativeListTest.test_page1_paginateby12_active_displaylist.content index 2e3fa8afbcb0fa25b04af65aaa66915ad05050e8..0250a0930ea8fda297a6b98a24e21f2c5315b990 100644 --- a/memopol/tests/response_fixtures/RepresentativeListTest.test_page1_paginateby12_active_displaylist.content +++ b/memopol/tests/response_fixtures/RepresentativeListTest.test_page1_paginateby12_active_displaylist.content @@ -145,9 +145,9 @@ </div> <div class="form-group"> - <a class='btn btn-primary' href='?search=&page=1&csv'> + <button class='btn btn-default' type='submit' name='csv'> <span class="glyphicon glyphicon-download-alt"></span> Download as CSV - </a> + </button> </div> </form> diff --git a/memopol/tests/response_fixtures/RepresentativeListTest.test_page1_paginateby12_all_displaylist.content b/memopol/tests/response_fixtures/RepresentativeListTest.test_page1_paginateby12_all_displaylist.content index a7608864e69c2018202c27f21d401fac24f96eb0..84db20acd8b778afe9e1a28c5d5e2e61d77aa8d7 100644 --- a/memopol/tests/response_fixtures/RepresentativeListTest.test_page1_paginateby12_all_displaylist.content +++ b/memopol/tests/response_fixtures/RepresentativeListTest.test_page1_paginateby12_all_displaylist.content @@ -145,9 +145,9 @@ </div> <div class="form-group"> - <a class='btn btn-primary' href='?search=&page=1&csv'> + <button class='btn btn-default' type='submit' name='csv'> <span class="glyphicon glyphicon-download-alt"></span> Download as CSV - </a> + </button> </div> </form> diff --git a/memopol/tests/response_fixtures/RepresentativeListTest.test_page1_paginateby12_displaylist_searchjoly.content b/memopol/tests/response_fixtures/RepresentativeListTest.test_page1_paginateby12_displaylist_searchjoly.content index 6e845dfc2ddaee9e43fc299dde52520816cb4f88..d9984e38c18eac8ace05c0e371e0bba77e5d6e97 100644 --- a/memopol/tests/response_fixtures/RepresentativeListTest.test_page1_paginateby12_displaylist_searchjoly.content +++ b/memopol/tests/response_fixtures/RepresentativeListTest.test_page1_paginateby12_displaylist_searchjoly.content @@ -145,9 +145,9 @@ </div> <div class="form-group"> - <a class='btn btn-primary' href='?search=joly&page=1&csv'> + <button class='btn btn-default' type='submit' name='csv'> <span class="glyphicon glyphicon-download-alt"></span> Download as CSV - </a> + </button> </div> </form> diff --git a/memopol/tests/response_fixtures/RepresentativeListTest.test_page1_paginateby24_active_displaygrid.content b/memopol/tests/response_fixtures/RepresentativeListTest.test_page1_paginateby24_active_displaygrid.content index 3477c9b0865375de6b183f4eccca7417da405a1d..3cb5bef41b080c32865fd89740f99bddde87ac2c 100644 --- a/memopol/tests/response_fixtures/RepresentativeListTest.test_page1_paginateby24_active_displaygrid.content +++ b/memopol/tests/response_fixtures/RepresentativeListTest.test_page1_paginateby24_active_displaygrid.content @@ -145,9 +145,9 @@ </div> <div class="form-group"> - <a class='btn btn-primary' href='?search=&page=1&csv'> + <button class='btn btn-default' type='submit' name='csv'> <span class="glyphicon glyphicon-download-alt"></span> Download as CSV - </a> + </button> </div> </form> diff --git a/memopol/tests/response_fixtures/RepresentativeListTest.test_page1_paginateby24_all_displaygrid.content b/memopol/tests/response_fixtures/RepresentativeListTest.test_page1_paginateby24_all_displaygrid.content index 522587eddea9942213e35d9d37c141ed524821ae..a2c53d554e530995494f96a0fdd455cd651a684c 100644 --- a/memopol/tests/response_fixtures/RepresentativeListTest.test_page1_paginateby24_all_displaygrid.content +++ b/memopol/tests/response_fixtures/RepresentativeListTest.test_page1_paginateby24_all_displaygrid.content @@ -145,9 +145,9 @@ </div> <div class="form-group"> - <a class='btn btn-primary' href='?search=&page=1&csv'> + <button class='btn btn-default' type='submit' name='csv'> <span class="glyphicon glyphicon-download-alt"></span> Download as CSV - </a> + </button> </div> </form> diff --git a/memopol/tests/response_fixtures/RepresentativeListTest.test_page2_paginateby12_displaylist.content b/memopol/tests/response_fixtures/RepresentativeListTest.test_page2_paginateby12_displaylist.content index 16f90ead4011582e2577e4b9c3905c32899aba6b..294423ff161be09fc9d063aeeeb3ab93a330c695 100644 --- a/memopol/tests/response_fixtures/RepresentativeListTest.test_page2_paginateby12_displaylist.content +++ b/memopol/tests/response_fixtures/RepresentativeListTest.test_page2_paginateby12_displaylist.content @@ -145,9 +145,9 @@ </div> <div class="form-group"> - <a class='btn btn-primary' href='?search=&page=2&csv'> + <button class='btn btn-default' type='submit' name='csv'> <span class="glyphicon glyphicon-download-alt"></span> Download as CSV - </a> + </button> </div> </form> diff --git a/memopol/tests/response_fixtures/RepresentativeListTest.test_page2_paginateby24_displaylist.content b/memopol/tests/response_fixtures/RepresentativeListTest.test_page2_paginateby24_displaylist.content index a995482e7d01652b41e0a08d0939bc4f1b004341..b6cb3a318c114113da3d7f6d9814030a60cac77d 100644 --- a/memopol/tests/response_fixtures/RepresentativeListTest.test_page2_paginateby24_displaylist.content +++ b/memopol/tests/response_fixtures/RepresentativeListTest.test_page2_paginateby24_displaylist.content @@ -145,9 +145,9 @@ </div> <div class="form-group"> - <a class='btn btn-primary' href='?search=&page=2&csv'> + <button class='btn btn-default' type='submit' name='csv'> <span class="glyphicon glyphicon-download-alt"></span> Download as CSV - </a> + </button> </div> </form> diff --git a/templates/representatives/_filter_form.haml b/templates/representatives/_filter_form.haml index 1940d5fc0456974c3e3add4925336e1682ff81ef..cebb07f28b8f3f8e735d8e0ac65c7070f6d36052 100644 --- a/templates/representatives/_filter_form.haml +++ b/templates/representatives/_filter_form.haml @@ -10,6 +10,6 @@ - endbuttons - buttons - %a{'href': '?{{ qs }}&csv', 'class': 'btn btn-primary'} + %button{'type': 'submit', 'name': 'csv', 'class': 'btn btn-default'} {% bootstrap_icon "download-alt" %} Download as CSV - endbuttons