aboutsummaryrefslogtreecommitdiff
path: root/template/assemblies/feedback.phtml
blob: a33cc31f348561716e131d90f1191651b2f726c0 (plain)
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
<form action="feedback/" target="feedback-target" method="post" role="form" class="feedback-form">
	<div class="col-sm-4 col">
		<div class="form-group">
			<label for="net">Network Connection</label>
			<select class="form-control" name="net" id="net">
				<option></option>
				<option>EDGE</option>
				<option>3G</option>
				<option>LTE</option>
				<option>DSL &lt;2000</option>
				<option>DSL 2000-6000</option>
				<option>DSL &gt;6000</option>
				<option>VDSL</option>
				<option>Public Hotspot</option>
				<option>WiFi inside the CCH</option>
				<option>Ethernet inside the CCH</option>
				<option>Something else</option>
			</select>
		</div>

		<div class="form-group">
			<label for="os">Operating System</label>
			<select class="form-control" name="os" id="os">
				<option></option>
				<option>Unixoid</option>
				<option>OS/X</option>
				<option>Windows</option>
				<option>iOS</option>
				<option>Android</option>
				<option>Something else</option>
			</select>
		</div>

		<div class="form-group">
			<label for="player">Player</label>
			<select class="form-control" name="player" id="player">
				<option></option>
				<option>Firefox</option>
				<option>Chrome/Chromium</option>
				<option>Safari</option>
				<option>VLC</option>
				<option>MPlayer</option>
				<option>Totem</option>
				<option>ffplay</option>
				<option>iOS</option>
				<option>Android</option>
				<option>Something else</option>
			</select>
		</div>

		<div class="form-group">
			<label for="stream">Stream</label>
			<select class="form-control" name="stream" id="stream">
				<option></option>
				<? foreach(Room::rooms() as $roomiter): ?>
					<? if(!$roomiter->hasFeedback()) continue ?>
					<? foreach($roomiter->getSelections() as $selection): ?>
						<option
							<? if(
								isset($room) && isset($stream) &&
								$roomiter->getSlug() == $room->getSlug() &&
								$selection->getSelection() == $stream->getSelection()
							): ?>selected<? endif ?>
							value="<?=h($roomiter->getSlug().'-'.$selection->getSelection())?>"
						>
							<?=h($roomiter->getDisplay())?><?=h($selection->getDisplay())?>
						</option>
					<? endforeach ?>
				<? endforeach ?>
			</select>
		</div>
	</div>

	<div class="col-sm-4 col">
		<div class="form-group">
			<label>IP connectivity</label>
			<div class="checkbox">
				<label>
					<input type="checkbox" value="v4" name="ipproto[]" /> IPv4
				</label>
			</div>
			<div class="checkbox">
				<label>
					<input type="checkbox" value="v6" name="ipproto[]" /> IPv6
				</label>
			</div>
		</div>

		<div class="form-group">
			<label for="datetime">Date/Time</label>
			<input type="text" value="<?=h(strftime('%d.%m.%Y %H:%I'))?>" name="datetime" id="datetime" class="form-control" />
		</div>

		<div class="form-group">
			<label for="provider">Provider</label>
			<input type="text" value="" name="provider" id="provider" class="form-control" />
		</div>
	</div>

	<div class="col-sm-4 col">
		<div class="form-group">
			<label>Did you have issues?</label>
			<div class="checkbox">
				<label>
					<input type="checkbox" name="issues[]" value="Dropouts" /> Dropouts
				</label>
			</div>
			<div class="checkbox">
				<label>
					<input type="checkbox" name="issues[]" value="Hickups/Jerking" /> Hickups/Jerking
				</label>
			</div>
			<div class="checkbox">
				<label>
					<input type="checkbox" name="issues[]" value="Loops" /> Loops
				</label>
			</div>
			<div class="checkbox">
				<label>
					<input type="checkbox" name="issues[]" value="No image" /> No image
				</label>
			</div>
			<div class="checkbox">
				<label>
					<input type="checkbox" name="issues[]" value="No audio" /> No audio
				</label>
			</div>
			<div class="checkbox">
				<label>
					<input type="checkbox" name="issues[]" value="Artifacts" /> Artifacts
				</label>
			</div>
		</div>

		<div class="form-group">
		<label for="issuetext">Something else was good/bad</label>
			<input type="text" value="" name="issuetext" id="issuetext" class="form-control" />
		</div>

		<div class="form-group">
			<input class="btn btn-primary" type="submit" value="Submit" />
		</div>
	</div>
</form>

<h3 class="feedback-thankyou">Thank you!</h3>
<h3 class="feedback-error">The feedback also seems to be broken…</h3>
<iframe name="feedback-target" style="display: none;"></iframe>