-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathforms.html
316 lines (316 loc) · 15.2 KB
/
forms.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
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
<!DOCTYPE html>
<html>
<head>
<title>Quodo 2</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="css/screen.css">
<script src="http://cdnjs.cloudflare.com/ajax/libs/highlight.js/8.1/highlight.min.js"></script>
<script src="http://code.jquery.com/jquery-2.1.3.min.js"></script>
<script src="http://ricostacruz.com/jquery.transit/jquery.transit.min.js"></script>
<script src="http://underscorejs.org/underscore.js"></script>
<script src="js/ui.js"></script>
<script src="js/demo.js"></script>
</head>
<body>
<div class="wrap">
<main>
<div class="limiter">
<div class="grid">
<div class="col-6"><a href="index.html" class="color-dark-gray-dark">
<div class="logo">Quodo<i class="fa fa-rocket color-cold-dark"></i>2</div>
<p class="logo-p">Application UI library</p></a>
<nav data-collapse="false" data-collapsed-text="Sections" class="nav fat bordered"><a href="index.html">Components</a><a href="typography.html">Typography</a><a href="colors.html">Colors</a><a href="grid.html">Grid</a><a href="api.html">API</a><a href="roadmap.html">Roadmap</a></nav>
</div>
<div class="col-18">
<h1>Forms</h1>
<nav class="breadcrumbs"><a href="index.html">Main page</a><a href="components.html">Components</a><a href="forms.html">Forms</a>
</nav>
<hr>
<h2>Default form</h2>
<p>There's nothing to say</p>
<div class="grid">
<div class="col-12">
<form class="form">
<div class="row">
<div class="label">
<label for="name-1">Name</label>
</div>
<div class="input">
<input id="name-1" type="text" tabindex="1">
</div>
</div>
<div class="row">
<div class="label">
<label for="email-1">E-mail</label>
</div>
<div class="input">
<input id="email-1" type="email" tabindex="2" placeholder="[email protected]">
</div>
</div>
<div class="row">
<div class="label">
<label for="realm-1">Realm</label>
</div>
<div class="input">
<div class="select">
<select id="realm-1" tabindex="3">
<option>North America</option>
<option>South America</option>
<option>Europe</option>
<option>Asia</option>
<option>Oceania</option>
<option>South Africa</option>
</select>
</div>
</div>
</div>
<div class="row">
<div class="input">
<input id="remember-1" type="checkbox" tabindex="4">
<label for="remember-1">Remember me</label>
</div>
</div>
<div class="row">
<div class="input">
<button type="submit" class="button w-100">Login</button>
</div>
</div>
</form>
</div>
</div>
<div class="grid marginless">
<div class="col-4"><a href="#" class="code"><i class="fa fa-code"></i> The code</a></div>
</div>
<hr>
<h2>Horizontal form</h2>
<p>Another kind — horizontal mode</p>
<div class="grid">
<div class="col-12">
<form class="form horizontal">
<div class="row">
<div class="label">
<label for="name-2">Name</label>
</div>
<div class="input">
<input id="name-2" type="text" tabindex="11">
</div>
</div>
<div class="row">
<div class="label">
<label for="email-2">E-mail</label>
</div>
<div class="input">
<input id="email-2" type="email" tabindex="12" placeholder="[email protected]">
</div>
</div>
<div class="row">
<div class="label">
<label for="realm-2">Realm</label>
</div>
<div class="input">
<div class="select">
<select id="realm-2" tabindex="13">
<option>North America</option>
<option>South America</option>
<option>Europe</option>
<option>Asia</option>
<option>Oceania</option>
<option>South Africa</option>
</select>
</div>
</div>
</div>
<div class="row">
<div class="label">
<label>Gender</label>
</div>
<div class="input">
<input id="gender-2-1" type="radio" tabindex="15" name="gender-2" value="1" checked>
<label for="gender-2-1">Male</label>
<input id="gender-2-2" type="radio" tabindex="16" name="gender-2" value="2">
<label for="gender-2-2">Female</label>
</div>
</div>
<div class="row">
<div class="input">
<input id="remember-2" type="checkbox" tabindex="17">
<label for="remember-2">Remember me</label>
</div>
</div>
<div class="row">
<div class="input">
<button type="submit" class="button w-100">Login</button>
</div>
</div>
</form>
</div>
</div>
<div class="grid marginless">
<div class="col-4"><a href="#" class="code"><i class="fa fa-code"></i> The code</a></div>
</div>
<hr>
<h2>Errors</h2>
<p>This sample shows how inputs can be marked as a wrong</p>
<div class="grid">
<div class="col-12">
<form class="form horizontal">
<div class="row">
<div class="label">
<label for="name-3">Name</label>
</div>
<div class="input">
<input id="name-3" type="text" tabindex="21" class="error">
</div>
</div>
<div class="row">
<div class="label">
<label for="email-3">E-mail</label>
</div>
<div class="input">
<input id="email-3" type="email" tabindex="22" placeholder="[email protected]">
</div>
</div>
<div class="row">
<div class="label">
<label for="realm-3" tabindex="23">Realm</label>
</div>
<div class="input">
<div class="select error">
<select id="realm-3" tabindex="24">
<option>North America</option>
<option>South America</option>
<option>Europe</option>
<option>Asia</option>
<option>Oceania</option>
<option>South Africa</option>
</select>
</div>
</div>
</div>
<div class="row">
<div class="label">
<label>Gender</label>
</div>
<div class="input">
<input id="gender-3-1" type="radio" tabindex="25" name="gender-2" value="1" checked>
<label for="gender-3-1">Male</label>
<input id="gender-3-2" type="radio" tabindex="26" name="gender-2" value="2">
<label for="gender-3-2">Female</label>
</div>
</div>
<div class="row">
<div class="input">
<input id="remember-3" type="checkbox" tabindex="27" class="error">
<label for="remember-3">Remember me</label>
</div>
</div>
<div class="row">
<div class="input">
<button type="submit" disabled class="button w-100">Please, correct a wrong fields</button>
</div>
</div>
</form>
</div>
</div>
<div class="grid marginless">
<div class="col-4"><a href="#" class="code"><i class="fa fa-code"></i> The code</a></div>
</div>
</div>
</div>
</div>
</main>
<div class="push"></div>
</div>
<footer class="footer">
<div class="limiter">
<div class="grid">
<div class="col-6"><a href="index.html" class="color-white">
<div class="logo">Quodo<i class="fa fa-rocket color-cold-dark"></i>2</div>
<p class="logo-p">Application UI library</p></a>
<p><a href="https://github.com/ruslanchek/Quodo-2"><i class="fa fa-github"></i> GitHub</a></p>
</div>
<div class="col-18">
<nav class="nav white">
<div class="grid marginless">
<div class="col-6"><a href="index.html">Components</a><a href="typography.html">Typography</a><a href="colors.html">Colors</a><a href="grid.html">Grid</a></div>
<div class="col-6"><a href="api.html">API</a><a href="roadmap.html">Roadmap</a></div>
</div>
</nav>
</div>
</div>
</div>
</footer>
<script type="text/x-handlebars-template" id="template-ui-popup">
<div id="{{_id}}" class="popup {{overlay}}">
<div class="overlay"></div>
<div class="window"><a href="#" class="close"> <i class="fa fa-close"></i></a>
<div class="title">
<div class="text">{{title}}</div>
<div class="wait-indicator"></div>
</div>
<div class="messages"></div>
<div class="content">{{content}}</div>
</div>
</div>
</script>
<script type="text/x-handlebars-template" id="template-ui-popup-message">
<div class="message {{className}}">{{content}}</div>
</script>
<script type="text/x-handlebars-template" id="template-ui-fullscreen">
<div class="fullscreen">
<div class="overlay"></div>
<div class="loading">
<div class="animation tween-spin"></div>
</div>
<div class="window">
<div class="limiter">
<div class="viewport"></div>
</div>
</div>
</div>
</script>
<script type="text/x-handlebars-template" id="template-ui-fullscreen-content">
<h3 class="title">{{title}}
<p class="subtitle">{{subtitle}}</p>
</h3><a href="#" class="close">×</a>
<div class="grid">
<div class="col-18">
<div class="content">{{content}}</div>
</div>
<div class="col-6">
<div class="toolbar">{{toolbar}}</div>
</div>
</div>
</script>
<script type="text/x-handlebars-template" id="template-demo-popup-1-content">
<p>This example will show you, how the popup can appear and disappear, and how it play its own waiting animation. Also you can set a timeout, that automatically removes waiting mode from a popup window.</p>
<div id="popup-sample-waiting-checker" class="checker"><a href="#" data-toggled-content="Switch waiting mode off">Switch waiting mode on</a></div>
</script>
<script type="text/x-handlebars-template" id="template-demo-popup-2-content">
<p>
Lorem ipsum dolor sit amet, consectetur adipisicing elit,
sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
</p>
<div class="checker"><a id="popup-sample-messages-error" href="#">Error message</a><a id="popup-sample-messages-success" href="#">Success message</a></div>
</script>
<script type="text/x-handlebars-template" id="template-demo-popup-3-content">
<p>Click anywhere outside this window to close it.</p>
</script>
<script type="text/x-handlebars-template" id="template-demo-popup-4-content">
<div id="tabs-popup" class="tabs fat"><i class="marker"></i><a href="#about" class="active">About</a><a href="#contacts">Contacts</a><a href="#media">Media</a></div>
<div id="tabs-popup-content" class="tabs-content">
<div data-role="tab-page" data-tab="about" class="page">
<p>Your bones don't break, mine do. That's clear. Your cells react to bacteria and viruses differently than mine. You don't get sick, I do. That's also clear. But for some reason, you and I react the exact same way to water. We swallow it too fast, we choke. We get some in our lungs, we drown. However unreal it may seem, we are connected, you and I. We're on the same curve, just on opposite ends.</p>
</div>
<div data-role="tab-page" data-tab="contacts" class="page active">
<p>Your bones don't break, mine do. That's clear. Your cells react to bacteria and viruses differently than mine. You don't get sick, I do.</p>
<p>That's also clear. But for some reason, you and I react the exact same way to water. We swallow it too fast, we choke. We get some in our lungs, we drown. However unreal it may seem, we are connected, you and I. We're on the same curve, just on opposite ends.</p>
</div>
<div data-role="tab-page" data-tab="media" class="page">
<p>Your bones don't break, mine do. That's clear. Your cells react to bacteria and viruses differently than mine. You don't get sick, I do.</p>
<p>That's also clear. But for some reason, you and I react the exact same way to water. We swallow it too fast, we choke. We get some in our lungs, we drown. However unreal it may seem, we are connected, you and I. We're on the same curve, just on opposite ends.</p>
</div>
</div>
</script>
</body>
</html>