glib-web 0.4.41 → 0.4.42
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 565a150703d22eb99c4b12100953d15ba500e95b
|
4
|
+
data.tar.gz: 16657dfad9b14d071f8c880e5210058bd3c35bcf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 39185ec5f3512823bd8a9580ed16f37a626e81ab527bad01c7e5158ddac86490758ad1eedd8f281b2b23c933057d391bb355c57584c35bba095e0f43aa169f8b
|
7
|
+
data.tar.gz: 9e96ac43996db1be6c6613be6cf5d9c72150433b6fd3e49c2f8a156e0fc55b24c31338cedf0f960f5977d4ec3896f4eeaa0e2d4c467760b587e5957dcf961e76
|
@@ -4,38 +4,85 @@ page = json_ui_page json
|
|
4
4
|
render "#{@path_prefix}/nav_menu", json: json, page: page
|
5
5
|
|
6
6
|
page.form url: json_ui_garage_url(path: 'forms/basic_post'), method: 'post', padding: glib_json_padding_body, childViews: ->(form) do
|
7
|
-
form.h1 text: '
|
8
|
-
form.
|
7
|
+
form.h1 text: 'Text'
|
8
|
+
form.fields_password name: 'user[text1]', width: 'matchParent', label: 'Type "show"'
|
9
|
+
form.label text: 'Typed', showIf: {
|
10
|
+
"==": [
|
11
|
+
{
|
12
|
+
"var": 'user[text1]'
|
13
|
+
},
|
14
|
+
'show'
|
15
|
+
]
|
16
|
+
}
|
17
|
+
|
18
|
+
form.spacer height: 20
|
19
|
+
form.h1 text: 'Textarea'
|
20
|
+
form.fields_textarea name: 'user[textarea1]', width: 'matchParent', label: 'Type "show"'
|
21
|
+
form.label text: 'Typed', showIf: {
|
22
|
+
"==": [
|
23
|
+
{
|
24
|
+
"var": 'user[textarea1]'
|
25
|
+
},
|
26
|
+
'show'
|
27
|
+
]
|
28
|
+
}
|
29
|
+
|
30
|
+
form.spacer height: 20
|
31
|
+
form.h1 text: 'Check'
|
32
|
+
form.fields_check name: 'user[check1]', value: 'on', label: 'Show text'
|
9
33
|
form.spacer height: 10
|
10
|
-
form.label text: '
|
34
|
+
form.label text: 'Checked', showIf: {
|
11
35
|
"==": [
|
12
36
|
{
|
13
|
-
"var":
|
37
|
+
"var": 'user[check1]'
|
14
38
|
},
|
15
|
-
|
39
|
+
'on'
|
16
40
|
]
|
17
41
|
}
|
18
42
|
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
43
|
+
form.spacer height: 20
|
44
|
+
form.h1 text: 'Radio Group'
|
45
|
+
form.fields_radioGroup name: 'user[radio1]', value: 'F', childViews: ->(group) do
|
46
|
+
group.fields_radio value: 'show', label: 'Show'
|
47
|
+
group.fields_radio value: 'hide', label: 'Hide'
|
48
|
+
end
|
49
|
+
form.spacer height: 10
|
50
|
+
form.label text: 'Chosen', showIf: {
|
51
|
+
"==": [
|
52
|
+
{
|
53
|
+
"var": 'user[radio1]'
|
54
|
+
},
|
55
|
+
'show'
|
56
|
+
]
|
57
|
+
}
|
58
|
+
|
59
|
+
form.spacer height: 20
|
60
|
+
form.h1 text: 'Select'
|
61
|
+
options = ['show', 'hide']
|
62
|
+
form.fields_select name: 'user[select1]', width: 'matchParent', label: 'Select "show"', options: options
|
63
|
+
form.label text: 'Selected', showIf: {
|
64
|
+
"==": [
|
65
|
+
{
|
66
|
+
"var": 'user[select1]'
|
67
|
+
},
|
68
|
+
'show'
|
69
|
+
]
|
70
|
+
}
|
71
|
+
|
72
|
+
form.spacer height: 20
|
73
|
+
form.h1 text: 'Combo1'
|
74
|
+
form.label text: 'Select the same option on both the radio and select fields above'
|
75
|
+
form.spacer height: 10
|
76
|
+
form.h3 text: 'Same!', showIf: {
|
77
|
+
"==": [
|
78
|
+
{
|
79
|
+
"var": 'user[radio1]'
|
80
|
+
},
|
81
|
+
{
|
82
|
+
"var": 'user[select1]'
|
83
|
+
},
|
84
|
+
]
|
85
|
+
}
|
40
86
|
|
87
|
+
form.spacer height: 40
|
41
88
|
end
|
@@ -2,10 +2,10 @@ json.title 'Lists'
|
|
2
2
|
|
3
3
|
json_ui_page json do |page|
|
4
4
|
render "#{@path_prefix}/nav_menu", json: json, page: page, top_nav: true
|
5
|
-
|
5
|
+
|
6
6
|
page.list firstSection: ->(section) do
|
7
7
|
section.rows builder: ->(template) do
|
8
|
-
template.thumbnail title: 'Templating', onClick: ->(action) do
|
8
|
+
template.thumbnail icon: 'list', title: 'Templating', onClick: ->(action) do
|
9
9
|
action.windows_open url: json_ui_garage_url(path: 'lists/templating')
|
10
10
|
end
|
11
11
|
template.thumbnail title: 'Edit Actions', onClick: ->(action) do
|