This repository has been archived by the owner on Jun 21, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
199 lines (177 loc) · 9.63 KB
/
index.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
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
<!--
* Copyright 2016 Council of the European Union
*
* Licensed under the EUPL, Version 1.1 or – as soon they will be approved by the European Commission - subsequent versions of the EUPL (the "Licence");
* You may not use this work except in compliance with the Licence.
* You may obtain a copy of the Licence at:
*
* https://joinup.ec.europa.eu/software/page/eupl
*
* Unless required by applicable law or agreed to in writing, software distributed under the Licence is distributed on an "AS IS" basis,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the Licence for the specific language governing permissions and limitations under the Licence.
-->
<!DOCTYPE html>
<html lang="en" ng-app="opendataApp">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->
<title>Search Open Data Portal</title>
<!-- Bootstrap -->
<link href="libs/bootstrap/css/bootstrap.min.css" rel="stylesheet">
<link href="libs/bootstrap/css/bootstrap-theme.min.css" rel="stylesheet">
<!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->
</head>
<body style="padding:20px">
<h1>Open Data Portal search</h1>
<div ng-controller="actsController as vm">
<form class="form-horizontal" ng-submit="vm.performSearch()">
<div class="form-group">
<label class="col-sm-2 control-label" for="docNumber">Document Number</label>
<div class="col-sm-10">
<input type="text" class="form-control" id="docNumber" ng-model="vm.search.docNumber" placeholder="Document Number">
</div>
</div>
<div class="form-group">
<label class="col-sm-2 control-label" for="interNumber">Interinstitutional Number</label>
<div class="col-sm-10">
<input type="text" class="form-control" id="interNumber" ng-model="vm.search.interNumber" placeholder="Interinstitutional Number">
</div>
</div>
<div class="form-group">
<label class="col-sm-2 control-label" for="title">Text search on Title</label>
<div class="col-sm-10">
<input type="text" class="form-control" id="title" ng-model="vm.search.title" placeholder="Title">
</div>
</div>
<div class="form-group">
<span class="col-sm-2 control-label">Dates</span>
<div class="col-sm-10">
<div class="form-group row">
<label for="dateFrom" class="col-md-1 control-label">From</label>
<div class="col-md-2">
<input type="date" class="form-control" id="dateFrom" placeholder="From" ng-model="vm.search.date.from">
</div>
<label for="dateTo" class="col-md-1 control-label">To</label>
<div class="col-md-2">
<input type="date" class="form-control" id="dateTo" placeholder="To" ng-model="vm.search.date.to">
</div>
</div>
</div>
</div>
<div class="form-group">
<div class="col-sm-12">
<div class="form-group row">
<label class="col-sm-2 control-label" for="policyArea">Policy Area</label>
<div class="col-md-2">
<select class="form-control" name="policyArea" id="policyArea" ng-model="vm.search.policyArea">
<option value="">Choose...</option>
<option value="agriculture">Agriculture</option>
<option value="consumeraffairs">Consumer affairs</option>
<option value="culture">Culture</option>
<option value="economy">Economy</option>
<option value="education">Education</option>
<option value="employment">Employment</option>
<option value="energy">Energy</option>
<option value="environment">Environment</option>
<option value="finances">Finances</option>
<option value="fisheries">Fisheries</option>
<option value="foreignffairs">Foreign affairs</option>
<option value="health">Health</option>
<option value="industry">Industry</option>
<option value="institutional">Institutional</option>
<option value="internalmarket">Internal market</option>
<option value="justiceandhomeaffairs">Justice and Home Affairs</option>
<option value="research">Research</option>
<option value="socialpolicy">Social policy</option>
<option value="space">Space</option>
<option value="telecommunications">Telecommunications</option>
</select>
</div>
<label for="councilConfig" class="col-md-2 control-label">Council Configuration</label>
<div class="col-md-2">
<select class="form-control" name="policyArea" id="councilConfig" ng-model="vm.search.councilConfig">
<option value="">Choose...</option>
<option value="agri">Agriculture and Fisheries</option>
<option value="comp">Competitiveness</option>
<option value="ecofin">Economic and Financial Affairs</option>
<option value="eyc">Education, Youth and Culture</option>
<option value="epsco">Employment, Social Policy, Health and Consumer Affairs</option>
<option value="env">Environment</option>
<option value="fa">Foreign Affairs</option>
<option value="ga">General Affairs</option>
<option value="jha">Justice and Home Affairs</option>
<option value="tte">Transport, Telecommunications and Energy</option>
</select>
</div>
</div>
</div>
</div>
<button type="submit" ng-hide="vm.searching" class="btn btn-primary">Search</button>
<button type="submit" ng-show="vm.searching" disabled="disabled" class="btn btn-primary">Searching...</button>
<button type="reset" ng-click="vm.reset()" class="btn btn-default">Reset</button>
</form>
<h2 ng-show="vm.acts.length>0">{{vm.acts.length}} results found.</h2>
<h2 ng-show="vm.searching">Searching ...</h2>
<h2 ng-show="vm.noresults">No results found, please widen your criteria.</h2>
<div class="panel panel-default" ng-repeat="act in vm.acts">
<div class="panel-heading">{{act.acttype}} - Doc. no. <strong>{{act.docnrcouncil}}</strong> Interinstitutional nr. <strong>{{act.docnrinterinst}}</strong> Act Data <strong>{{act.Date | date:"mediumDate"}}</strong></div>
<div class="panel-body">
{{act.Title}}
<form class="form-horizontal">
<div class="form-group">
<label class="col-xs-2 control-label">Council</label>
<div class="col-xs-10">
<p class="form-control-static">{{act.sessionnrnumber}} - {{act.configuration}}</p>
</div>
</div>
<div class="form-group">
<label class="col-xs-2 control-label">Policy Area</label>
<div class="col-xs-10">
<p class="form-control-static">{{act.policyarea}}</p>
</div>
</div>
<div class="form-group">
<label class="col-xs-2 control-label">Voting Procedure</label>
<div class="col-xs-10">
<p class="form-control-static">{{act.votingprocedure}}</p>
</div>
</div>
<div class="form-group">
<label class="col-xs-2 control-label">Voting Rule</label>
<div class="col-xs-10">
<p class="form-control-static">{{act.votingrule}}</p>
</div>
</div>
<div class="form-group">
<label class="col-xs-2 control-label">Action by Council</label>
<div class="col-xs-10">
<p class="form-control-static">{{act.actionbycouncil}}</p>
</div>
</div>
<ul class="list-group">
<li class="list-group-item">{{act.Votes["Yes"].length}} votes in favour: <span ng-repeat="country in act.Votes['Yes']">{{country}}, </span></li>
<li class="list-group-item">{{act.Votes["No"].length}} votes against: <span ng-repeat="country in act.Votes['No']">{{country}}, </span></li>
<li class="list-group-item">{{act.Votes["Abstain"].length}} abstentions: <span ng-repeat="country in act.Votes['Abstain']">{{country}}, </span></li>
<li class="list-group-item">{{act.Votes["DidNotParticipate"].length}} not participating: <span ng-repeat="country in act.Votes['DidNotParticipate']">{{country}}, </span></li>
</ul>
</form>
</div>
</div>
</div>
<!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
<script src="libs/jquery/jquery.min.js"></script>
<!-- Include all compiled plugins (below), or include individual files as needed -->
<script src="libs/bootstrap/js/bootstrap.min.js"></script>
<script src="libs/angularjs/angular.min.js"></script>
<script src="scripts/opendata.js"></script>
<script src="scripts/datamodel.js"></script>
</body>
</html>