-
Notifications
You must be signed in to change notification settings - Fork 16
/
index.html
168 lines (164 loc) Β· 6.03 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
<html><head><meta charset="utf-8" /><meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="description" content="" /><meta name="author" content="Maxim Sokhatsky" />
<title>FORM</title>
<link rel="stylesheet" href="https://form.n2o.dev/priv/static/css/forms.css" />
<link rel="stylesheet" href="https://n2o.dev/blank.css" />
<link rel="stylesheet" href="https://n2o.dev/zima.css" />
</head><body><nav>
<a href="https://n2o.dev">DEV</a>
<a href="https://form.n2o.dev" style="background:#ededed;">FORM</a>
<div class="dropdown">
<a onclick="drop()" class="dropbtn">EN</a>
<div id="dropdown" class="dropdown-content">
<a href="https://n2o.dev/deps/form/man/ua/index.html">UA</a>
<a href="#">EN</a>
</div>
</div>
</nav><header>
<a href="https://github.com/synrc/form"><img src="https://openmoji.org/data/color/svg/1F4C3.svg"/></a>
<h1>FORM</h1>
</header><aside>
<article>
<section>
<h3>SYNOPSIS</h3>
<div>SYNRC FORM is a pure Erlang forms protocol for enterprise software.
It suppors following target formats: XML, JSON, HTML, BML, SVG, JavaScript, BERT.
</div> <br/>
<figure><code>$ git clone git://github.com/synrc/form</code></figure>
</section>
<section>
<h3>MODULES</h3>
<div><ul><li><a href="man/form.htm">FORM</a></li>
<li><a href="man/form_backend.htm">BACKEND</a></li></ul></div>
<br />
<div>
NOV 2021 Β© <a href="https://github.com/5HT">5HT</a> ISC<br />
VER 6.11 6.5 5.12
</div>
</section>
</article>
</aside><main>
<section>
<a></a><h3>INTRO</h3>
<p>FORM application provides set of CSS stylesheets for
compact forms definitions and also it provides database
model for storing metadata information about documents,
fields and validations.</p>
<ul>
<li><b><a href="man/form.htm">form</a></b> β FORM document model generation</li>
<li><b><a href="man/valid.js.htm">valid.js</a></b> β client validation</li>
</ul>
</section>
<section>
<h3>SPEC</h3>
<p>The list of supported field types:</p>
<p>
<b>string</b> β Label control.<br />
<b>integer</b> β Number.<br />
<b>bool</b> β Boolean selection (approvals).<br />
<b>combo</b> β Exclusive Circle Checklist (Radio).<br />
<b>comboLookup</b> β Exclusive Dropdown on remote feed.<br />
<b>select</b> β Select, Option (Combobox).<br />
<b>check</b> β Multiple Square Checklist (Checkbox).<br />
<b>calendar</b> β Datetime Picker.<br />
<b>money</b> β Money with fixed point.<br />
<b>pay</b> β Payment Method.<br />
<b>phone</b> β Telephone Number with +.<br />
<b>auth</b> β Credentials.<br />
<b>card</b> β Credit Cards.<br />
<b>otp</b> β One Time Password.<br />
</p>
<h4> DOCUMENT </h4>
<figure>
<code>
-record(document, { ?ITERATOR(feed),
name,
base,
sections,
fields,
buttons,
access }).
</code>
</figure>
<h4> FIELD </h4>
<figure>
<code>
-record(field, { id, sec=1, name, pos, title,
layout, visible=true,
disabled=false, format="~w",
curr=[], postfun=[], desc,
wide=normal, type=binary,
etc, labelClass=label,
fieldClass=field, bind=[],
index=[], hidden=false,
boxClass=box, vector=false,
access, tooltips=[],
options=[], min=0, max=1000000,
length=10, postback }).
</code>
</figure>
<h4> SECTION </h4>
<figure>
<code>
-record(sec, { id,
name,
desc="" }).
</code>
</figure>
<h4> BUTTON </h4>
<figure>
<code>
-record(but, { id,
postback,
name,
title,
sources=[],
class }).
</code>
</figure>
<h4> SELECTOR </h4>
<figure>
<code>
-record(sel, { id,
postback,
name,
title }).
</code>
</figure>
<h4> OPTION </h4>
<figure>
<code>
-record(opt, { id,
postback,
name,
title,
checked=false,
disabled=false,
noRadioButton=false }).
</code>
</figure>
<h4> VALIDATION </h4>
<figure>
<code>
-record(validation, { name, type, msg,
extract = fun(X) -> X end,
options=[], function,
field={record,pos} }).
</code>
</figure>
</section>
</main><footer>
Made with <span class="heart">β€</span> to N2O
</footer>
<script src="https://ws.n2o.dev/priv/utf8.js"></script>
<script src="https://ws.n2o.dev/priv/bert.js"></script>
<script src="https://ws.n2o.dev/priv/heart.js"></script>
<script src="https://ws.n2o.dev/priv/ieee754.js"></script>
<script src="https://ws.n2o.dev/priv/n2o.js"></script>
<script>host = location.hostname === 'form.n2o.dev' ? 'ns.synrc.com' : location.hostname;
port = 8043;</script><script src="https://ws.n2o.dev/priv/ftp.js"></script>
<script src="https://ws.n2o.dev/priv/nitro.js"></script>
<script>protos = [$bert]; N2O_start();</script>
<script>function drop(){document.getElementById("dropdown").classList.toggle("show");}</script>
</body></html>