Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
TAlone
memopol
Commits
890f515d
Commit
890f515d
authored
Jun 17, 2016
by
Nicolas Joyard
Browse files
Enhance CSV button
parent
940a07d0
Changes
14
Hide whitespace changes
Inline
Side-by-side
memopol/tests/response_fixtures/RepresentativeListTest.test_filter_chamber.content
View file @
890f515d
...
...
@@ -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>
...
...
memopol/tests/response_fixtures/RepresentativeListTest.test_filter_country.content
View file @
890f515d
...
...
@@ -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>
...
...
memopol/tests/response_fixtures/RepresentativeListTest.test_filter_group.content
View file @
890f515d
...
...
@@ -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>
...
...
memopol/tests/response_fixtures/RepresentativeListTest.test_filter_multiple.content
View file @
890f515d
...
...
@@ -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>
...
...
memopol/tests/response_fixtures/RepresentativeListTest.test_filter_notfound.content
View file @
890f515d
...
...
@@ -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>
...
...
memopol/tests/response_fixtures/RepresentativeListTest.test_filter_search.content
View file @
890f515d
...
...
@@ -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>
...
...
memopol/tests/response_fixtures/RepresentativeListTest.test_page1_paginateby12_active_displaylist.content
View file @
890f515d
...
...
@@ -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>
...
...
memopol/tests/response_fixtures/RepresentativeListTest.test_page1_paginateby12_all_displaylist.content
View file @
890f515d
...
...
@@ -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>
...
...
memopol/tests/response_fixtures/RepresentativeListTest.test_page1_paginateby12_displaylist_searchjoly.content
View file @
890f515d
...
...
@@ -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>
...
...
memopol/tests/response_fixtures/RepresentativeListTest.test_page1_paginateby24_active_displaygrid.content
View file @
890f515d
...
...
@@ -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>
...
...
memopol/tests/response_fixtures/RepresentativeListTest.test_page1_paginateby24_all_displaygrid.content
View file @
890f515d
...
...
@@ -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>
...
...
memopol/tests/response_fixtures/RepresentativeListTest.test_page2_paginateby12_displaylist.content
View file @
890f515d
...
...
@@ -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>
...
...
memopol/tests/response_fixtures/RepresentativeListTest.test_page2_paginateby24_displaylist.content
View file @
890f515d
...
...
@@ -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>
...
...
templates/representatives/_filter_form.haml
View file @
890f515d
...
...
@@ -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
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment