rails-settings-ui 0.5.0 → 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (95) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile +0 -1
  3. data/app/controllers/rails_settings_ui/settings_controller.rb +15 -6
  4. data/app/helpers/rails_settings_ui/settings_helper.rb +1 -1
  5. data/app/views/layouts/rails_settings_ui/application.html.erb +26 -0
  6. data/app/views/rails_settings_ui/settings/index.html.erb +45 -0
  7. data/config/locales/en.yml +4 -2
  8. data/config/locales/ru.yml +4 -0
  9. data/config/locales/zh-CN.yml +4 -2
  10. data/config/locales/zh-TW.yml +4 -2
  11. data/lib/rails-settings-ui.rb +2 -1
  12. data/lib/rails-settings-ui/engine.rb +0 -2
  13. data/lib/rails-settings-ui/settings_form_coercible.rb +91 -0
  14. data/lib/rails-settings-ui/settings_form_validator.rb +62 -0
  15. data/lib/rails-settings-ui/version.rb +1 -1
  16. data/spec/dummy/app/models/settings.rb +3 -0
  17. data/spec/dummy/config/application.rb +1 -1
  18. data/spec/dummy/config/environments/production.rb +1 -1
  19. data/spec/dummy/config/environments/test.rb +3 -1
  20. data/spec/dummy/config/locales/en.yml +6 -1
  21. data/spec/dummy/log/test.log +27323 -0
  22. data/spec/dummy/tmp/cache/5B0/540/settings%3Amode +1 -0
  23. data/spec/dummy/tmp/cache/612/400/settings%3Aangle +1 -0
  24. data/spec/dummy/tmp/cache/62A/7E0/settings%3Alimit +1 -0
  25. data/spec/dummy/tmp/cache/62C/9C0/settings%3Atimer +1 -0
  26. data/spec/dummy/tmp/cache/63C/E80/settings%3Astyle +3 -0
  27. data/spec/dummy/tmp/cache/702/EF0/settings%3Acompany +1 -1
  28. data/spec/dummy/tmp/cache/8AF/EF0/settings%3Adescription +1 -0
  29. data/spec/dummy/tmp/cache/902/3E0/settings%3Aproject_name +2 -0
  30. data/spec/dummy/tmp/cache/A05/190/settings%3Aproject_status +1 -0
  31. data/spec/dummy/tmp/cache/A36/6E0/settings%3Acheck_something +1 -0
  32. data/spec/dummy/tmp/cache/AE1/750/rails_settings_cached%3Amode +1 -0
  33. data/spec/dummy/tmp/cache/B43/920/rails_settings_cached%3Aangle +1 -0
  34. data/spec/dummy/tmp/cache/B5B/D00/rails_settings_cached%3Alimit +1 -0
  35. data/spec/dummy/tmp/cache/B5D/EE0/rails_settings_cached%3Atimer +1 -0
  36. data/spec/dummy/tmp/cache/B6D/3A0/rails_settings_cached%3Astyle +3 -0
  37. data/spec/dummy/tmp/cache/DE0/670/rails_settings_cached%3Adescription +1 -0
  38. data/spec/dummy/tmp/cache/E33/F60/rails_settings_cached%3Aproject_name +2 -0
  39. data/spec/dummy/tmp/cache/F36/330/rails_settings_cached%3Aproject_status +1 -0
  40. data/spec/dummy/tmp/cache/F67/B90/rails_settings_cached%3Acheck_something +1 -0
  41. data/spec/dummy/tmp/capybara/capybara-201604072218331731576536.html +110 -0
  42. data/spec/dummy/tmp/capybara/capybara-201604081032444980849427.html +110 -0
  43. data/spec/dummy/tmp/capybara/capybara-201604081033515090839056.html +110 -0
  44. data/spec/dummy/tmp/capybara/capybara-201604081035235018036538.html +110 -0
  45. data/spec/dummy/tmp/capybara/capybara-201604081035456240700789.html +110 -0
  46. data/spec/dummy/tmp/capybara/capybara-201604171939409580658412.html +167 -0
  47. data/spec/dummy/tmp/capybara/capybara-201604172001578955442533.html +167 -0
  48. data/spec/dummy/tmp/capybara/capybara-201604172002367777806457.html +167 -0
  49. data/spec/dummy/tmp/capybara/capybara-201604172004318143886680.html +167 -0
  50. data/spec/dummy/tmp/capybara/capybara-201604172005177937139040.html +167 -0
  51. data/spec/dummy/tmp/capybara/capybara-201604172053441599257667.html +167 -0
  52. data/spec/dummy/tmp/capybara/capybara-20160417205725250944476.html +167 -0
  53. data/spec/dummy/tmp/capybara/capybara-201604172057331132801259.html +167 -0
  54. data/spec/dummy/tmp/capybara/capybara-201604172118071632087268.html +167 -0
  55. data/spec/dummy/tmp/capybara/capybara-201604172127076718204966.html +168 -0
  56. data/spec/dummy/tmp/capybara/capybara-20160417213155185601243.html +168 -0
  57. data/spec/dummy/tmp/capybara/capybara-201604172132268322962171.html +168 -0
  58. data/spec/dummy/tmp/capybara/capybara-201604172134068049534551.html +168 -0
  59. data/spec/dummy/tmp/capybara/capybara-201604172134532268725182.html +168 -0
  60. data/spec/dummy/tmp/capybara/capybara-20160417213510406143193.html +168 -0
  61. data/spec/dummy/tmp/capybara/capybara-201604172137188286690681.html +168 -0
  62. data/spec/dummy/tmp/capybara/capybara-20160417214102473521215.html +167 -0
  63. data/spec/dummy/tmp/capybara/capybara-201604172142356828149817.html +167 -0
  64. data/spec/dummy/tmp/capybara/capybara-201604172224448946017859.html +168 -0
  65. data/spec/dummy/tmp/capybara/capybara-201604180843098131092841.html +168 -0
  66. data/spec/dummy/tmp/capybara/capybara-201604180904356085374829.html +167 -0
  67. data/spec/dummy/tmp/capybara/capybara-201604181000253189634139.html +167 -0
  68. data/spec/dummy/tmp/capybara/capybara-201604182056589084036047.html +167 -0
  69. data/spec/features/settings_spec.rb +103 -24
  70. data/spec/lib/rails-settings-ui/settings_form_coercible_spec.rb +139 -0
  71. data/spec/lib/rails-settings-ui/settings_form_validator_spec.rb +96 -0
  72. data/spec/spec_helper.rb +1 -0
  73. metadata +146 -36
  74. data/app/views/layouts/rails_settings_ui/application.html.haml +0 -16
  75. data/app/views/rails_settings_ui/settings/index.html.haml +0 -25
  76. data/lib/rails-settings-ui/type_converter.rb +0 -60
  77. data/lib/rails-settings-ui/value_types/array.rb +0 -19
  78. data/lib/rails-settings-ui/value_types/base.rb +0 -30
  79. data/lib/rails-settings-ui/value_types/boolean.rb +0 -16
  80. data/lib/rails-settings-ui/value_types/duration.rb +0 -17
  81. data/lib/rails-settings-ui/value_types/fixnum.rb +0 -17
  82. data/lib/rails-settings-ui/value_types/float.rb +0 -17
  83. data/lib/rails-settings-ui/value_types/hash.rb +0 -19
  84. data/lib/rails-settings-ui/value_types/string.rb +0 -11
  85. data/lib/rails-settings-ui/value_types/symbol.rb +0 -11
  86. data/spec/lib/rails-settings-ui/type_converter_spec.rb +0 -33
  87. data/spec/lib/rails-settings-ui/value_types/array_spec.rb +0 -21
  88. data/spec/lib/rails-settings-ui/value_types/base_spec.rb +0 -23
  89. data/spec/lib/rails-settings-ui/value_types/boolean_spec.rb +0 -10
  90. data/spec/lib/rails-settings-ui/value_types/duration_spec.rb +0 -19
  91. data/spec/lib/rails-settings-ui/value_types/fixnum_spec.rb +0 -17
  92. data/spec/lib/rails-settings-ui/value_types/float_spec.rb +0 -17
  93. data/spec/lib/rails-settings-ui/value_types/hash_spec.rb +0 -26
  94. data/spec/lib/rails-settings-ui/value_types/string_spec.rb +0 -10
  95. data/spec/lib/rails-settings-ui/value_types/symbol_spec.rb +0 -10
@@ -0,0 +1 @@
1
+ o: ActiveSupport::Cache::Entry: @value[: auto: manual:@created_atf1460919963.793183:@expires_in0
@@ -0,0 +1 @@
1
+ o: ActiveSupport::Cache::Entry: @valuef0.5:@created_atf1460919963.7846131:@expires_in0
@@ -0,0 +1 @@
1
+ o: ActiveSupport::Cache::Entry: @valuei�:@created_atf1460919963.7828171:@expires_in0
@@ -0,0 +1 @@
1
+ o: ActiveSupport::Cache::Entry: @valuei :@created_atf1460919963.795532:@expires_in0
@@ -0,0 +1,3 @@
1
+ o: ActiveSupport::Cache::Entry: @valueIC:!ActionController::Parameters{I"border_color:ETI" e0e0e0;TI"block_color;TI" ffffff;TI"
2
+ title;TC:-ActiveSupport::HashWithIndifferentAccess{I" font;TI" Tahoma;TI" size;TI"12;TI"
3
+ color;TI" 107821;T:@permittedF:@created_atf1460919963.786565:@expires_in0
@@ -1,2 +1,2 @@
1
1
  o: ActiveSupport::Cache::Entry: @valueI"
2
- apple:ET:@created_atf1438887064.2359722:@expires_in0
2
+ apple:ET:@created_atf1460919963.3756711:@expires_in0
@@ -0,0 +1 @@
1
+ o: ActiveSupport::Cache::Entry: @valueI"�But I must explain to you how all this mistaken idea of denouncing pleasure and praising pain was born and I will give you a complete account of the system, and expound the actual teachings of the great explorer of the truth, the master-builder of human happiness. No one rejects, dislikes, or avoids pleasure itself, because it is pleasure, but because those who do not know how to pursue pleasure rationally encounter consequences that are extremely painful.:ET:@created_atf1460919963.790886:@expires_in0
@@ -0,0 +1,2 @@
1
+ o: ActiveSupport::Cache::Entry: @valueI"
2
+ Dummy:ET:@created_atf1460919963.781043:@expires_in0
@@ -0,0 +1 @@
1
+ o: ActiveSupport::Cache::Entry: @value:
@@ -0,0 +1 @@
1
+ o: ActiveSupport::Cache::Entry: @valueT:@created_atf1460919963.7891579:@expires_in0
@@ -0,0 +1 @@
1
+ o: ActiveSupport::Cache::Entry: @value[: auto: manual:@created_atf1461003459.370663:@expires_in0
@@ -0,0 +1 @@
1
+ o: ActiveSupport::Cache::Entry: @valuef0.5:@created_atf1461003459.361057:@expires_in0
@@ -0,0 +1 @@
1
+ o: ActiveSupport::Cache::Entry: @valuei�:@created_atf1461003459.358837:@expires_in0
@@ -0,0 +1 @@
1
+ o: ActiveSupport::Cache::Entry: @valuei :@created_atf1461003459.372396:@expires_in0
@@ -0,0 +1,3 @@
1
+ o: ActiveSupport::Cache::Entry: @value{I"border_color:ETI" e0e0e0;TI"block_color;TI" ffffff;TI"
2
+ title;T{I" font;TI" Tahoma;TI" size;TI"12;TI"
3
+ color;TI" 107821;T:@created_atf1461003459.362952:@expires_in0
@@ -0,0 +1 @@
1
+ o: ActiveSupport::Cache::Entry: @valueI"�But I must explain to you how all this mistaken idea of denouncing pleasure and praising pain was born and I will give you a complete account of the system, and expound the actual teachings of the great explorer of the truth, the master-builder of human happiness. No one rejects, dislikes, or avoids pleasure itself, because it is pleasure, but because those who do not know how to pursue pleasure rationally encounter consequences that are extremely painful.:ET:@created_atf1461003459.367751:@expires_in0
@@ -0,0 +1,2 @@
1
+ o: ActiveSupport::Cache::Entry: @valueI"
2
+ Dummy:ET:@created_atf1461003459.356129:@expires_in0
@@ -0,0 +1 @@
1
+ o: ActiveSupport::Cache::Entry: @value:
@@ -0,0 +1 @@
1
+ o: ActiveSupport::Cache::Entry: @valueT:@created_atf1461003459.3653371:@expires_in0
@@ -0,0 +1,110 @@
1
+ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
2
+ <html>
3
+ <head>
4
+ <title>Rails settings</title>
5
+ <meta charset="utf-8"/>
6
+ <meta content="IE=edge,chrome=1" http-equiv="X-UA-Compatible"/>
7
+ <meta content="width=device-width, initial-scale=1, maximum-scale=1" name="viewport"/>
8
+
9
+ </head>
10
+ <body>
11
+ <div class="container">
12
+ <div class="navbar navbar-default">
13
+ <div class="container-fluid">
14
+ <div class="navbar-header">
15
+ <a class="navbar-brand" href="/">Rails settings ui</a>
16
+ </div>
17
+ </div>
18
+ </div>
19
+ <div class="row">
20
+ <ol class="breadcrumb">
21
+ <li class="active">
22
+ Settings
23
+ </li>
24
+ </ol>
25
+ <form accept-charset="UTF-8" action="/settings/update_all" class="form" method="post"><div style="display:none"><input name="utf8" type="hidden" value="&#x2713;" /><input name="_method" type="hidden" value="put" /></div>
26
+ <table class="table table-striped">
27
+ <thead>
28
+ <tr>
29
+ <th>
30
+ Description
31
+ </th>
32
+ <th>
33
+ Value
34
+ </th>
35
+ </tr>
36
+ </thead>
37
+ <tbody>
38
+ <tr data-name="project_name">
39
+ <td>
40
+ translation missing: en.settings.attributes.project_name.name
41
+ </td>
42
+ <td class="setting-value">
43
+ <div class="form-group ">
44
+ <input class="form-control" id="settings_project_name" name="settings[project_name]" type="text" value="Dummy" />
45
+ </div>
46
+ </td>
47
+ </tr>
48
+ <tr data-name="limit">
49
+ <td>
50
+ translation missing: en.settings.attributes.limit.name
51
+ </td>
52
+ <td class="setting-value">
53
+ <div class="form-group ">
54
+ <input class="form-control" id="settings_limit" name="settings[limit]" type="text" value="150" />
55
+ </div>
56
+ </td>
57
+ </tr>
58
+ <tr data-name="style">
59
+ <td>
60
+ translation missing: en.settings.attributes.style.name
61
+ </td>
62
+ <td class="setting-value">
63
+ <div class="form-group ">
64
+ <textarea class="form-control" id="settings_style" name="settings[style]" rows="10">
65
+ {&quot;border_color&quot;=&gt;&quot;e0e0e0&quot;, &quot;block_color&quot;=&gt;&quot;ffffff&quot;, &quot;title&quot;=&gt;{&quot;font&quot;=&gt;&quot;Tahoma&quot;, &quot;size&quot;=&gt;&quot;12&quot;, &quot;color&quot;=&gt;&quot;107821&quot;}}</textarea>
66
+ </div>
67
+ </td>
68
+ </tr>
69
+ <tr data-name="check_something">
70
+ <td>
71
+ Check This Out!
72
+ </td>
73
+ <td class="setting-value">
74
+ <div class="form-group ">
75
+ <input id="settings_check_something" name="settings[check_something]" type="hidden" value="off" /><input checked="checked" id="settings_check_something" name="settings[check_something]" type="checkbox" /><span class="help-block">You really should check it out!</span>
76
+ </div>
77
+ </td>
78
+ </tr>
79
+ <tr data-name="description">
80
+ <td>
81
+ translation missing: en.settings.attributes.description.name
82
+ </td>
83
+ <td class="setting-value">
84
+ <div class="form-group ">
85
+ <textarea class="form-control" id="settings_description" name="settings[description]" rows="10">
86
+ But I must explain to you how all this mistaken idea of denouncing pleasure and praising pain was born and I will give you a complete account of the system, and expound the actual teachings of the great explorer of the truth, the master-builder of human happiness. No one rejects, dislikes, or avoids pleasure itself, because it is pleasure, but because those who do not know how to pursue pleasure rationally encounter consequences that are extremely painful.</textarea>
87
+ </div>
88
+ </td>
89
+ </tr>
90
+ <tr data-name="mode">
91
+ <td>
92
+ translation missing: en.settings.attributes.mode.name
93
+ </td>
94
+ <td class="setting-value">
95
+ <div class="form-group ">
96
+ <input checked="checked" id="settings_mode_auto" name="settings[mode][auto]" style="margin: 0 10px;" type="checkbox" /><label for="settings_mode_auto" style="display: inline-block;">auto</label><input checked="checked" id="settings_mode_manual" name="settings[mode][manual]" style="margin: 0 10px;" type="checkbox" /><label for="settings_mode_manual" style="display: inline-block;">manual</label>
97
+ </div>
98
+ </td>
99
+ </tr>
100
+ </tbody>
101
+ </table>
102
+ <input class="btn btn-primary btn-lg" name="commit" type="submit" value="Save all" />
103
+ </form>
104
+
105
+ </div>
106
+ <footer></footer>
107
+ </div>
108
+ </body>
109
+ </html>
110
+
@@ -0,0 +1,110 @@
1
+ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
2
+ <html>
3
+ <head>
4
+ <title>Rails settings</title>
5
+ <meta charset="utf-8"/>
6
+ <meta content="IE=edge,chrome=1" http-equiv="X-UA-Compatible"/>
7
+ <meta content="width=device-width, initial-scale=1, maximum-scale=1" name="viewport"/>
8
+
9
+ </head>
10
+ <body>
11
+ <div class="container">
12
+ <div class="navbar navbar-default">
13
+ <div class="container-fluid">
14
+ <div class="navbar-header">
15
+ <a class="navbar-brand" href="/">Rails settings ui</a>
16
+ </div>
17
+ </div>
18
+ </div>
19
+ <div class="row">
20
+ <ol class="breadcrumb">
21
+ <li class="active">
22
+ Settings
23
+ </li>
24
+ </ol>
25
+ <form accept-charset="UTF-8" action="/settings/update_all" class="form" method="post"><div style="display:none"><input name="utf8" type="hidden" value="&#x2713;" /><input name="_method" type="hidden" value="put" /></div>
26
+ <table class="table table-striped">
27
+ <thead>
28
+ <tr>
29
+ <th>
30
+ Description
31
+ </th>
32
+ <th>
33
+ Value
34
+ </th>
35
+ </tr>
36
+ </thead>
37
+ <tbody>
38
+ <tr data-name="project_name">
39
+ <td>
40
+ translation missing: en.settings.attributes.project_name.name
41
+ </td>
42
+ <td class="setting-value">
43
+ <div class="form-group ">
44
+ <input class="form-control" id="settings_project_name" name="settings[project_name]" type="text" value="Dummy" />
45
+ </div>
46
+ </td>
47
+ </tr>
48
+ <tr data-name="limit">
49
+ <td>
50
+ translation missing: en.settings.attributes.limit.name
51
+ </td>
52
+ <td class="setting-value">
53
+ <div class="form-group ">
54
+ <input class="form-control" id="settings_limit" name="settings[limit]" type="text" value="150" />
55
+ </div>
56
+ </td>
57
+ </tr>
58
+ <tr data-name="style">
59
+ <td>
60
+ translation missing: en.settings.attributes.style.name
61
+ </td>
62
+ <td class="setting-value">
63
+ <div class="form-group ">
64
+ <textarea class="form-control" id="settings_style" name="settings[style]" rows="10">
65
+ {&quot;border_color&quot;=&gt;&quot;e0e0e0&quot;, &quot;block_color&quot;=&gt;&quot;ffffff&quot;, &quot;title&quot;=&gt;{&quot;font&quot;=&gt;&quot;Tahoma&quot;, &quot;size&quot;=&gt;&quot;12&quot;, &quot;color&quot;=&gt;&quot;107821&quot;}}</textarea>
66
+ </div>
67
+ </td>
68
+ </tr>
69
+ <tr data-name="check_something">
70
+ <td>
71
+ Check This Out!
72
+ </td>
73
+ <td class="setting-value">
74
+ <div class="form-group ">
75
+ <input id="settings_check_something" name="settings[check_something]" type="hidden" value="off" /><input checked="checked" id="settings_check_something" name="settings[check_something]" type="checkbox" /><span class="help-block">You really should check it out!</span>
76
+ </div>
77
+ </td>
78
+ </tr>
79
+ <tr data-name="description">
80
+ <td>
81
+ translation missing: en.settings.attributes.description.name
82
+ </td>
83
+ <td class="setting-value">
84
+ <div class="form-group ">
85
+ <textarea class="form-control" id="settings_description" name="settings[description]" rows="10">
86
+ But I must explain to you how all this mistaken idea of denouncing pleasure and praising pain was born and I will give you a complete account of the system, and expound the actual teachings of the great explorer of the truth, the master-builder of human happiness. No one rejects, dislikes, or avoids pleasure itself, because it is pleasure, but because those who do not know how to pursue pleasure rationally encounter consequences that are extremely painful.</textarea>
87
+ </div>
88
+ </td>
89
+ </tr>
90
+ <tr data-name="mode">
91
+ <td>
92
+ translation missing: en.settings.attributes.mode.name
93
+ </td>
94
+ <td class="setting-value">
95
+ <div class="form-group ">
96
+ <input checked="checked" id="settings_mode_auto" name="settings[mode][auto]" style="margin: 0 10px;" type="checkbox" /><label for="settings_mode_auto" style="display: inline-block;">auto</label><input checked="checked" id="settings_mode_manual" name="settings[mode][manual]" style="margin: 0 10px;" type="checkbox" /><label for="settings_mode_manual" style="display: inline-block;">manual</label>
97
+ </div>
98
+ </td>
99
+ </tr>
100
+ </tbody>
101
+ </table>
102
+ <input class="btn btn-primary btn-lg" name="commit" type="submit" value="Save all" />
103
+ </form>
104
+
105
+ </div>
106
+ <footer></footer>
107
+ </div>
108
+ </body>
109
+ </html>
110
+
@@ -0,0 +1,110 @@
1
+ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
2
+ <html>
3
+ <head>
4
+ <title>Rails settings</title>
5
+ <meta charset="utf-8"/>
6
+ <meta content="IE=edge,chrome=1" http-equiv="X-UA-Compatible"/>
7
+ <meta content="width=device-width, initial-scale=1, maximum-scale=1" name="viewport"/>
8
+
9
+ </head>
10
+ <body>
11
+ <div class="container">
12
+ <div class="navbar navbar-default">
13
+ <div class="container-fluid">
14
+ <div class="navbar-header">
15
+ <a class="navbar-brand" href="/">Rails settings ui</a>
16
+ </div>
17
+ </div>
18
+ </div>
19
+ <div class="row">
20
+ <ol class="breadcrumb">
21
+ <li class="active">
22
+ Settings
23
+ </li>
24
+ </ol>
25
+ <form accept-charset="UTF-8" action="/settings/update_all" class="form" method="post"><div style="display:none"><input name="utf8" type="hidden" value="&#x2713;" /><input name="_method" type="hidden" value="put" /></div>
26
+ <table class="table table-striped">
27
+ <thead>
28
+ <tr>
29
+ <th>
30
+ Description
31
+ </th>
32
+ <th>
33
+ Value
34
+ </th>
35
+ </tr>
36
+ </thead>
37
+ <tbody>
38
+ <tr data-name="project_name">
39
+ <td>
40
+ translation missing: en.settings.attributes.project_name.name
41
+ </td>
42
+ <td class="setting-value">
43
+ <div class="form-group ">
44
+ <input class="form-control" id="settings_project_name" name="settings[project_name]" type="text" value="Dummy" />
45
+ </div>
46
+ </td>
47
+ </tr>
48
+ <tr data-name="limit">
49
+ <td>
50
+ translation missing: en.settings.attributes.limit.name
51
+ </td>
52
+ <td class="setting-value">
53
+ <div class="form-group ">
54
+ <input class="form-control" id="settings_limit" name="settings[limit]" type="text" value="150" />
55
+ </div>
56
+ </td>
57
+ </tr>
58
+ <tr data-name="style">
59
+ <td>
60
+ translation missing: en.settings.attributes.style.name
61
+ </td>
62
+ <td class="setting-value">
63
+ <div class="form-group ">
64
+ <textarea class="form-control" id="settings_style" name="settings[style]" rows="10">
65
+ {&quot;border_color&quot;=&gt;&quot;e0e0e0&quot;, &quot;block_color&quot;=&gt;&quot;ffffff&quot;, &quot;title&quot;=&gt;{&quot;font&quot;=&gt;&quot;Tahoma&quot;, &quot;size&quot;=&gt;&quot;12&quot;, &quot;color&quot;=&gt;&quot;107821&quot;}}</textarea>
66
+ </div>
67
+ </td>
68
+ </tr>
69
+ <tr data-name="check_something">
70
+ <td>
71
+ Check This Out!
72
+ </td>
73
+ <td class="setting-value">
74
+ <div class="form-group ">
75
+ <input id="settings_check_something" name="settings[check_something]" type="hidden" value="off" /><input checked="checked" id="settings_check_something" name="settings[check_something]" type="checkbox" /><span class="help-block">You really should check it out!</span>
76
+ </div>
77
+ </td>
78
+ </tr>
79
+ <tr data-name="description">
80
+ <td>
81
+ translation missing: en.settings.attributes.description.name
82
+ </td>
83
+ <td class="setting-value">
84
+ <div class="form-group ">
85
+ <textarea class="form-control" id="settings_description" name="settings[description]" rows="10">
86
+ But I must explain to you how all this mistaken idea of denouncing pleasure and praising pain was born and I will give you a complete account of the system, and expound the actual teachings of the great explorer of the truth, the master-builder of human happiness. No one rejects, dislikes, or avoids pleasure itself, because it is pleasure, but because those who do not know how to pursue pleasure rationally encounter consequences that are extremely painful.</textarea>
87
+ </div>
88
+ </td>
89
+ </tr>
90
+ <tr data-name="mode">
91
+ <td>
92
+ translation missing: en.settings.attributes.mode.name
93
+ </td>
94
+ <td class="setting-value">
95
+ <div class="form-group ">
96
+ <input checked="checked" id="settings_mode_auto" name="settings[mode][auto]" style="margin: 0 10px;" type="checkbox" /><label for="settings_mode_auto" style="display: inline-block;">auto</label><input checked="checked" id="settings_mode_manual" name="settings[mode][manual]" style="margin: 0 10px;" type="checkbox" /><label for="settings_mode_manual" style="display: inline-block;">manual</label>
97
+ </div>
98
+ </td>
99
+ </tr>
100
+ </tbody>
101
+ </table>
102
+ <input class="btn btn-primary btn-lg" name="commit" type="submit" value="Save all" />
103
+ </form>
104
+
105
+ </div>
106
+ <footer></footer>
107
+ </div>
108
+ </body>
109
+ </html>
110
+
@@ -0,0 +1,110 @@
1
+ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
2
+ <html>
3
+ <head>
4
+ <title>Rails settings</title>
5
+ <meta charset="utf-8"/>
6
+ <meta content="IE=edge,chrome=1" http-equiv="X-UA-Compatible"/>
7
+ <meta content="width=device-width, initial-scale=1, maximum-scale=1" name="viewport"/>
8
+
9
+ </head>
10
+ <body>
11
+ <div class="container">
12
+ <div class="navbar navbar-default">
13
+ <div class="container-fluid">
14
+ <div class="navbar-header">
15
+ <a class="navbar-brand" href="/">Rails settings ui</a>
16
+ </div>
17
+ </div>
18
+ </div>
19
+ <div class="row">
20
+ <ol class="breadcrumb">
21
+ <li class="active">
22
+ Settings
23
+ </li>
24
+ </ol>
25
+ <form accept-charset="UTF-8" action="/settings/update_all" class="form" method="post"><div style="display:none"><input name="utf8" type="hidden" value="&#x2713;" /><input name="_method" type="hidden" value="put" /></div>
26
+ <table class="table table-striped">
27
+ <thead>
28
+ <tr>
29
+ <th>
30
+ Description
31
+ </th>
32
+ <th>
33
+ Value
34
+ </th>
35
+ </tr>
36
+ </thead>
37
+ <tbody>
38
+ <tr data-name="project_name">
39
+ <td>
40
+ translation missing: en.settings.attributes.project_name.name
41
+ </td>
42
+ <td class="setting-value">
43
+ <div class="form-group ">
44
+ <input class="form-control" id="settings_project_name" name="settings[project_name]" type="text" value="Dummy" />
45
+ </div>
46
+ </td>
47
+ </tr>
48
+ <tr data-name="limit">
49
+ <td>
50
+ translation missing: en.settings.attributes.limit.name
51
+ </td>
52
+ <td class="setting-value">
53
+ <div class="form-group ">
54
+ <input class="form-control" id="settings_limit" name="settings[limit]" type="text" value="150" />
55
+ </div>
56
+ </td>
57
+ </tr>
58
+ <tr data-name="style">
59
+ <td>
60
+ translation missing: en.settings.attributes.style.name
61
+ </td>
62
+ <td class="setting-value">
63
+ <div class="form-group ">
64
+ <textarea class="form-control" id="settings_style" name="settings[style]" rows="10">
65
+ {&quot;border_color&quot;=&gt;&quot;e0e0e0&quot;, &quot;block_color&quot;=&gt;&quot;ffffff&quot;, &quot;title&quot;=&gt;{&quot;font&quot;=&gt;&quot;Tahoma&quot;, &quot;size&quot;=&gt;&quot;12&quot;, &quot;color&quot;=&gt;&quot;107821&quot;}}</textarea>
66
+ </div>
67
+ </td>
68
+ </tr>
69
+ <tr data-name="check_something">
70
+ <td>
71
+ Check This Out!
72
+ </td>
73
+ <td class="setting-value">
74
+ <div class="form-group ">
75
+ <input id="settings_check_something" name="settings[check_something]" type="hidden" value="off" /><input checked="checked" id="settings_check_something" name="settings[check_something]" type="checkbox" /><span class="help-block">You really should check it out!</span>
76
+ </div>
77
+ </td>
78
+ </tr>
79
+ <tr data-name="description">
80
+ <td>
81
+ translation missing: en.settings.attributes.description.name
82
+ </td>
83
+ <td class="setting-value">
84
+ <div class="form-group ">
85
+ <textarea class="form-control" id="settings_description" name="settings[description]" rows="10">
86
+ But I must explain to you how all this mistaken idea of denouncing pleasure and praising pain was born and I will give you a complete account of the system, and expound the actual teachings of the great explorer of the truth, the master-builder of human happiness. No one rejects, dislikes, or avoids pleasure itself, because it is pleasure, but because those who do not know how to pursue pleasure rationally encounter consequences that are extremely painful.</textarea>
87
+ </div>
88
+ </td>
89
+ </tr>
90
+ <tr data-name="mode">
91
+ <td>
92
+ translation missing: en.settings.attributes.mode.name
93
+ </td>
94
+ <td class="setting-value">
95
+ <div class="form-group ">
96
+ <input checked="checked" id="settings_mode_auto" name="settings[mode][auto]" style="margin: 0 10px;" type="checkbox" /><label for="settings_mode_auto" style="display: inline-block;">auto</label><input checked="checked" id="settings_mode_manual" name="settings[mode][manual]" style="margin: 0 10px;" type="checkbox" /><label for="settings_mode_manual" style="display: inline-block;">manual</label>
97
+ </div>
98
+ </td>
99
+ </tr>
100
+ </tbody>
101
+ </table>
102
+ <input class="btn btn-primary btn-lg" name="commit" type="submit" value="Save all" />
103
+ </form>
104
+
105
+ </div>
106
+ <footer></footer>
107
+ </div>
108
+ </body>
109
+ </html>
110
+