-
Notifications
You must be signed in to change notification settings - Fork 20
/
Copy pathvoting.html
149 lines (138 loc) · 3.33 KB
/
voting.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
---
layout: master
title: Voting
script_srcs: ['/js/jquery.min.js', '/js/jquery-ui.min.js', '/js/hogan.min.js', '/js/sprintf.min.js', '/js/voting.js']
---
<style type="text/css">
.userlist {
border-collapse: separate;
border-spacing: 2px;
}
td.center {
text-align: center;
}
.handle {
cursor: move;
}
#overlay .modal-body textarea {
border: 0;
margin: 0;
padding: 0;
font-family: Monaco,Menlo,Consolas,"Courier New",monospace;
font-size: 13px;
width: 100%;
height:100% !important;
cursor: no-drop;
}
#overlay .modal-body {
height: 100vh;
overflow: hidden;
padding: 0;
}
#submit, .sect-h {
margin: 20px 0px 20px 0px;
}
</style>
<button type="button" class="btn btn-secondary" id="rawballot" data-bs-toggle="modal" data-bs-target="#overlay">
Get Raw Ballot
</button>
<h3 class="sect-h">Section 1: Staff Rankings</h3>
<table id="members" class="userlist">
<thead>
<tr>
<th class="index">Rank</th>
<th></th>
<th style="width: 200px;">Name</th>
<th style="width: 100px;">Nick</th>
<th>Sponsor</th>
<th>Ombudsman</th>
<th>Remove</th>
</tr>
</thead>
<tbody>
</tbody>
</table>
<h3 class="sect-h">Section 2: Sponsors</h3>
<table id="sponsors" class="userlist">
<thead>
<tr>
<th style="width: 200px;">Name</th>
<th style="width: 100px;">Nick</th>
<th>Sponsor</th>
<th>Remove</th>
</tr>
</thead>
<tbody>
</tbody>
</table>
<h3 class="sect-h">Section 3: Advisors</h3>
<table id="advisors" class="userlist">
<thead>
<tr>
<th>Yes/No</th>
<th>Advisor</th>
</tr>
</thead>
<tbody>
<tr>
<td>
<select id="advisor0" name="advisor0" class="input-small">
<option>Yes</option>
<option>No</option>
</select>
</td>
<td>
<span class="help-inline">David Graham (cdlu)</span>
</td>
</tr>
<tr>
<td>
<select id="advisor1" name="advisor1" class="input-small">
<option>Yes</option>
<option>No</option>
</select>
</td>
<td>
<span class="help-inline">Timothy J. Fontaine (tjfontaine)</span>
</td>
</tr>
</tbody>
</table>
<h3 class="sect-h">Section 4: Yes/No Questions</h3>
<table id="questions" class="userlist">
<thead>
<tr>
<th>Yes/No</th>
<th>Issue</th>
</tr>
</thead>
<tbody>
<tr>
<td>
<select id="question0" name="question" class="input-small">
<option>Yes</option>
<option>No</option>
</select>
</td>
<td>
Should OFTC remain a member project of Software in the Public Interest?
</td>
</tr>
</tbody>
</table>
<button type="button" class="btn btn-secondary" id="submit" data-bs-toggle="modal" data-bs-target="#overlay">
Process
</button>
<div class="container-fluid">
<div class="modal fade" id="overlay" tabindex="-1" aria-labelledby="myModalLabel" aria-hidden="true">
<div class="modal-dialog modal-lg h-75 modal-dialog-scrollable modal-fullscreen-lg-down">
<div class="modal-content">
<div class="modal-header"><h3 id="myModalLabel">Your Ballot</h3>
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
</div>
<div id="overlay-content" class="modal-body">
</div>
</div>
</div>
</div>
</div>