glib-web 0.6.0 → 0.6.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/views/json_ui/garage/forms/show_hide.json.jbuilder +19 -15
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2c631e1defd50d5dacfeac09aefa556badcbb5a92bb092178371c48cc543d28c
|
4
|
+
data.tar.gz: 2d3016ccd5b075ad1dab8e4a53659d85b2ea6731cd6f1bd6ef708b6973ffbac5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9a9567f2f40296035cdb869bd35534648a54b1af2eea8012d9fff2132fb25d31024dc1c056da42bb2c6f353d38868a3ab920ef1e6d9f3207b6b714b3bd9eeefb
|
7
|
+
data.tar.gz: f7dbf6ca9ba85049f2c71cfcecb8ea28ee25f64cef0ff7681905bc745a7ccd9b9cf55f82cdc19ce57dda32f7af4e038e262c20ebe4795bd91b585f0499b94d36
|
@@ -37,7 +37,7 @@ page.form url: json_ui_garage_url(path: 'forms/generic_post'), method: 'post', p
|
|
37
37
|
|
38
38
|
form.spacer height: 20
|
39
39
|
form.h1 text: 'Check'
|
40
|
-
form.fields_check name: 'user[check1]', checkValue: 'on', label: 'Show text', value: 'on'
|
40
|
+
form.fields_check name: 'user[check1]', checkValue: 'on', uncheckValue: 'off', label: 'Show text', value: 'on'
|
41
41
|
form.spacer height: 10
|
42
42
|
form.label text: 'Checked', showIf: {
|
43
43
|
"==": [
|
@@ -49,22 +49,26 @@ page.form url: json_ui_garage_url(path: 'forms/generic_post'), method: 'post', p
|
|
49
49
|
}
|
50
50
|
|
51
51
|
form.spacer height: 6
|
52
|
-
form.fields_check name: 'user[
|
52
|
+
form.fields_check name: 'user[check2]', checkValue: 'on', label: 'Show text', uncheckValue: 'off'
|
53
53
|
form.spacer height: 10
|
54
|
-
form.label text: 'Checked', showIf: {
|
55
|
-
"
|
54
|
+
form.label text: 'Both Checked', showIf: {
|
55
|
+
"and": [
|
56
56
|
{
|
57
|
-
"
|
57
|
+
"==": [
|
58
|
+
{
|
59
|
+
"var": 'user[check1]'
|
60
|
+
},
|
61
|
+
'on'
|
62
|
+
],
|
58
63
|
},
|
59
|
-
'on'
|
60
|
-
]
|
61
|
-
}
|
62
|
-
form.label text: 'Checked', showIf: {
|
63
|
-
"!=": [
|
64
64
|
{
|
65
|
-
"
|
66
|
-
|
67
|
-
|
65
|
+
"==": [
|
66
|
+
{
|
67
|
+
"var": 'user[check2]'
|
68
|
+
},
|
69
|
+
'on'
|
70
|
+
]
|
71
|
+
}
|
68
72
|
]
|
69
73
|
}
|
70
74
|
|
@@ -133,12 +137,12 @@ page.form url: json_ui_garage_url(path: 'forms/generic_post'), method: 'post', p
|
|
133
137
|
form.h1 text: 'Show/hide another field'
|
134
138
|
form.label text: ''
|
135
139
|
form.spacer height: 10
|
136
|
-
form.fields_check name: 'user[
|
140
|
+
form.fields_check name: 'user[check3]', checkValue: 'on', label: 'Show field'
|
137
141
|
form.spacer height: 10
|
138
142
|
form.fields_text width: 'matchParent', label: 'Comment (optional)', name: 'user[comment]', value: 'This field should be submitted even when it is hidden', showIf: {
|
139
143
|
"==": [
|
140
144
|
{
|
141
|
-
"var": 'user[
|
145
|
+
"var": 'user[check3]'
|
142
146
|
},
|
143
147
|
'on'
|
144
148
|
]
|