-
Notifications
You must be signed in to change notification settings - Fork 23
/
Copy pathindex.html.slim
78 lines (71 loc) · 2.96 KB
/
index.html.slim
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
#preview
#main
h1 New parliamentary questions to be allocated today (#{@now})
= render partial: 'shared/flash_messages'
#sidebar.col-md-3.col-md-push-9
#filters.js-stick-at-top-when-scrolling
h2 Filter
#question-type.filter-box
fieldset
legend
input.view.open type="button" value="Question type"
.notice
span 1 selected
.content.collapsed
.list
label for="named-day"
input id="named-day" type="radio" name="question-type" value="Named Day"
'Named Day
label for="ordinary"
input id="ordinary" type="radio" name="question-type" value="Ordinary"
'Ordinary
label for="transferred-in"
input id="transferred-in" type="radio" name="question-type" value="Transferred in"
'Transferred in
.clearFilter
input#clear-type-filter.clear.right type="button" value="Clear"
.filter-box
label for="keywords" Keywords
.content
input#keywords.form-control type="text" placeholder="e.g. keywords, names"
.clearFilter
input#clear-keywords-filter.right type="button" value="Clear"
a target="_blank" href="#{@parliament_url}" Today's PQs for all departments (opens in a new tab)
.col-md-9.col-md-pull-3
#count
strong #{@questions.length}
= ' '
span new parliamentary questions
ul.questions-list
- @questions.each do |question|
li.question
h2
= question.uin
- if question.question_type == 'NamedDay'
span.question-type | Named Day
- if question.transferred
span.question-type | Transferred in
- if question.question_type == 'Ordinary'
span.question-type | Ordinary
span.pq-question #{question.question}
- unless question.member_name.empty?
h3 Asked by:
span.asked-by #{question.member_name}
br
h3 Constituency:
- if question.member_constituency.nil?
| N/A
br
- else
span.constituency #{question.member_constituency}
- if question.proposed?
h3 Deputy Director(s) proposed to answer:
- if question.commissioned?
h3 Question assigned to Deputy Director(s):
p.action_officers-list
= question.action_officers.not_rejected.pluck(:name).join(', ')
p.propose-links
= link_to('Email PQ team about this question', "mailto:#{Settings.mail_reply_to}?subject=Question #{question.uin}")
- unless question.commissioned?
= ' | '
= link_to('Propose a Deputy Director', new_pq_proposal_path(question.id))