-
Notifications
You must be signed in to change notification settings - Fork 0
/
questionnaire.html
71 lines (59 loc) · 1.71 KB
/
questionnaire.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
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<head>
<title>Elpis feedback form</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<style>
input[type=text], select {
width: 100%;
padding: 12px 20px;
margin: 8px 0;
display: inline-block;
border: 1px solid #ccc;
border-radius: 4px;
box-sizing: border-box;
}
input[type=submit] {
width: 200;
background-color: #4CAF50;
color: white;
padding: 14px 20px;
margin: 8px 0;
border: none;
border-radius: 4px;
cursor: pointer;
}
input[type=submit]:hover {
background-color: #45a049;
}
div {
border-radius: 5px;
background-color: #f2f2f2;
padding: 20px;
}
form {
width: 1000px;
}
.error{
color: red;
font-weight: bold;
}
</style>
<link rel="shortcut icon" href="#" />
<a href="{{.Root}}/en">En</a>
<a href="{{.Root}}/ar">Arabic</a>
</head>
<body>
<div>
<p> <b>{{.Message | stringToHTML}}</b> </p>
<p> <b>{{.RequiredFields | stringToHTML}}</b> </p>
<p> <b>{{.ScaleExplanation | stringToHTML}}</b> </p>
<form method="post" class="pure-form-stacked">
{{range $i, $field := .Form.Fields}}
<label for="{{$field.GetName}}">{{$field.GetName}}: </label>{{$field.Html | stringToHTML}}
<br/>
{{range $ei, $err := $field.Errors}}<label class="error">{{$err}}</label>{{end}}<br />
{{end}}<input type="submit" class="submit-button" value="Submit">
</form>
</div>
</body>
</html>