forked from cory2067/next-vote
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathform.html
More file actions
80 lines (67 loc) · 2.44 KB
/
form.html
File metadata and controls
80 lines (67 loc) · 2.44 KB
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
<!DOCTYPE html>
<html ng-app="voteApp">
<head>
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.6.6/angular.min.js"></script>
<script>var wing="%s";</script>
<script src="config.js"></script>
<script src="vote.js"></script>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Next House Vote</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<div class="main-content" ng-controller="VoteController">
<form class="form" method="post" action="submit.py">
<div class="form-title-row">
<h1>{{vote.title}}</h1>
</div>
<div id="form-val">
<p>Validated as Next resident: %s</p>
</div>
<div id="form-intro">
<p>{{vote.intro}}</p>
</div>
<iframe ng-if="vote.document" ng-src="{{vote.document | trusted}}"></iframe>
<div ng-repeat="q in vote.questions" class="form-row">
<label><span>{{$index + 1}}. {{q.title}}</span></label>
<div class="form-radio-buttons">
<div ng-repeat="o in q.options">
<div ng-if="verify(o)">
<label>
<div class="desc" ng-if="o.description">{{o.description}}</div>
<input type="radio" name="q{{$parent.$parent.$index}}" value="{{o.title ? o.title : o}}">
<span>{{o.title ? o.title : o}}</span>
</label>
<div ng-if="o.description" style="height: 15px">
</div>
</div>
</div>
<div ng-if="q.write_in">
<label>
<input type="radio" name="q{{$index}}" value="write">
<span>Write-in (use below)</span>
</label>
</div>
</div>
<div ng-if="q.write_in" class="form-row writein">
<label>
<span>Write-in Candidate (if applicable):</span>
<input name="write{{$index}}"></input>
</label>
</div>
</div>
<div class="form-row">
<label>
<span>Comments</span>
<textarea rows="4" name="comment"></textarea>
</label>
</div>
<div class="form-row">
<button type="submit">Submit</button>
</div>
</form>
</div>
</body>
</html>