lato_core 2.1.1 → 2.1.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 +4 -4
- data/app/assets/fonts/lato_core/Lato-Bold.eot +0 -0
- data/app/assets/fonts/lato_core/Lato-Bold.ttf +0 -0
- data/app/assets/fonts/lato_core/Lato-Bold.woff +0 -0
- data/app/assets/fonts/lato_core/Lato-Bold.woff2 +0 -0
- data/app/assets/fonts/lato_core/Lato-Light.eot +0 -0
- data/app/assets/fonts/lato_core/Lato-Light.ttf +0 -0
- data/app/assets/fonts/lato_core/Lato-Light.woff +0 -0
- data/app/assets/fonts/lato_core/Lato-Light.woff2 +0 -0
- data/app/assets/fonts/lato_core/Lato-Regular.eot +0 -0
- data/app/assets/fonts/lato_core/Lato-Regular.ttf +0 -0
- data/app/assets/fonts/lato_core/Lato-Regular.woff +0 -0
- data/app/assets/fonts/lato_core/Lato-Regular.woff2 +0 -0
- data/app/assets/javascripts/lato_core/application.js +1 -1
- data/app/assets/javascripts/lato_core/initializers/Inputs.js +49 -1
- data/app/assets/javascripts/lato_core/initializers/inputs/MultipleSelect.js +0 -0
- data/app/assets/javascripts/lato_core/initializers/{SortableManager.js → inputs/SortableManager.js} +0 -0
- data/app/assets/stylesheets/lato_core/base/_typography.scss +21 -12
- data/app/assets/stylesheets/lato_core/cells/elements/_modal.scss +1 -1
- data/app/assets/stylesheets/lato_core/cells/elements/_title.scss +5 -0
- data/app/assets/stylesheets/lato_core/cells/inputs/_date.scss +3 -0
- data/app/assets/stylesheets/lato_core/cells/inputs/_datetime.scss +1 -1
- data/app/assets/stylesheets/lato_core/cells/inputs/_inputs.scss +2 -0
- data/app/assets/stylesheets/lato_core/cells/inputs/_youtube.scss +26 -0
- data/app/assets/stylesheets/lato_core/layouts/_admin.scss +17 -3
- data/app/assets/stylesheets/lato_core/theme.scss.erb +2 -2
- data/app/cells/lato_core/elements/title/cell.rb +24 -22
- data/app/cells/lato_core/elements/title/views/show.html.erb +6 -1
- data/app/cells/lato_core/inputs/date/cell.rb +53 -0
- data/app/cells/lato_core/inputs/date/views/show.html.erb +19 -0
- data/app/cells/lato_core/inputs/multipleselect/cell.rb +0 -0
- data/app/cells/lato_core/inputs/multipleselect/views/show.html.erb +0 -0
- data/app/cells/lato_core/inputs/select/cell.rb +2 -0
- data/app/cells/lato_core/inputs/select/views/show.html.erb +2 -0
- data/app/cells/lato_core/inputs/text/views/show.html.erb +1 -1
- data/app/cells/lato_core/inputs/textarea/cell.rb +5 -5
- data/app/cells/lato_core/inputs/youtube/cell.rb +39 -0
- data/app/cells/lato_core/inputs/youtube/views/show.html.erb +20 -0
- data/app/controllers/lato_core/back/superusers_controller.rb +23 -13
- data/app/controllers/lato_core/doc/cells_inputs_controller.rb +4 -0
- data/app/views/lato_core/doc/cells_elements/title.html.erb +31 -0
- data/app/views/lato_core/doc/cells_inputs/date.html.erb +178 -0
- data/app/views/lato_core/doc/cells_inputs/select.html.erb +78 -0
- data/app/views/lato_core/doc/cells_inputs/text.html.erb +2 -2
- data/app/views/lato_core/doc/cells_inputs/youtube.html.erb +98 -0
- data/app/views/lato_core/doc/doc/index.html.erb +2 -0
- data/app/views/lato_core/doc/general/generators.html.erb +0 -22
- data/app/views/layouts/lato_core/admin.html.erb +2 -0
- data/app/views/layouts/lato_core/authentication.html.erb +2 -0
- data/config/configs.yml +7 -1
- data/config/initializers/init_system.rb +1 -1
- data/config/routes/doc.rb +3 -0
- data/lib/lato_core/cell.rb +3 -0
- data/lib/lato_core/version.rb +1 -1
- metadata +29 -22
- data/app/assets/fonts/lato_core/lato-bold-webfont.eot +0 -0
- data/app/assets/fonts/lato_core/lato-bold-webfont.svg +0 -4551
- data/app/assets/fonts/lato_core/lato-bold-webfont.ttf +0 -0
- data/app/assets/fonts/lato_core/lato-bold-webfont.woff +0 -0
- data/app/assets/fonts/lato_core/lato-bold-webfont.woff2 +0 -0
- data/app/assets/fonts/lato_core/lato-regular-webfont.eot +0 -0
- data/app/assets/fonts/lato_core/lato-regular-webfont.svg +0 -4241
- data/app/assets/fonts/lato_core/lato-regular-webfont.ttf +0 -0
- data/app/assets/fonts/lato_core/lato-regular-webfont.woff +0 -0
- data/app/assets/fonts/lato_core/lato-regular-webfont.woff2 +0 -0
- data/lib/generators/lato_core/templates/controllers/crud_controller.rb +0 -87
- data/lib/generators/lato_core/templates/views/crud/edit.html.erb +0 -18
- data/lib/generators/lato_core/templates/views/crud/index.html.erb +0 -29
- data/lib/generators/lato_core/templates/views/crud/new.html.erb +0 -18
- data/lib/generators/lato_core/templates/views/crud/shared/_form.html.erb +0 -25
- data/lib/generators/lato_core/templates/views/crud/show.html.erb +0 -16
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
<div class="inputs-date inputs__container <%= @args[:class] %>">
|
|
2
|
+
|
|
3
|
+
<%= render '../../shared/label.html' %>
|
|
4
|
+
|
|
5
|
+
<input
|
|
6
|
+
class="inputs__input inputs__input--date"
|
|
7
|
+
type="text"
|
|
8
|
+
value="<%= @value %>"
|
|
9
|
+
name="<%= @args[:name] %>"
|
|
10
|
+
placeholder="<%= @args[:placeholder] %>"
|
|
11
|
+
data-required="<%= @args[:required] %>"
|
|
12
|
+
<% if @args[:disabled] %>
|
|
13
|
+
disabled
|
|
14
|
+
<% end %>
|
|
15
|
+
/>
|
|
16
|
+
|
|
17
|
+
<%= render '../../shared/help.html' %>
|
|
18
|
+
|
|
19
|
+
</div>
|
|
File without changes
|
|
File without changes
|
|
@@ -9,6 +9,8 @@
|
|
|
9
9
|
name="<%= @args[:name] %>"
|
|
10
10
|
placeholder="<%= @args[:placeholder] %>"
|
|
11
11
|
data-required="<%= @args[:required] %>"
|
|
12
|
+
data-create="<%= @args[:create] %>"
|
|
13
|
+
data-multiple="<%= @args[:multiple] %>"
|
|
12
14
|
>
|
|
13
15
|
<% if @args[:option_blank] %>
|
|
14
16
|
<option value=""></option>
|
|
@@ -31,11 +31,11 @@ module LatoCore
|
|
|
31
31
|
|
|
32
32
|
private
|
|
33
33
|
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
34
|
+
def set_conditions
|
|
35
|
+
@show_label = !@args[:label].nil? && !@args[:label].blank?
|
|
36
|
+
@show_help = !@args[:help].nil? && !@args[:help].blank?
|
|
37
|
+
end
|
|
38
38
|
|
|
39
39
|
end
|
|
40
40
|
|
|
41
|
-
end
|
|
41
|
+
end
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
module LatoCore
|
|
2
|
+
|
|
3
|
+
class Inputs::Youtube::Cell < Cell
|
|
4
|
+
|
|
5
|
+
@@requested_args = [:name]
|
|
6
|
+
|
|
7
|
+
@@default_args = {
|
|
8
|
+
value: '',
|
|
9
|
+
label: '',
|
|
10
|
+
placeholder: '',
|
|
11
|
+
help: '',
|
|
12
|
+
required: false,
|
|
13
|
+
class: 'md-12'
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
def initialize(args = {})
|
|
17
|
+
@args = validate_args(
|
|
18
|
+
args: args,
|
|
19
|
+
requested_args: @@requested_args,
|
|
20
|
+
default_args: @@default_args
|
|
21
|
+
)
|
|
22
|
+
|
|
23
|
+
set_conditions
|
|
24
|
+
end
|
|
25
|
+
|
|
26
|
+
def show
|
|
27
|
+
render 'show.html'
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
private
|
|
31
|
+
|
|
32
|
+
def set_conditions
|
|
33
|
+
@show_label = !@args[:label].nil? && !@args[:label].blank?
|
|
34
|
+
@show_help = !@args[:help].nil? && !@args[:help].blank?
|
|
35
|
+
end
|
|
36
|
+
|
|
37
|
+
end
|
|
38
|
+
|
|
39
|
+
end
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
<div class="inputs-youtube inputs__container <%= @args[:class] %>">
|
|
2
|
+
|
|
3
|
+
<%= render '../../shared/label.html' %>
|
|
4
|
+
|
|
5
|
+
<input
|
|
6
|
+
class="inputs__input"
|
|
7
|
+
type="text"
|
|
8
|
+
value="<%= @args[:value] %>"
|
|
9
|
+
name="<%= @args[:name] %>"
|
|
10
|
+
placeholder="<%= @args[:placeholder] %>"
|
|
11
|
+
data-required="<%= @args[:required] %>"
|
|
12
|
+
/>
|
|
13
|
+
|
|
14
|
+
<%= render '../../shared/help.html' %>
|
|
15
|
+
|
|
16
|
+
<div class="inputs-youtube__video">
|
|
17
|
+
|
|
18
|
+
</div>
|
|
19
|
+
|
|
20
|
+
</div>
|
|
@@ -3,6 +3,7 @@ module LatoCore
|
|
|
3
3
|
|
|
4
4
|
before_action do
|
|
5
5
|
core__set_menu_active_item('core_superusers')
|
|
6
|
+
check_superuser_permissions
|
|
6
7
|
end
|
|
7
8
|
|
|
8
9
|
def index
|
|
@@ -105,27 +106,36 @@ module LatoCore
|
|
|
105
106
|
redirect_to lato_core.superusers_path
|
|
106
107
|
return
|
|
107
108
|
end
|
|
108
|
-
|
|
109
|
+
|
|
109
110
|
flash[:success] = LANGUAGES[:lato_core][:flashes][:superuser_destroy_success]
|
|
110
111
|
redirect_to lato_core.superusers_path
|
|
111
112
|
end
|
|
112
113
|
|
|
113
114
|
private
|
|
114
115
|
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
116
|
+
def superuser_params
|
|
117
|
+
params.require(:superuser).permit(:name, :surname, :email, :username, :password,
|
|
118
|
+
:password_confirmation, :permission, :biography)
|
|
119
|
+
end
|
|
119
120
|
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
121
|
+
def fetch_external_objects
|
|
122
|
+
@permissions_list = get_permissions_list_for_current_superuser
|
|
123
|
+
end
|
|
124
|
+
|
|
125
|
+
def get_permissions_list_for_current_superuser
|
|
126
|
+
return CONFIGS[:lato_core][:superusers_permissions].values.select {
|
|
127
|
+
|x| x[:value] <= @core__current_superuser.permission
|
|
128
|
+
}
|
|
129
|
+
end
|
|
123
130
|
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
131
|
+
def check_superuser_permissions
|
|
132
|
+
min = CONFIGS[:lato_core][:superusers_management_permissions][:min]
|
|
133
|
+
max = CONFIGS[:lato_core][:superusers_management_permissions][:max]
|
|
134
|
+
if @core__current_superuser.permission < min || @core__current_superuser.permission > max
|
|
135
|
+
flash[:warning] = LANGUAGES[:lato_core][:flashes][:superuser_not_permission]
|
|
136
|
+
redirect_to root_path
|
|
128
137
|
end
|
|
138
|
+
end
|
|
129
139
|
|
|
130
140
|
end
|
|
131
|
-
end
|
|
141
|
+
end
|
|
@@ -66,5 +66,36 @@
|
|
|
66
66
|
|
|
67
67
|
<%=raw block.close %>
|
|
68
68
|
|
|
69
|
+
<%=raw row.close %>
|
|
70
|
+
<!-- / CODE SECTION -->
|
|
71
|
+
|
|
72
|
+
<hr>
|
|
73
|
+
<%=raw cell(:elements, :title).new(label: 'Titles with icon', size: 3) %>
|
|
74
|
+
|
|
75
|
+
<%=raw row.open %>
|
|
76
|
+
|
|
77
|
+
<%=raw block.open %>
|
|
78
|
+
|
|
79
|
+
<%=raw cell(:elements, :title).new(label: 'Im an important title', size: 1, icon: 'address-card') %>
|
|
80
|
+
|
|
81
|
+
<%=raw block.close %>
|
|
82
|
+
|
|
83
|
+
<%=raw row.close %>
|
|
84
|
+
|
|
85
|
+
<!-- CODE SECTION -->
|
|
86
|
+
<%=raw row.open %>
|
|
87
|
+
|
|
88
|
+
<%=raw block.open %>
|
|
89
|
+
|
|
90
|
+
<%=raw cell(:elements, :title).new(label: 'Code', size: 6) %>
|
|
91
|
+
|
|
92
|
+
<%=raw code.open %>
|
|
93
|
+
|
|
94
|
+
<%= erb_open_tag %>=raw cell(:elements, :title).new(label: 'Im an important title', size: 1, icon: 'address-card') <%= erb_close_tag %>
|
|
95
|
+
|
|
96
|
+
<%=raw code.close %>
|
|
97
|
+
|
|
98
|
+
<%=raw block.close %>
|
|
99
|
+
|
|
69
100
|
<%=raw row.close %>
|
|
70
101
|
<!-- / CODE SECTION -->
|
|
@@ -0,0 +1,178 @@
|
|
|
1
|
+
<%
|
|
2
|
+
row = cell(:elements, :row).new
|
|
3
|
+
block = cell(:elements, :block).new(class: 'xs-12 sm-12 md-12')
|
|
4
|
+
code = cell(:elements, :code).new
|
|
5
|
+
form = cell(:inputs, :form).new(url: '#', method: 'get')
|
|
6
|
+
%>
|
|
7
|
+
|
|
8
|
+
<!-- PRESENTATION -->
|
|
9
|
+
<%=raw row.open %>
|
|
10
|
+
|
|
11
|
+
<%=raw block.open %>
|
|
12
|
+
|
|
13
|
+
<%=raw cell(:elements, :title).new(label: 'Cells Inputs: Date') %>
|
|
14
|
+
|
|
15
|
+
<p>A Date is a input used to set a date value.</p>
|
|
16
|
+
|
|
17
|
+
<%=raw block.close %>
|
|
18
|
+
|
|
19
|
+
<%=raw row.close %>
|
|
20
|
+
<!-- / PRESENTATION -->
|
|
21
|
+
|
|
22
|
+
<hr>
|
|
23
|
+
<%=raw cell(:elements, :title).new(label: 'Normal Date input', size: 3) %>
|
|
24
|
+
|
|
25
|
+
<%=raw row.open %>
|
|
26
|
+
|
|
27
|
+
<%=raw block.open %>
|
|
28
|
+
|
|
29
|
+
<%=raw form.open %>
|
|
30
|
+
|
|
31
|
+
<%=raw row.open %>
|
|
32
|
+
|
|
33
|
+
<%=raw cell(:inputs, :date).new(name: 'sample', label: 'Insert the date') %>
|
|
34
|
+
|
|
35
|
+
<%=raw row.close %>
|
|
36
|
+
|
|
37
|
+
<%=raw form.close %>
|
|
38
|
+
|
|
39
|
+
<%=raw block.close %>
|
|
40
|
+
|
|
41
|
+
<%=raw row.close %>
|
|
42
|
+
|
|
43
|
+
<!-- CODE SECTION -->
|
|
44
|
+
<%=raw row.open %>
|
|
45
|
+
|
|
46
|
+
<%=raw block.open %>
|
|
47
|
+
|
|
48
|
+
<%=raw cell(:elements, :title).new(label: 'Code', size: 6) %>
|
|
49
|
+
|
|
50
|
+
<%=raw code.open %>
|
|
51
|
+
|
|
52
|
+
<%= erb_open_tag %>=raw cell(:inputs, :date).new(name: 'sample', label: 'Insert the date') <%= erb_close_tag %>
|
|
53
|
+
|
|
54
|
+
<%=raw code.close %>
|
|
55
|
+
|
|
56
|
+
<%=raw block.close %>
|
|
57
|
+
|
|
58
|
+
<%=raw row.close %>
|
|
59
|
+
<!-- / CODE SECTION -->
|
|
60
|
+
|
|
61
|
+
<hr>
|
|
62
|
+
<%=raw cell(:elements, :title).new(label: 'Date with default value', size: 3) %>
|
|
63
|
+
|
|
64
|
+
<%=raw row.open %>
|
|
65
|
+
|
|
66
|
+
<%=raw block.open %>
|
|
67
|
+
|
|
68
|
+
<%=raw form.open %>
|
|
69
|
+
|
|
70
|
+
<%=raw row.open %>
|
|
71
|
+
|
|
72
|
+
<%=raw cell(:inputs, :date).new(name: 'sample', label: 'Insert the date', value: Date.new(2001, 01, 20)) %>
|
|
73
|
+
|
|
74
|
+
<%=raw row.close %>
|
|
75
|
+
|
|
76
|
+
<%=raw form.close %>
|
|
77
|
+
|
|
78
|
+
<%=raw block.close %>
|
|
79
|
+
|
|
80
|
+
<%=raw row.close %>
|
|
81
|
+
|
|
82
|
+
<!-- CODE SECTION -->
|
|
83
|
+
<%=raw row.open %>
|
|
84
|
+
|
|
85
|
+
<%=raw block.open %>
|
|
86
|
+
|
|
87
|
+
<%=raw cell(:elements, :title).new(label: 'Code', size: 6) %>
|
|
88
|
+
|
|
89
|
+
<%=raw code.open %>
|
|
90
|
+
|
|
91
|
+
<%= erb_open_tag %>=raw cell(:inputs, :date).new(name: 'sample', label: 'Insert the date', value: Date.new(2001, 01, 20)) <%= erb_close_tag %>
|
|
92
|
+
|
|
93
|
+
<%=raw code.close %>
|
|
94
|
+
|
|
95
|
+
<%=raw block.close %>
|
|
96
|
+
|
|
97
|
+
<%=raw row.close %>
|
|
98
|
+
<!-- / CODE SECTION -->
|
|
99
|
+
|
|
100
|
+
<hr>
|
|
101
|
+
<%=raw cell(:elements, :title).new(label: 'Date with placeholder', size: 3) %>
|
|
102
|
+
|
|
103
|
+
<%=raw row.open %>
|
|
104
|
+
|
|
105
|
+
<%=raw block.open %>
|
|
106
|
+
|
|
107
|
+
<%=raw form.open %>
|
|
108
|
+
|
|
109
|
+
<%=raw row.open %>
|
|
110
|
+
|
|
111
|
+
<%=raw cell(:inputs, :date).new(name: 'sample', label: 'Insert the date', placeholder: 'Inser a date please!') %>
|
|
112
|
+
|
|
113
|
+
<%=raw row.close %>
|
|
114
|
+
|
|
115
|
+
<%=raw form.close %>
|
|
116
|
+
|
|
117
|
+
<%=raw block.close %>
|
|
118
|
+
|
|
119
|
+
<%=raw row.close %>
|
|
120
|
+
|
|
121
|
+
<!-- CODE SECTION -->
|
|
122
|
+
<%=raw row.open %>
|
|
123
|
+
|
|
124
|
+
<%=raw block.open %>
|
|
125
|
+
|
|
126
|
+
<%=raw cell(:elements, :title).new(label: 'Code', size: 6) %>
|
|
127
|
+
|
|
128
|
+
<%=raw code.open %>
|
|
129
|
+
|
|
130
|
+
<%= erb_open_tag %>=raw cell(:inputs, :date).new(name: 'sample', label: 'Insert the date', placeholder: 'Inser a date please!') <%= erb_close_tag %>
|
|
131
|
+
|
|
132
|
+
<%=raw code.close %>
|
|
133
|
+
|
|
134
|
+
<%=raw block.close %>
|
|
135
|
+
|
|
136
|
+
<%=raw row.close %>
|
|
137
|
+
<!-- / CODE SECTION -->
|
|
138
|
+
|
|
139
|
+
<hr>
|
|
140
|
+
<%=raw cell(:elements, :title).new(label: 'Date required', size: 3) %>
|
|
141
|
+
|
|
142
|
+
<%=raw row.open %>
|
|
143
|
+
|
|
144
|
+
<%=raw block.open %>
|
|
145
|
+
|
|
146
|
+
<%=raw form.open %>
|
|
147
|
+
|
|
148
|
+
<%=raw row.open %>
|
|
149
|
+
|
|
150
|
+
<%=raw cell(:inputs, :date).new(name: 'sample', label: 'Insert the date', required: true) %>
|
|
151
|
+
|
|
152
|
+
<%=raw row.close %>
|
|
153
|
+
|
|
154
|
+
<%=raw cell(:elements, :button).new(type: 'submit', label: 'Submit') %>
|
|
155
|
+
|
|
156
|
+
<%=raw form.close %>
|
|
157
|
+
|
|
158
|
+
<%=raw block.close %>
|
|
159
|
+
|
|
160
|
+
<%=raw row.close %>
|
|
161
|
+
|
|
162
|
+
<!-- CODE SECTION -->
|
|
163
|
+
<%=raw row.open %>
|
|
164
|
+
|
|
165
|
+
<%=raw block.open %>
|
|
166
|
+
|
|
167
|
+
<%=raw cell(:elements, :title).new(label: 'Code', size: 6) %>
|
|
168
|
+
|
|
169
|
+
<%=raw code.open %>
|
|
170
|
+
|
|
171
|
+
<%= erb_open_tag %>=raw cell(:inputs, :date).new(name: 'sample', label: 'Insert the date', required: true) <%= erb_close_tag %>
|
|
172
|
+
|
|
173
|
+
<%=raw code.close %>
|
|
174
|
+
|
|
175
|
+
<%=raw block.close %>
|
|
176
|
+
|
|
177
|
+
<%=raw row.close %>
|
|
178
|
+
<!-- / CODE SECTION -->
|
|
@@ -105,6 +105,84 @@
|
|
|
105
105
|
<%=raw row.close %>
|
|
106
106
|
<!-- / CODE SECTION -->
|
|
107
107
|
|
|
108
|
+
<hr>
|
|
109
|
+
<%=raw cell(:elements, :title).new(label: 'Select input with create option', size: 3) %>
|
|
110
|
+
|
|
111
|
+
<%=raw row.open %>
|
|
112
|
+
|
|
113
|
+
<%=raw block.open %>
|
|
114
|
+
|
|
115
|
+
<%=raw form.open %>
|
|
116
|
+
|
|
117
|
+
<%=raw row.open %>
|
|
118
|
+
|
|
119
|
+
<%=raw cell(:inputs, :select).new(name: 'sample', label: 'Select an item', options: ['Pippo', 'Luigi', 'Gino'], create: true) %>
|
|
120
|
+
|
|
121
|
+
<%=raw row.close %>
|
|
122
|
+
|
|
123
|
+
<%=raw form.close %>
|
|
124
|
+
|
|
125
|
+
<%=raw block.close %>
|
|
126
|
+
|
|
127
|
+
<%=raw row.close %>
|
|
128
|
+
|
|
129
|
+
<!-- CODE SECTION -->
|
|
130
|
+
<%=raw row.open %>
|
|
131
|
+
|
|
132
|
+
<%=raw block.open %>
|
|
133
|
+
|
|
134
|
+
<%=raw cell(:elements, :title).new(label: 'Code', size: 6) %>
|
|
135
|
+
|
|
136
|
+
<%=raw code.open %>
|
|
137
|
+
|
|
138
|
+
<%= erb_open_tag %>=raw cell(:inputs, :select).new(name: 'sample', label: 'Select an item', options: ['Pippo', 'Luigi', 'Gino'], create: true)<%= erb_close_tag %>
|
|
139
|
+
|
|
140
|
+
<%=raw code.close %>
|
|
141
|
+
|
|
142
|
+
<%=raw block.close %>
|
|
143
|
+
|
|
144
|
+
<%=raw row.close %>
|
|
145
|
+
<!-- / CODE SECTION -->
|
|
146
|
+
|
|
147
|
+
<hr>
|
|
148
|
+
<%=raw cell(:elements, :title).new(label: 'Select input with multiple option', size: 3) %>
|
|
149
|
+
|
|
150
|
+
<%=raw row.open %>
|
|
151
|
+
|
|
152
|
+
<%=raw block.open %>
|
|
153
|
+
|
|
154
|
+
<%=raw form.open %>
|
|
155
|
+
|
|
156
|
+
<%=raw row.open %>
|
|
157
|
+
|
|
158
|
+
<%=raw cell(:inputs, :select).new(name: 'sample', label: 'Select multiple items', options: ['Pippo', 'Luigi', 'Gino'], multiple: true) %>
|
|
159
|
+
|
|
160
|
+
<%=raw row.close %>
|
|
161
|
+
|
|
162
|
+
<%=raw form.close %>
|
|
163
|
+
|
|
164
|
+
<%=raw block.close %>
|
|
165
|
+
|
|
166
|
+
<%=raw row.close %>
|
|
167
|
+
|
|
168
|
+
<!-- CODE SECTION -->
|
|
169
|
+
<%=raw row.open %>
|
|
170
|
+
|
|
171
|
+
<%=raw block.open %>
|
|
172
|
+
|
|
173
|
+
<%=raw cell(:elements, :title).new(label: 'Code', size: 6) %>
|
|
174
|
+
|
|
175
|
+
<%=raw code.open %>
|
|
176
|
+
|
|
177
|
+
<%= erb_open_tag %>=raw cell(:inputs, :select).new(name: 'sample', label: 'Select multiple items', options: ['Pippo', 'Luigi', 'Gino'], multiple: true)<%= erb_close_tag %>
|
|
178
|
+
|
|
179
|
+
<%=raw code.close %>
|
|
180
|
+
|
|
181
|
+
<%=raw block.close %>
|
|
182
|
+
|
|
183
|
+
<%=raw row.close %>
|
|
184
|
+
<!-- / CODE SECTION -->
|
|
185
|
+
|
|
108
186
|
<!-- PRESENTATION -->
|
|
109
187
|
<%=raw row.open %>
|
|
110
188
|
|