/
bill.html
165 lines (147 loc) · 6.4 KB
/
bill.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
{% extends base_template %}
{% load url from future %}
{% load sitebase %}
{% block title %}{{bill.bill_id }}{% endblock %}
{% block content %}
<div class="fullWidth mainModule">
<ol id="billAction">
<li class="active">
<span class="textReplace" id="stage1">Introduced</span>
<span class="tip">Sept 12, 2011</span>
</li>
<li>
<span class="textReplace" id="stage2">Passes Senate</span>
<span></span>
</li>
<li>
<span class="textReplace" id="stage3">Passes House</span>
</li>
<li>
<span class="textReplace" id="stage4">Governor Signs</span>
</li>
<li>
<span class="textReplace" id="stage5">Bill Becomes Law</span>
</li>
</ol>
<h2 class="withTimeline">{{ abbr|upper }} Bill: {{ bill.bill_id }}</h2>
<p class="smModule">{{ bill.title }}</p>
<dl class="inlineList">
<dt class="contentBottom oneCol">Session:</dt>
<dd class="contentBottom customWidth">{{ bill.session }}</dd>
<dt class="contentBottom oneCol">Chamber:</dt>
<dd class="contentBottom">{{ bill.chamber }}</dd>
<dt class="clear contentBottom">Sponsors ({{ bill.sponsors|length }}):</dt>
<dd>
<ul class="inlineThirds_module moduleNoBorder">
{% for sponsor in bill.sponsors_manager.first_five %}
<li><a href="{% url 'legislator' abbr sponsor.leg_id %}">{{ sponsor.name }}</a> ({{ sponsor.legislator.party }}) {{ sponsor.legislator.district }} <span class="tip sideNote">{{ sponsor.type }}</span></li>
{% endfor %}
{% if remainder %}
<li><a class="viewMore" href="#">View {{ bill.sponsors_manager.first_five_remainder }} others</a></li>
{% endif %}
</ul>
</dd>
</dl>
<div class="clear"></div>
</div>
<div class="eightCol colLt">
<h3>Recent Actions</h3>
<table class="normalTable">
<thead>
<tr id="titles">
<th>Date</th>
<th>Chamber</th>
<th></th>
<th>Labels</th>
</tr>
</thead>
<tbody>
{% for action in bill.actions_manager %}
<tr class="odd">
<td class="tip withTipSm">{{ action.date|date:"M j, Y"}}</td>
<td>{{ action.chamber_name }}</td>
<td>{{ action.action }}</td>
<td>{% for label_text in action.type %}<span class="label">{{label}}</span>{% endfor %}</td>
</tr>
{% endfor %}
</tbody>
</table>
</div>
<div class="fourCol colRt">
<h3>Votes</h3>
<ul class="largerList voteChart">
<li>
<time class="timeHeader" datetime="" class="published" pubdate>Sept 12, 2011</time>
<a href="#">HR 1234</a>
<ul class="barChart">
<li class="yes">
<span class="tagValue" style="width:80%;">80%</span>
<span class="tagNumber">30 Yes</span>
</li>
<li class="no clear">
<span class="tagValue" style="width:20%;">20%</span>
<span class="tagNumber">30 No</span> >
</li>
</ul>
</li>
<li>
<time class="timeHeader" datetime="" class="published" pubdate>Sept 12, 2011</time>
<a href="#">HR 1234</a>
<ul class="barChart">
<li class="yes">
<span class="tagValue" style="width:60%;">60%</span>
<span class="tagNumber">30 Yes</span>
</li>
<li class="no clear">
<span class="tagValue" style="width:80%;">80%</span>
<span class="tagNumber">30 No</span>
</li>
</ul>
</li>
<li>
<time class="timeHeader" datetime="" class="published" pubdate>Sept 12, 2011</time>
<a href="#">HR 1234</a>
<ul class="barChart">
<li class="yes">
<span class="tagValue" style="width:80%;">80%</span>
<span class="tagNumber">30 Yes</span>
</li>
<li class="no clear">
<span class="tagValue" style="width:50%;">50%</span>
<span class="tagNumber">30 No</span>
</li>
</ul>
</li>
</ul>
</div>
<div class="clear"></div>
{% endblock %}
<h1>{{ state.name }} {{ chamber_name }}</h1>
<h2>{{ bill.bill_id }}</h2>
<p>{{bill.title}}</p>
<table width="15em">
<tr><td><b>Session:</b></td><td>{{bill.session_details.display_name}}</td></tr>
<tr><td><b>Chamber:</b></td><td>{{bill.chamber_name}}</td></tr>
<tr><td><b>Sponsors:</b></td>
<td>
<ul>{% for sponsor in bill.sponsors %}
<li><a href="{% url 'legislator' abbr sponsor.leg_id %}">{{sponsor.name}}</a>
{{ sponsor.type }} </li>
{% endfor %}</ul></td>
</tr>
</table>
{% if bill.votes %}
<h3>Votes</h3>
<ul>
{% for vote in bill.votes %}
<li>
<a href="{% url 'vote' abbr bill.id forloop.counter0 %}">{{vote.motion}}</a> - {{vote.date|date:"M j Y"}}
<table>
<tr><td><b>Yes votes:</b></td><td>{{vote.yes_count}}</td></tr>
<tr><td><b>No votes:</b></td><td>{{vote.no_count}}</td></tr>
<tr><td><b>Other votes:</b></td><td>{{vote.other_count}}</td></tr>
</table>
</li>
{% endfor %}
</ul>
{% endif %}