-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
226 lines (205 loc) · 8.89 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
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge, chrome=1">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="">
<meta name="author" content="">
<link rel="shortcut icon" href="">
<title>xfront</title>
<link href="assets/css/bootstrap.min.css" rel="stylesheet">
<link href="assets/css/style.css" rel="stylesheet">
<!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/libs/html5shiv/3.7.2/html5shiv.js"></script>
<script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script>
<![endif]-->
</head>
<body>
<nav class="navbar navbar-default" role="navigation">
<div class="container">
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="#">Xfront</a>
</div>
<div class="collapse navbar-collapse">
<ul class="nav navbar-nav">
<li class="active"><a href="#new">Create New</a></li>
<li><a href="#import">Import</a></li>
<li><a href="#about">About</a></li>
</ul>
</div>
</div>
</nav>
<div class="container">
<form id="xlsForm">
<div class="col-md-8 mainbox">
<div class="panel panel-default">
<div class="panel-heading">
<span>Form Settings</span>
<a href="#" class="pull-right">
<span class="glyphicon glyphicon-pencil"></span> Edit
</a>
</div>
<div class="panel-body">
<div class="col-sm-4">
<label>Form Title</label>
<input class="form-control" type="text" name="form_title"/>
</div>
<div class="col-sm-4">
<label>Form ID</label>
<input class="form-control" type="text" name="form_id"/>
</div>
<div class="col-sm-4">
<label>Form Style</label>
<select name="form_style" class="form-control">
<option value="grid">Grid (Desktops/Laptops)</option>
<option value="inline">Inline (Mobile phones/Tablets)</option>
</select>
</div>
</div>
</div>
<br/>
<span class="pull-right" style="color:red;">Fields: 2</span>
<ul class="nav nav-tabs" id="myTab">
<li class="active">
<a href="#tab-survey" data-toggle="tab">
<span class="glyphicon glyphicon-list-alt"></span> Survey</a>
</li>
<li>
<a href="#tab-choices" data-toggle="tab">
<span class="glyphicon glyphicon-check"></span> Choices</a>
</li>
<!--
<li>
<a href="#tab-settings" data-toggle="tab">
<span class="glyphicon glyphicon-wrench"></span> Preview Form</a>
</li>
-->
</ul>
<div class="tab-content">
<div class="tab-pane active" id="tab-survey">
<h3>Survey</h3>
<!--
text
integer
decimal
select_one [options] [or_other]
select_multiple [options] [or_other]
acknowledge
date
datetime
time
geopoint
barcode
image
audio
video
note
calculate
-->
<div class="panel">
<div class="panel-header">
<span class="question-number" data-qindex="1">1</span>
</div>
<div class="clearfix">
<div class="col-md-9">
<h4>Fields</h4>
<select name="type[]">
<option value="text">text</option>
<option value="integer">integer</option>
<option value="decimal">decimal</option>
<option value="select_one">select_one</option>
<option value="select_multiple">select_multiple</option>
<option value="acknowledge">acknowledge</option>
<option value="date">date</option>
<option value="datetime">datetime</option>
<option value="time">time</option>
<option value="geopoint">geopoint</option>
<option value="barcode">barcode</option>
<option value="image">image</option>
<option value="audio">audio</option>
<option value="video">video</option>
<option value="note">note</option>
<option value="calculate"></option>
</select>
<label>Type</label><br/>
<input type="text" name="name[]"/>
<label>Name</label><br/>
<input type="text" name="label[]"/>
<label>Label</label>
</div>
<div class="col-md-3">
<h4>Field options</h4>
</div>
</div>
</div>
<div class="panel">
<div class="panel-header">
<span class="question-number" data-qindex="2">2</span>
</div>
<div class="clearfix">
<div class="col-md-9">
<h4>Fields</h4>
<select name="type[]">
<option value="text">text</option>
<option value="integer">integer</option>
<option value="decimal">decimal</option>
<option value="select_one">select_one</option>
<option value="select_multiple">select_multiple</option>
<option value="acknowledge">acknowledge</option>
<option value="date">date</option>
<option value="datetime">datetime</option>
<option value="time">time</option>
<option value="geopoint">geopoint</option>
<option value="barcode">barcode</option>
<option value="image">image</option>
<option value="audio">audio</option>
<option value="video">video</option>
<option value="note">note</option>
<option value="calculate"></option>
</select>
<label>Type</label><br/>
<input type="text" name="name[]"/>
<label>Name</label><br/>
<input type="text" name="label[]"/>
<label>Label</label>
</div>
<div class="col-md-3">
<h4>Field options</h4>
</div>
</div>
</div>
<a href="#" class="btn btn-success" data-fieldindex="1">
<span class="glyphicon glyphicon-plus"></span> Add field
</a>
</div>
<div class="tab-pane" id="tab-choices">
<h3>Choices</h3>
</div>
<!--
<div class="tab-pane" id="tab-settings">
<h3>Preview Form</h3>
</div>
-->
</div>
</div>
<div class="col-md-4 sidebar">
<h3>Info bar/Or field preview when selected</h3>
<div class="alert alert-info">
<input type="checkbox" name="autoinfo" id="autoinfo"/>
<label for="autoinfo">Enable auto info</label>
</div>
On clicking a particular type, instructions from xlsform.org for a particular item will be shown (and link to it perhaps?)
</div>
</div>
<script src="assets/js/jquery.min.js"></script>
<script src="assets/js/bootstrap.min.js"></script>
</body>
</html>