Commit 51555789 authored by robin Tissot's avatar robin Tissot Committed by Robin

Dossier detail view and template.

parent 2c2a2063
......@@ -96,6 +96,10 @@ urlpatterns = [
ThemeDetail.as_view(),
name='theme-detail'
),
url(
r'^votes/dossier/(?P<pk>\d+)/$',
views.DossierDetail.as_view()
),
url(r'^admin/', include(admin.site.urls)),
url(r'^positions/', include('representatives_positions.urls',
......
<p>No public position has been recorded. You can always <a>add a public position</a>.</p>
<table class="table table-responsive custom-timeline text-center">
<thead>
<tr>
<th class="text-center">Before</th>
<th class="text-center">Last year</th>
<th class="text-center">Last 6 months</th>
<th class="text-center">This month</th>
</tr>
</thead>
<tbody>
<tr>
<td>
<button class="btn btn-default" type="button" data-toggle="collapse" data-target="#collapsePosition1" aria-expanded="false" aria-controls="collapsePosition1">
Jan Philipp ALBRECHT<br/>DD MMM YYYY
</button>
</td>
<td>
<button class="btn btn-default" type="button" data-toggle="collapse" data-target="#collapsePosition2" aria-expanded="false" aria-controls="collapsePosition2">
Martina ANDERSON<br/>DD MMM YYYY
</button>
<br>
<br>
<button class="btn btn-default" type="button" data-toggle="collapse" data-target="#collapsePosition3" aria-expanded="false" aria-controls="collapsePosition3">
Izaskun BILBAO BARANDICA<br/>DD MMM YYYY
</button>
</td>
<td></td>
<td>
<button class="btn btn-default" type="button" data-toggle="collapse" data-target="#collapsePosition4" aria-expanded="false" aria-controls="collapsePosition4">
Sergio Gaetano COFFERATI<br/>DD MMM YYYY
</button>
</td>
</tr>
</tbody>
</table>
<div class="collapse" id="collapsePosition1">
<div class="panel panel-default">
<div class="panel-heading">
<h3 class="panel-title">Jan Philipp ALBRECHT<br/>
<span class="small">DD MMM YYYY</span></h3>
</div>
<div class="panel-body text-justify">
<p>Un peu de contexte, lorem ipsum ...</p>
<p>Marfa bicycle rights Brooklyn, Odd Future kogi mustache farm-to-table seitan PBR irony. Whatever cardigan dreamcatcher deep v, iPhone McSweeney's Etsy selfies fingerstache yr fap blog normcore beard forage. Salvia Vice Blue Bottle raw denim, bespoke aesthetic DIY literally butcher readymade drinking vinegar meh chambray.</p> <p>Authentic Helvetica semiotics PBR&B beard. IPhone you probably haven't heard of them umami, deep v XOXO narwhal master cleanse 8-bit bespoke. Disrupt drinking vinegar health goth, Odd Future squid mumblecore cronut Kickstarter. Mustache actually occupy seitan deep v Etsy, polaroid messenger bag next level cornhole normcore.</p>
<blockquote>
<p>"Mr President, I would like to thank the Vice—President for his proposals. I think this is a very good step forward. It is not the first step, by the way, to creating the Digital Single Market, and I would like to bring our attention to the fact that, to create the Digital Single Market, we need to pass legislative acts. That is what we need to do, and therefore the Council – which I cannot see here – is an important partner to work with to create this Digital Single Market. What I can see at the moment is that, on the Telecoms Single Market, on the Network and Information Security Directive and on the Data Protection Regulation – all three of which are fundaments for building the next step of the digital single market – the Council is not coming along with general approaches, with positions, which are negotiable for us as a Parliament.</p>
<p>So I think that we need to insist first of all on the adoption of these legislative acts and then proceed with further measures. I think that you have made some good points, but there needs to be clear legislation, concrete formulations, about what you mean – for example – on platform neutrality and on geo-blocking; that is not enough, please try to improve the concreteness of these proposals."</p>
</blockquote>
<p class="text-right"><a class="btn btn-primary" href="http://www.europarl.europa.eu/sides/getDoc.do?pubRef=-//EP//TEXT+CRE+20150519+ITEM-004+DOC+XML+V0//EN&language=en&query=INTERV&detail=2-090-000" target="blank">Check the source &raquo;</a></p>
</div>
</div>
</div>
{% load i18n %}
{% load representatives_votes_tags %}
{% load representatives_recommendations_tags %}
<div class="panel-group" id="accordion-proposals" role="tablist" aria-multiselectable="true">
<table class="table table-hover text-center ">
<thead>
<tr>
<th class="text-center"></th>
{% for proposal in proposals %}
<th class="text-center">{{ proposal.reference }}</th>
{% endfor %}
</tr>
</thead>
<tbody>
<tr class="small">
<td>{% trans "Date" %}</td>
{% for proposal in proposals %}
<td>{{ proposal.datetime|date }}</td>
{% endfor %}
</tr>
{% comment %}
<!-- TODO: ask what this is about -->
<tr>
<td>{% trans "Points" %} <a data-toggle="tooltip" data-placement="top" title="Le score est une somme de points attribués suivant si le MEP vote dans notre sens (positif) ou non (négatif) multiplié par le poids (importance) de ce vote."><span class="glyphicon glyphicon-info-sign"></span></a></td>
{% for proposal in proposals %}
<td>20</td>
{% endfor %}
</tr>
{% endcomment %}
<tr>
<th>{% trans "Lqdn's recommendation" %}</th>
{% for proposal in proposals %}
<td><span class="glyphicon {{ proposal.recommendation.recommendation|vote_glyphicon }}"></span></td>
{% endfor %}
</tr>
{% comment %}
<!-- TODO: regroup by main_mandate but might be very query heavy -->
<tr>
<th>
<a class="btn btn-sm btn-default" role="button" data-toggle="collapse" href="#collapse-PartyChose" aria-expanded="false" aria-controls="collapse-PartyChose">Party chose <span class="caret"></span></a>
</th>
</tr>
{% endcomment %}
{% for representative in representatives %}
<tr>
<th>{{ representative.full_name }}
</th>
{% for proposal in proposals %}
{# Note: the manager has been fed with only the relevant data #}
{# so representative.votes.all only contains votes from the relevant proposals #}
{% for vote in representative.votes.all %}
{% if vote.proposal == proposal %}
<td>
<span class="glyphicon glyphicon-ok {{vote.position|vote_glyphicon}} {{ vote.position|vote_icon_color:proposal.recommendation.recommendation }}"></span>
</td>
{% endif %}
{% endfor %}
{% endfor %}
</tr>
{% endfor %}
</tbody>
</table>
</div>
{% extends "base.html" %}
{% load i18n %}
{% load humanize %}
{% block content %}
<h1 class="text-center">{% trans "Dossier" %} {{ dossier.title }}</h1>
<p class="lead text-center">{% trans "Last updated" %} {{ dossier.updated|naturalday }}</p>
<div class="page-header">
<h2>{% trans "LQDN's opinion" %}</h2>
</div>
<p>{{ dossier.text }}</p>
{% comment %}
<!-- TODO -->
<div class="container-fluid">
<div class="row">
<div class="pull-right">
<a class="btn btn-default">See Press Releases</a>
</div>
</div>
</div>
{% endcomment %}
{% comment %}
<!-- TODO -->
<div class="alert alert-info text-center" role="alert">
<span class="glyphicon glyphicon-alert">
</span>&nbsp;&nbsp;A campaign is currently ongoing with La Quadrature.
<a href="#" class="alert-link">Check it out!</a>
</div>
{% endcomment %}
<div class="container-fluid">
<div class="row">
<div class="col-xs-12">
<ul class="nav nav-tabs nav-justified" role="tablist">
<li role="presentation" class="active">
<a href="#votes" aria-controls="votes" role="tab" data-toggle="tab">
<h3>{% trans "Votes" %}</h3>
</a>
</li>
<li role="presentation">
<a href="#positions" aria-controls="positions" role="tab" data-toggle="tab">
<h3>{% trans "Public positions" %}</h3>
</a>
</li>
</ul>
<div class="tab-content">
<div id="votes" role="tabpanel" class="tab-pane active">
{% include "representatives_votes/_dossiers_votes.html" %}
</div>
<div id="positions" role="tabpanel" class="tab-pane">
{% include "representatives_votes/_dossiers_positions.html" %}
</div>
</div>
</div>
</div>
</div>
{% endblock %}
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