forked from gitana/alpaca
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
476 lines (428 loc) · 18.4 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
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
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"/>
<title>Alpaca - Easy Forms for jQuery</title>
<meta name="keywords"
content="jquery,bootstrap,forms,form,jquerymobile,jqueryui,mobile,json,json-schema,cloudcms,gitana,cms,content,uzquiano"/>
<meta name="description"
content="Alpaca is a client-side, cross-platform, JSON based forms engine for rendering elegant forms. It comes with comprehensive control library and support for validation, wizard, layout, templating, preview, i18n etc. Built upon jQuery library, jQuery UI and jQuery Mobile, it can be easily extended for additional form controls."/>
<meta name="author" content="Gitana Software Inc."/>
<meta http-equiv="X-UA-Compatible" content="IE=9">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<link rel="icon" type="image/x-icon" href="favicon.ico"/>
<!-- jQuery -->
<script type="text/javascript" src="./lib/jquery-latest.min.js"></script>
<script type="text/javascript" src="./lib/jquery.tmpl.js"></script>
<!-- Alpaca -->
<script type="text/javascript" src="./components/alpaca/alpaca.js"></script>
<link type="text/css" href="./components/alpaca/alpaca.css" rel="stylesheet"/>
<!-- jQuery UI Theme -->
<link type="text/css" href="./examples/lib/jquery-ui-latest/jquery-ui-latest.custom.css" rel="stylesheet"/>
<!-- Additional CSS -->
<link type="text/css" href="./examples/css/960.fluid.css" rel="stylesheet"/>
<!-- Web Site -->
<script type="text/javascript" src="./examples/lib/google-code-prettify/prettify.min.js"></script>
<script type="text/javascript" src="./examples/js/themeswitchertool.js"></script>
<script type="text/javascript" src="./examples/js/example.js"></script>
<script type="text/javascript" src="./examples/js/footer.js"></script>
<link type="text/css" href="./examples/css/site.css" rel="stylesheet"/>
<link type="text/css" href="./examples/lib/google-code-prettify/prettify.css" rel="stylesheet"/>
<script type="text/javascript" src="./examples/lib/tweet/jquery.tweet.js"></script>
<link type="text/css" href="./examples/lib/tweet/jquery.tweet.css" rel="stylesheet"/>
<script type="text/javascript" src="https://use.typekit.com/fnm3kpm.js"></script>
<script type="text/javascript">try{Typekit.load();}catch(e){}</script>
</head>
<body>
<header>
<div class='container_12'>
<div class='actual-body'>
<div class='grid_12'>
<h1><img src="examples/img/alpaca.png"><span>Easy Forms for jQuery</span></h1>
<div class="resource-bar">
<a href="index.html" class="current">Home</a>
<a href="web/download.html">Downloads</a>
<a href="examples/components/fields/any-field.html">Documentation</a>
<a href="examples/forms/customer-profile/edit-form.html">Examples</a>
<a href="web/resources.html">Resources</a>
<a href="web/contactus.html">Contact Us</a>
</div>
</div>
</div>
</div>
</header>
<div class='container_12'>
<div class="actual-body">
<div class='grid_12'>
<div class="widget">
<!--
<div class="widget-title">
<h2>What is Alpaca?</h2>
</div>
-->
<div class="widget-body widget-notitle">
<h2 class="home-header">
Easy Forms for jQuery
</h2>
<p align="center">
Web, Mobile + Tablet Forms for Bootstrap, jQuery Mobile and jQuery UI
</p>
<div align="center" class="front-ui-images">
<span class="bootstrap">
<a href="http://twitter.github.com/bootstrap" target="_blank">
<img src="./examples/img/ui/bootstrap.png" alt="Twitter Bootstrap" title="Twitter Bootstrap">
</a>
</span>
<span class="jquerymobile">
<a href="http://jquerymobile.com" target="_blank">
<img src="./examples/img/ui/jquery-mobile.png" alt="JQuery Mobile" title="JQuery Mobile" style="width: 275px">
</a>
</span>
<span class="jqueryui">
<a href="http://jqueryui.com" target="_blank">
<img src="./examples/img/ui/jquery-ui.jpg" alt="JQuery UI" title="JQuery UI">
</a>
</span>
</div>
<p>
Alpaca generates forms on-the-fly using <a href="http://json-schema.org/" target="_blank">JSON schema</a>
and configuration to define object models, types, properties, validation logic and layout.
Alpaca generates intuitive forms while giving your business the assurance of data compliance.
</p>
<p>
The Alpaca library is pre-packaged with controls, wizards, layouts, I18N support and pluggable template
engines for EJS, Handlerbars and jQuery.tmpl. API Documentation is provided so that you can extend Alpaca as you see fit.
</p>
<p>
Alpaca helps you to separate your data from your presentation. Design your forms once and have them work
across different devices and UI engines without any additional coding.
</p>
<p>
Here are some examples of Alpaca running with different UI front-ends:
</p>
<div align="center" class="front-ui-examples">
<span>
<a href="./demos/demo-bootstrap.html" target="_blank">Using Twitter Bootstrap</a>
</span>
<span>
<a href="./demos/demo-jquerymobile.html" target="_blank">Using jQuery Mobile</a>
</span>
<span>
<a href="./demos/demo-jqueryui.html" target="_blank">Using jQuery UI</a>
</span>
<span>
<a href="./demos/demo-amd.html" target="_blank">With AMD and RequireJS</a>
</span>
</div>
<p>
Alpaca is a community-led <a href="https://github.com/gitana/alpaca" target="_blank">open-source project</a>
licensed under Apache 2.0.
</p>
</div>
</div>
<div class="widget">
<div class="widget-title">
<h2>How do I use Alpaca?</h2>
</div>
<div class="widget-body">
<div class="step">
<img src="examples/img/step-1.png"/>
<p>
Copy the following two lines into your web's <code><head/></code> block after jQuery:
</p>
<pre class="prettyprint linenums">
<script type="text/javascript" src="http://www.alpacajs.org/js/alpaca.min.js"></script>
<link type="text/css" href="http://www.alpacajs.org/css/alpaca.min.css" rel="stylesheet"/>
</pre>
</div><!-- end step -->
<div class="step">
<img src="examples/img/step-2.png"/>
<p>
Add a <code><div></code> tag to your HTML page and call <code>$.alpaca()</code> with your form data:
</p>
<pre class="prettyprint linenums">
<div id="form1"></div>
<script type="text/javascript">
$(function() {
$("#form1").alpaca({
"schema": {
"title": "User Feedback",
"description": "What do you think about Alpaca?",
"type": "object",
"properties": {
"name": {
"type": "string",
"title": "Name"
},
"ranking": {
"type": "string",
"title": "Ranking",
"enum": ['excellent', 'not too shabby', 'alpaca built my hotrod']
}
}
}
});
});
</script>
</pre>
</div><!-- end step -->
<div class="step">
<img src="examples/img/step-3.png"/>
<p>
Enjoy your newly rendered Alpaca form.
</p>
<div class="container_12">
<div id="form1" class="tutorial-example"></div>
</div>
</div><!-- end step -->
</div><!-- end widget-body -->
</div><!-- end widget -->
<div class="widget">
<div class="widget-title">
<h2>Videos</h2>
</div>
<div class="widget-body">
<p align="center">
<a href="http://www.youtube.com/watch?v=mK4BXiGNbvA" target="_blank">Getting Started with Alpaca (Part 1)</a>
</p>
<p class="embedded-youtube">
<iframe width="640" height="360" src="http://www.youtube.com/embed/mK4BXiGNbvA" frameborder="0" allowfullscreen></iframe>
</p>
<br/>
<p align="center">
<a href="http://www.youtube.com/watch?v=9i2pml9p45Q">Getting Started with Alpaca (Part 2)</a>
</p>
<p class="embedded-youtube">
<iframe width="640" height="360" src="http://www.youtube.com/embed/9i2pml9p45Q" frameborder="0" allowfullscreen></iframe>
</p>
</div>
</div>
<div>
<div class="widget">
<div class="widget-title">
<h2><a name="gettingstarted">Browser Support</a></h2>
</div>
<div class="widget-body">
<p>
Alpaca is a JavaScript library that uses jQuery and runs in most modern web browsers. With every release of Alpaca,
we run a library of unit tests across a matrix of operating systems, browsers and versions. As the project grows,
we are expanding this matrix to include more combinations and testing.
</p>
<p>
This table shows our tested stack. If not shown, it means that Alpaca hasn't been tested on that platform and
browser combination. That said, please feel free to evaluate on your own. There is a good chance
Alpaca will run just fine.
</p>
<table class="browser-stack" style="width:100%">
<thead>
<th>Browser</th>
<th>Windows</th>
<th>Mac OSX</th>
<th>iOS</th>
<th>Android</th>
</thead>
<tbody>
<tr>
<td>Chrome</td>
<td>
<img src="examples/img/stack/supported-yes.png">
</td>
<td>
<img src="examples/img/stack/supported-yes.png">
</td>
<td>
<!-- not applicable -->
-
</td>
<td>
<img src="examples/img/stack/supported-yes.png">
<!-- not applicable -->
</td>
</tr>
<tr>
<td>Firefox</td>
<td>
<img src="examples/img/stack/supported-yes.png">
</td>
<td>
<img src="examples/img/stack/supported-yes.png">
</td>
<td>
<!-- not applicable -->
-
</td>
<td>
<!-- not applicable -->
-
</td>
</tr>
<tr>
<td>Safari</td>
<td>
<img src="examples/img/stack/supported-yes.png">
</td>
<td>
<img src="examples/img/stack/supported-yes.png">
</td>
<td>
<img src="examples/img/stack/supported-yes.png">
</td>
<td>
<!-- not applicable -->
-
</td>
</tr>
<tr>
<td>Opera</td>
<td>
<img src="examples/img/stack/supported-yes.png">
</td>
<td>
<img src="examples/img/stack/supported-yes.png">
</td>
<td>
<!-- not tested -->
-
</td>
<td>
<!-- not applicable -->
-
</td>
</tr>
<tr>
<td>IE</td>
<td>
<img src="examples/img/stack/supported-yes.png">
<br/>
(IE 9 and beyond)
</td>
<td>
<!-- not applicable -->
-
</td>
<td>
<!-- not applicable -->
-
</td>
<td>
<!-- not applicable -->
-
</td>
</tr>
</tbody>
</table>
<br/>
</div>
</div>
</div>
<div>
<div class="widget">
<div class="widget-title">
<h2><a name="gettingstarted">Getting Started</a></h2>
</div>
<div class="widget-body">
<p>
It's easy to get started. You can grab the code and drop it into your new or existing projects. You can also download
the source code, build it yourself and customize Alpaca for your own projects.
</p>
<h3 class="home-seg">Downloads</h3>
<p>
We offer <a href="web/download.html#releases">official releases</a> for Alpaca for use in production environments
as well as <a href="web/download.html#snapshots">development snapshot builds</a> for use in test.
</p>
<h3 class="home-seg">Source Code</h3>
<p>
Join the <a href="http://www.github.com/gitana/alpaca" target="_blank">Alpaca Project</a> on GitHub to
access the source and contribute to the growing Alpaca Community! Alpaca is licensed under the Apache 2.0
open source license.
</p>
<h3 class="home-seg">Tutorials, Form Demos and Mobile Examples</h3>
<p>
Check out our <a href="web/resources.html">Resources</a> and <a href="web/resources.html#documentation">documentation</a> to
get a sense of what Alpaca can do for you. Also take a look at some
<a href="examples/forms/customer-profile/edit-form.html">Complex Forms</a> and <a href="./demos">Framework Demonstrations</a>.
These cover implementing Alpaca with Twitter Bootstrap, jQuery UI and jQuery Mobile.
</p>
<p>
We've also provided a few additional mobile-specific examples for iPad and iPhone.
</p>
<ul>
<li><a href="./examples/mobile/mobile-examples.html" target="_blank">Browser</a></li>
<li><a id="ipad-link" href="http://ipadpeek.com/?url=http://www.alpacajs.org/examples/mobile/mobile-examples.html&portrait" target="_mobile">iPad Simulator</a></li>
<li><a id="iphone-link" href="http://testiphone.com/?url=http://www.alpacajs.org/examples/mobile/mobile-examples.html" target="_blank">iPhone Simulator</a></li>
</ul>
</p>
<h3 class="home-seg">Developer APIs</h3>
<p>
We provide an
<a href="./examples/components/fields/text-field.html">API and Component Reference</a> that describes all of the nifty
components and controls that are available out-of-the-box. This will give you an idea of how to build your own
extensions.
<br/>
<br/>
All of our <a href="./tests/index.html">Unit Tests</a> are online.
<br/>
We also provide <a href="http://www.alpacajs.org/js-doc/allclasses.html" target="_blank">Alpaca API JSDoc</a>.
</p>
<h3 class="home-seg">Alpaca Integrations</h3>
<p>
With its performance and extensibility, Alpaca has been adopted by various users as their forms
service for creating and editing structured JSON.
</p>
<p>
Alpaca can also be easily integrated with other Content Management Systems.
</p>
<ul>
<li>
<a href="http://blog.productivist.com/alfraca-alfresco-meets-alpaca/">
Alfraca : Alfresco Meets Alpaca</a>
</li>
<li>
<a href="https://github.com/cmpaul/alfraca">Alfraca Project</a>
</li>
</ul>
<h3 class="home-seg">Community Forums</h3>
<p>
If you have a question about Alpaca, please visit the <a href="http://www.cloudcms.org">Alpaca Forums</a>.
We'd love to get to know you and to hear your feedback!
</p>
</div>
</div>
</div>
<br/>
<br/>
</div><!-- end grid_12 -->
</div><!-- end actual-body -->
</div><!-- end container_12 -->
<script>
$("#form1").alpaca({
"schema": {
"title": "User Feedback",
"description": "What do you think about Alpaca?",
"type": "object",
"properties": {
"name": {
"type": "string",
"title": "Name"
},
"ranking": {
"type": "string",
"title": "Ranking",
"enum": ['excellent','not too shabby','alpaca built my hotrod']
}
}
}
});
</script>
<script>
//window.prettyPrint && prettyPrint();
</script>
<footer>
<div class="container_12">
<div class="grid_12 copyright">
Copyright © 2013 Gitana Software, Inc. | All Rights Reserved
</div>
</div>
</footer>
</body>
</html>