glib-web 0.14.1 → 0.14.2
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
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 0baa732034691c909ee78b5633077586e67f5b55f8618338c5da6d057c573223
|
|
4
|
+
data.tar.gz: 0e64bbf1a81a5a2a65616e9c49603b2f15cf3b02fa10c407d595e0ad533aa151
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 8a013f8cb0b04c3a25cbe5d24040ff1b3a15e8037c81b6ef5d10f1aec864860739a9e864482d937f12142e9917f0aea036cb3e6c4175d2367b1180736126534a
|
|
7
|
+
data.tar.gz: ac9da570bc331ff64d35ac2ce511f29ead17cdf1beab0b67b4cadbfc15c7c7b98e0429431ba2c4992a1b9d856bc98b575a727a3cd524bf2e4836fe04fd18e6dd
|
|
@@ -5,31 +5,13 @@ page = json_ui_page json
|
|
|
5
5
|
render "#{@path_prefix}/nav_menu", json: json, page: page
|
|
6
6
|
|
|
7
7
|
# The form will be automatically injected into the window.
|
|
8
|
-
page.template 'full_window_form'
|
|
8
|
+
#page.template 'full_window_form'
|
|
9
9
|
|
|
10
|
-
|
|
10
|
+
# TODO: This needs to produce page-level form attributes
|
|
11
|
+
page.form url: json_ui_garage_url(path: 'forms/basic_post'), method: 'post', padding: glib_json_padding_body, childViews: ->(form) do
|
|
12
|
+
# page.scroll padding: glib_json_padding_body, childViews: ->(form) do
|
|
11
13
|
form.fields_text name: 'user[name]', width: 'matchParent', label: 'Name'
|
|
12
14
|
form.fields_password name: 'user[password]', width: 'matchParent', label: 'Password'
|
|
13
|
-
|
|
14
|
-
# form.panels_split width: 'matchParent', content: ->(split) do
|
|
15
|
-
# split.left childViews: ->(left) do
|
|
16
|
-
# left.panels_horizontal height: 'matchParent', align: 'middle', childViews: ->(horizontal) do
|
|
17
|
-
# case params[:mode]
|
|
18
|
-
# when 'dialog'
|
|
19
|
-
# horizontal.fields_hidden name: 'mode', value: 'dialog'
|
|
20
|
-
# horizontal.button styleClass: 'link', text: 'cancel', onClick: ->(action) { action.dialogs_close }
|
|
21
|
-
# when 'dialog_reload'
|
|
22
|
-
# horizontal.button styleClass: 'link', text: 'back', onClick: ->(action) do
|
|
23
|
-
# render 'json_ui/garage/actions/dialogs_show', json: json, action: action, dialog_mode: :reload
|
|
24
|
-
# end
|
|
25
|
-
# end
|
|
26
|
-
# end
|
|
27
|
-
# end
|
|
28
|
-
# split.right childViews: ->(right) do
|
|
29
|
-
# # right.button text: 'Submit', onClick: ->(action) { action.forms_submit }
|
|
30
|
-
# right.fields_submit text: 'Submit'
|
|
31
|
-
# end
|
|
32
|
-
# end
|
|
33
15
|
end
|
|
34
16
|
|
|
35
17
|
page.footer padding: glib_json_padding_body, backgroundColor: '#b3bac2', childViews: ->(footer) do
|
|
@@ -91,11 +91,11 @@ page.list sections: [
|
|
|
91
91
|
action.windows_open url: json_ui_garage_url(path: 'forms/styled_boxes')
|
|
92
92
|
end
|
|
93
93
|
end
|
|
94
|
-
section.rows builder: ->(template) do
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
end
|
|
94
|
+
# section.rows builder: ->(template) do
|
|
95
|
+
# template.thumbnail title: 'Full Window', onClick: ->(action) do
|
|
96
|
+
# action.windows_open url: json_ui_garage_url(path: 'forms/full_window_form')
|
|
97
|
+
# end
|
|
98
|
+
# end
|
|
99
99
|
end, ->(section) do
|
|
100
100
|
section.header padding: glib_json_padding_list, childViews: ->(header) do
|
|
101
101
|
header.h2 text: 'Web Only'
|
|
@@ -19,7 +19,7 @@ json_ui_page json do |page|
|
|
|
19
19
|
scroll.h2 text: 'With select options'
|
|
20
20
|
scroll.spacer height: 6
|
|
21
21
|
scroll.banners_select width: 'matchParent', icon: 'info', message: 'This is a select banner', buttons: ->(menu) do
|
|
22
|
-
menu.button icon: 'add', text: 'Add',
|
|
22
|
+
menu.button icon: 'add', text: 'Add', badge: { text: 80 }, onClick: ->(action) do
|
|
23
23
|
action.windows_open url: json_ui_garage_url(path: 'home/blank')
|
|
24
24
|
end
|
|
25
25
|
menu.button icon: 'edit', text: 'Edit', onClick: ->(action) do
|
|
@@ -33,7 +33,7 @@ json_ui_page json do |page|
|
|
|
33
33
|
submenu.button \
|
|
34
34
|
icon: 'add',
|
|
35
35
|
text: 'Option1',
|
|
36
|
-
|
|
36
|
+
badge: { text: 3 },
|
|
37
37
|
onClick: ->(action) do
|
|
38
38
|
action.windows_open url: json_ui_garage_url(path: 'home/blank')
|
|
39
39
|
end
|