Commit 573d0221 authored by robin Tissot's avatar robin Tissot Committed by Robin

Add Download as CSV button.

parent d2273c97
...@@ -11,37 +11,44 @@ ...@@ -11,37 +11,44 @@
{{ paginator.count }} {% trans "MEP" %}{% if search.country %} {% trans "from" %} {{ search.country }}{% endif %}{% if search.group %}, {% trans "members of" %} {{ search.group }}{% endif %}{% if search.delegation %}, {% trans "working in" %} {{ search.delegation }}{% endif %}{% if search.commitee %}, {% trans "on" %} {{ search.commitee }}{% endif %}. {{ paginator.count }} {% trans "MEP" %}{% if search.country %} {% trans "from" %} {{ search.country }}{% endif %}{% if search.group %}, {% trans "members of" %} {{ search.group }}{% endif %}{% if search.delegation %}, {% trans "working in" %} {{ search.delegation }}{% endif %}{% if search.commitee %}, {% trans "on" %} {{ search.commitee }}{% endif %}.
</p> </p>
{% comment %} <div class="row">
<!-- TODO: layout & ordering --> <a href="?{{ searchparameters }}&csv" class="btn btn-default">
<div class="btn-group" data-toggle="buttons"> <span class="glyphicon glyphicon-file"> {% trans "Download as csv." %}</span>
</a>
{% comment %}
<!-- TODO: layout & ordering -->
<div class="btn-group" data-toggle="buttons">
<label class="btn btn-default active"> <label class="btn btn-default active">
<input type="radio" name="view" id="cards" autocomplete="off" checked> <input type="radio" name="view" id="cards" autocomplete="off" checked>
<span class="glyphicon glyphicon-th"></span> <span class="glyphicon glyphicon-th"></span>
</label> </label>
<label class="btn btn-default"> <label class="btn btn-default">
<input type="radio" name="view" id="lists" autocomplete="off"> <input type="radio" name="view" id="lists" autocomplete="off">
<span class="glyphicon glyphicon-list"></span> <span class="glyphicon glyphicon-list"></span>
</label> </label>
</div>
<div class="dropdown" style="display:inline-block;"> </div>
<div class="dropdown" style="display:inline-block;">
Order by Order by
<button class="btn btn-default dropdown-toggle" type="button" id="orderby" data-toggle="dropdown" aria-haspopup="true" aria-expanded="true"> <button class="btn btn-default dropdown-toggle" type="button" id="orderby" data-toggle="dropdown" aria-haspopup="true" aria-expanded="true">
Score Score
<span class="caret"></span> <span class="caret"></span>
</button> </button>
<ul class="dropdown-menu" aria-labelledby="orderby"> <ul class="dropdown-menu" aria-labelledby="orderby">
<li class="disabled"><a href="#">Score</a></li> <li class="disabled"><a href="#">Score</a></li>
<li><a href="#">Country</a></li> <li><a href="#">Country</a></li>
<li><a href="#">Party</a></li> <li><a href="#">Party</a></li>
<li><a href="#">Group</a></li> <li><a href="#">Group</a></li>
</ul> </ul>
</div>
{% endcomment %}
</div> </div>
{% endcomment %}
<br /> <br/>
<div class="row"> <div class="row">
{% for representative in object_list %} {% for representative in object_list %}
......
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