configurable_engine 0.2.3 → 0.2.4
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.
- data/VERSION +1 -1
- data/app/views/admin/configurables/show.html.erb +15 -12
- data/configurable_engine.gemspec +1 -1
- metadata +3 -3
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.2.
|
1
|
+
0.2.4
|
@@ -2,18 +2,21 @@
|
|
2
2
|
|
3
3
|
<%= form_tag(admin_configurable_path, :method => :put) do -%>
|
4
4
|
<%- Configurable.defaults.each do |key, options| -%>
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
5
|
+
<div class="configurable">
|
6
|
+
<%= label_tag key, options[:name] %>
|
7
|
+
<%- if options[:type] == 'boolean' %>
|
8
|
+
<%= hidden_field_tag key, "0", Configurable.send(key) %>
|
9
|
+
<%= check_box_tag key, "1", Configurable.send(key) %>
|
10
|
+
<%- elsif options[:type] == 'password' -%>
|
11
|
+
<%= password_field_tag key, Configurable.send(key) %>
|
12
|
+
<%- elsif options[:type] == 'text' -%>
|
13
|
+
<%= text_area_tag key, Configurable.send(key) %>
|
14
|
+
<%- elsif options[:type] == 'list' -%>
|
15
|
+
<%= text_area_tag key, Configurable.send(key).collect{ |a| a.join(",")}.join("\n") %>
|
16
|
+
<%- else -%>
|
17
|
+
<%= text_field_tag key, Configurable.send(key) %>
|
18
|
+
<%- end -%>
|
19
|
+
</div>
|
17
20
|
<%- end -%>
|
18
21
|
|
19
22
|
<%= submit_tag 'Save' %>
|
data/configurable_engine.gemspec
CHANGED
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: configurable_engine
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 31
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 2
|
9
|
-
-
|
10
|
-
version: 0.2.
|
9
|
+
- 4
|
10
|
+
version: 0.2.4
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Paul Campbell
|