rails-settings-ui 1.2.0 → 1.3.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (57) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +23 -3
  3. data/app/controllers/rails_settings_ui/application_controller.rb +1 -0
  4. data/app/controllers/rails_settings_ui/settings_controller.rb +2 -2
  5. data/app/helpers/rails_settings_ui/settings_helper.rb +32 -14
  6. data/app/views/rails_settings_ui/settings/index.html.erb +5 -1
  7. data/config/locales/en.yml +1 -0
  8. data/config/locales/ru.yml +1 -0
  9. data/lib/rails-settings-ui.rb +3 -0
  10. data/lib/rails-settings-ui/settings_form_validator.rb +1 -1
  11. data/lib/rails-settings-ui/version.rb +1 -1
  12. data/spec/dummy/app/models/settings.rb +1 -0
  13. data/spec/dummy/app/views/layouts/admin.html.erb +14 -0
  14. data/spec/dummy/config/locales/en.yml +2 -0
  15. data/spec/dummy/db/development.sqlite3 +0 -0
  16. data/spec/dummy/log/development.log +60 -0
  17. data/spec/dummy/log/test.log +20483 -0
  18. data/spec/dummy/tmp/cache/AE1/750/rails_settings_cached%3Amode +1 -1
  19. data/spec/dummy/tmp/cache/B43/920/rails_settings_cached%3Aangle +1 -1
  20. data/spec/dummy/tmp/cache/B5B/D00/rails_settings_cached%3Alimit +1 -1
  21. data/spec/dummy/tmp/cache/B5D/EE0/rails_settings_cached%3Atimer +1 -1
  22. data/spec/dummy/tmp/cache/B6D/3A0/rails_settings_cached%3Astyle +1 -1
  23. data/spec/dummy/tmp/cache/BAC/5E0/rails_settings_cached%3Alocale +1 -0
  24. data/spec/dummy/tmp/cache/C33/A30/rails_settings_cached%3Acompany +1 -1
  25. data/spec/dummy/tmp/cache/DE0/670/rails_settings_cached%3Adescription +1 -1
  26. data/spec/dummy/tmp/cache/E33/F60/rails_settings_cached%3Aproject_name +1 -1
  27. data/spec/dummy/tmp/cache/F36/330/rails_settings_cached%3Aproject_status +1 -1
  28. data/spec/dummy/tmp/cache/F67/B90/rails_settings_cached%3Acheck_something +1 -1
  29. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/2m/2mtD81TQKwZKYJPx7D-XKD3k1WOqcfZ-VuzuTvKUsnE.cache +0 -0
  30. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/8X/8XSMVfKu_mdz-Tnutam6ieMSaf9oUYYfTscBMES5iSw.cache +0 -0
  31. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/99/99RXuREqkVrlX_fspL_j2Mzxc3E9GKBSfahbI-Wouro.cache +1 -0
  32. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/9r/9ryO-j4fsAK10KK2WOeTMoSpBDI8QFF0X-AOBKK4sCg.cache +1 -0
  33. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/MH/MHrbyNUPDlovo5rA3yOTVtkDC_EYyUESo1wUqSuJxJg.cache +0 -0
  34. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/aa/aaRzgJ-SA_NFUanJckPUnmRmyURcU_n3-2_UQsoGo9M.cache +0 -0
  35. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/ak/akSvUGUaxnoVGDWdSTnvrgDQRtEiEipDI3gbMG9ORr4.cache +1 -0
  36. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/hS/hSJuCK0Wt8bAyLl9wK0nEz8iAnfqsq_09EjyGFnwb0k.cache +0 -0
  37. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/hj/hj8Ir9wcVSy1KYrnWu9bpD24vDhCG3tvt-nKbNxb1Wg.cache +2 -0
  38. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/lr/lrfZzi11-IUgbRQjcPKfBaqrgHPJvn-AGshjeOrA66Q.cache +0 -0
  39. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/oC/oCsZTGZyV4kH8Y4OeSDUdrwfkJFPzTODZjuBKZB8oGQ.cache +2 -0
  40. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/q6/q6BYa32YJF11eGVapO4ouNl6gayPIsARgMavlzZmoi0.cache +2 -0
  41. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/sH/sHrKkHl6SYOhHWH6F-guhFIo6QPeiF_lJXwhFpUHYjE.cache +1 -0
  42. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/wU/wUGpvpRkfKAEkldpJE-nG9P9aJA7ccQGEiNrACALtOM.cache +1 -0
  43. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/wg/wg2F3GFeFMqoGnUkLcIp-eyb1Sc2tuoMmTXvOTEl6E8.cache +0 -0
  44. data/spec/dummy/tmp/cache/assets/sprockets/v3.0/x7/x7KkTV3ibfIEysLB_ug5bfmnn2VLV_BldukPR3EoPBk.cache +2 -0
  45. data/spec/dummy/tmp/capybara/capybara-201703120954111766451845.html +140 -0
  46. data/spec/dummy/tmp/capybara/capybara-201703121413344899095019.html +151 -0
  47. data/spec/dummy/tmp/capybara/capybara-201703121415037061813779.html +151 -0
  48. data/spec/dummy/tmp/capybara/capybara-20170312141533645266631.html +151 -0
  49. data/spec/dummy/tmp/capybara/capybara-201703121419481211935135.html +151 -0
  50. data/spec/dummy/tmp/capybara/capybara-201703121422289922476182.html +151 -0
  51. data/spec/dummy/tmp/capybara/capybara-201703181810383665834444.html +138 -0
  52. data/spec/features/settings_spec.rb +25 -2
  53. data/spec/lib/rails-settings-ui/settings_form_coercible_spec.rb +0 -2
  54. data/spec/lib/rails-settings-ui/settings_form_validator_spec.rb +1 -3
  55. data/spec/requests/settings_requests_spec.rb +23 -0
  56. data/spec/spec_helper.rb +15 -2
  57. metadata +118 -8
@@ -1 +1 @@
1
- o: ActiveSupport::Cache::Entry: @value: manual:@created_atf1485706040.5788832:@expires_in0
1
+ o: ActiveSupport::Cache::Entry: @value[: auto: manual:@created_atf1489910058.823075:@expires_in0
@@ -1 +1 @@
1
- o: ActiveSupport::Cache::Entry: @valuef0.5:@created_atf1485706040.562813:@expires_in0
1
+ o: ActiveSupport::Cache::Entry: @valuef0.5:@created_atf1489910058.800116:@expires_in0
@@ -1 +1 @@
1
- o: ActiveSupport::Cache::Entry: @valuei�:@created_atf1485706040.559124:@expires_in0
1
+ o: ActiveSupport::Cache::Entry: @valuei�:@created_atf1489910058.8133981:@expires_in0
@@ -1 +1 @@
1
- o: ActiveSupport::Cache::Entry: @valuei :@created_atf1485706040.582371:@expires_in0
1
+ o: ActiveSupport::Cache::Entry: @valuei :@created_atf1489910058.8405719:@expires_in0
@@ -1,3 +1,3 @@
1
1
  o: ActiveSupport::Cache::Entry: @value{I"border_color:ETI" e0e0e0;TI"block_color;TI" ffffff;TI"
2
2
  title;T{I" font;TI" Tahoma;TI" size;TI"12;TI"
3
- color;TI" 107821;T:@created_atf1485706040.565866:@expires_in0
3
+ color;TI" 107821;T:@created_atf1489910058.836399:@expires_in0
@@ -0,0 +1 @@
1
+ o: ActiveSupport::Cache::Entry: @value[:en:ru:@created_atf1489910058.817368:@expires_in0
@@ -1,2 +1,2 @@
1
1
  o: ActiveSupport::Cache::Entry: @valueI"
2
- apple:ET:@created_atf1485706039.8870661:@expires_in0
2
+ apple:ET:@created_atf1489910058.964563:@expires_in0
@@ -1 +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_atf1485706040.573457:@expires_in0
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_atf1489910058.806577:@expires_in0
@@ -1,2 +1,2 @@
1
1
  o: ActiveSupport::Cache::Entry: @valueI"
2
- Dummy:ET:@created_atf1485706040.556405:@expires_in0
2
+ Dummy:ET:@created_atf1489910058.8274791:@expires_in0
@@ -1 +1 @@
1
- o: ActiveSupport::Cache::Entry: @value:
1
+ o: ActiveSupport::Cache::Entry: @value:
@@ -1 +1 @@
1
- o: ActiveSupport::Cache::Entry: @valueT:@created_atf1485706040.569942:@expires_in0
1
+ o: ActiveSupport::Cache::Entry: @valueT:@created_atf1489910058.802637:@expires_in0
@@ -0,0 +1 @@
1
+ I"�app/assets/stylesheets/application.css?type=text/css&pipeline=self&id=5a5027b774d02833fa8fc56a2a995cb4d96e6f08e21cc9c4eac26b04c34cd4d0:ET
@@ -0,0 +1 @@
1
+ I"�app/assets/javascripts/application.js?type=application/javascript&id=68b1be3d013e5fbfd851ed19b014c3152cc167d1951768a1118856c9341ac151:ET
@@ -0,0 +1 @@
1
+ I"}app/assets/stylesheets/application.css?type=text/css&id=e17984ab93c3ebe150255bd7f9e6625d0d878616dd1e957977e36ab1f6dfe6d6:ET
@@ -0,0 +1,2 @@
1
+ [o:Set:
2
+ @hash} I"environment-version:ETTI"environment-paths;TTI"rails-env;TTI"Zprocessors:type=application/javascript&file_type=application/javascript&pipeline=self;TTI"8file-digest://app/assets/javascripts/application.js;TTI")file-digest://app/assets/javascripts;TTF
@@ -0,0 +1,2 @@
1
+ [o:Set:
2
+ @hash} I"environment-version:ETTI"environment-paths;TTI"rails-env;TTI"Lprocessors:type=application/javascript&file_type=application/javascript;TTI"8file-digest://app/assets/javascripts/application.js;TTI"Zprocessors:type=application/javascript&file_type=application/javascript&pipeline=self;TTI")file-digest://app/assets/javascripts;TTF
@@ -0,0 +1,2 @@
1
+ [o:Set:
2
+ @hash} I"environment-version:ETTI"environment-paths;TTI"rails-env;TTI">processors:type=text/css&file_type=text/css&pipeline=self;TTI"9file-digest://app/assets/stylesheets/application.css;TTI")file-digest://app/assets/stylesheets;TTF
@@ -0,0 +1 @@
1
+ I"�app/assets/javascripts/application.js?type=application/javascript&pipeline=self&id=e4c2fa401042cf99f2d66ed4ea38b2bfc37bf395d1420a1c4cf90db0ee2da756:ET
@@ -0,0 +1 @@
1
+ "%��Rm�v�S3.��O�L���ڹc�ƕq�=_j�
@@ -0,0 +1,2 @@
1
+ [o:Set:
2
+ @hash} I"environment-version:ETTI"environment-paths;TTI"rails-env;TTI"0processors:type=text/css&file_type=text/css;TTI"9file-digest://app/assets/stylesheets/application.css;TTI">processors:type=text/css&file_type=text/css&pipeline=self;TTI")file-digest://app/assets/stylesheets;TTF
@@ -0,0 +1,140 @@
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 class="form" action="/settings/update_all" accept-charset="UTF-8" method="post"><input name="utf8" type="hidden" value="&#x2713;" /><input type="hidden" name="_method" value="put" />
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 type="text" name="settings[project_name]" id="settings_project_name" value="Dummy" class="form-control" />
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 type="text" name="settings[limit]" id="settings_limit" value="150" class="form-control" />
55
+ </div>
56
+ </td>
57
+ </tr>
58
+ <tr data-name="angle">
59
+ <td>
60
+ translation missing: en.settings.attributes.angle.name
61
+ </td>
62
+ <td class="setting-value">
63
+ <div class="form-group ">
64
+ <input type="text" name="settings[angle]" id="settings_angle" value="0.5" class="form-control" />
65
+ </div>
66
+ </td>
67
+ </tr>
68
+ <tr data-name="style">
69
+ <td>
70
+ translation missing: en.settings.attributes.style.name
71
+ </td>
72
+ <td class="setting-value">
73
+ <div class="form-group ">
74
+ <textarea name="settings[style]" id="settings_style" class="form-control" rows="10">
75
+ {&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>
76
+ </div>
77
+ </td>
78
+ </tr>
79
+ <tr data-name="check_something">
80
+ <td>
81
+ Check This Out!
82
+ </td>
83
+ <td class="setting-value">
84
+ <div class="form-group ">
85
+ <input type="hidden" name="settings[check_something]" id="settings_check_something" value="off" /><input type="checkbox" name="settings[check_something]" id="settings_check_something" checked="checked" /><span class="help-block">You really should check it out!</span>
86
+ </div>
87
+ </td>
88
+ </tr>
89
+ <tr data-name="description">
90
+ <td>
91
+ translation missing: en.settings.attributes.description.name
92
+ </td>
93
+ <td class="setting-value">
94
+ <div class="form-group ">
95
+ <textarea name="settings[description]" id="settings_description" class="form-control" rows="10">
96
+ 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>
97
+ </div>
98
+ </td>
99
+ </tr>
100
+ <tr data-name="mode">
101
+ <td>
102
+ Mode
103
+ </td>
104
+ <td class="setting-value">
105
+ <div class="form-group ">
106
+ <input type="checkbox" name="settings[mode][auto]" id="settings_mode_auto" style="margin: 0 10px;" checked="checked" /><label style="display: inline-block;" for="settings_mode_auto">Auto</label><input type="checkbox" name="settings[mode][manual]" id="settings_mode_manual" style="margin: 0 10px;" checked="checked" /><label style="display: inline-block;" for="settings_mode_manual">Manual</label><span class="help-block">This is some help text.</span>
107
+ </div>
108
+ </td>
109
+ </tr>
110
+ <tr data-name="timer">
111
+ <td>
112
+ translation missing: en.settings.attributes.timer.name
113
+ </td>
114
+ <td class="setting-value">
115
+ <div class="form-group ">
116
+ <input type="text" name="settings[timer]" id="settings_timer" value="7200" class="form-control" />
117
+ </div>
118
+ </td>
119
+ </tr>
120
+ <tr data-name="project_status">
121
+ <td>
122
+ translation missing: en.settings.attributes.project_status.name
123
+ </td>
124
+ <td class="setting-value">
125
+ <div class="form-group ">
126
+ <input type="text" name="settings[project_status]" id="settings_project_status" value="finished" class="form-control" />
127
+ </div>
128
+ </td>
129
+ </tr>
130
+ </tbody>
131
+ </table>
132
+ <input type="submit" name="commit" value="Save all" class="btn btn-primary btn-lg" data-disable-with="Save all" />
133
+ </form>
134
+
135
+ </div>
136
+ <footer></footer>
137
+ </div>
138
+ </body>
139
+ </html>
140
+
@@ -0,0 +1,151 @@
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 class="form" action="/settings/update_all" accept-charset="UTF-8" method="post"><input name="utf8" type="hidden" value="&#x2713;" /><input type="hidden" name="_method" value="put" />
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 type="text" name="settings[project_name]" id="settings_project_name" value="Dummy" class="form-control" />
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 type="text" name="settings[limit]" id="settings_limit" value="150" class="form-control" />
55
+ </div>
56
+ </td>
57
+ </tr>
58
+ <tr data-name="angle">
59
+ <td>
60
+ translation missing: en.settings.attributes.angle.name
61
+ </td>
62
+ <td class="setting-value">
63
+ <div class="form-group ">
64
+ <input type="text" name="settings[angle]" id="settings_angle" value="0.5" class="form-control" />
65
+ </div>
66
+ </td>
67
+ </tr>
68
+ <tr data-name="style">
69
+ <td>
70
+ translation missing: en.settings.attributes.style.name
71
+ </td>
72
+ <td class="setting-value">
73
+ <div class="form-group ">
74
+ <textarea name="settings[style]" id="settings_style" class="form-control" rows="10">
75
+ {&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>
76
+ </div>
77
+ </td>
78
+ </tr>
79
+ <tr data-name="check_something">
80
+ <td>
81
+ Check This Out!
82
+ </td>
83
+ <td class="setting-value">
84
+ <div class="form-group ">
85
+ <input type="hidden" name="settings[check_something]" id="settings_check_something" value="off" /><input type="checkbox" name="settings[check_something]" id="settings_check_something" checked="checked" /><span class="help-block">You really should check it out!</span>
86
+ </div>
87
+ </td>
88
+ </tr>
89
+ <tr data-name="description">
90
+ <td>
91
+ translation missing: en.settings.attributes.description.name
92
+ </td>
93
+ <td class="setting-value">
94
+ <div class="form-group ">
95
+ <textarea name="settings[description]" id="settings_description" class="form-control" rows="10">
96
+ 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>
97
+ </div>
98
+ </td>
99
+ </tr>
100
+ <tr data-name="mode">
101
+ <td>
102
+ Mode
103
+ </td>
104
+ <td class="setting-value">
105
+ <div class="form-group ">
106
+ <input type="checkbox" name="settings[mode][auto]" id="settings_mode_auto" style="margin: 0 10px;" checked="checked" /><label style="display: inline-block;" for="settings_mode_auto">Auto</label><input type="checkbox" name="settings[mode][manual]" id="settings_mode_manual" style="margin: 0 10px;" checked="checked" /><label style="display: inline-block;" for="settings_mode_manual">Manual</label><span class="help-block">This is some help text.</span>
107
+ </div>
108
+ </td>
109
+ </tr>
110
+ <tr data-name="timer">
111
+ <td>
112
+ translation missing: en.settings.attributes.timer.name
113
+ </td>
114
+ <td class="setting-value">
115
+ <div class="form-group ">
116
+ <input type="text" name="settings[timer]" id="settings_timer" value="7200" class="form-control" />
117
+ </div>
118
+ </td>
119
+ </tr>
120
+ <tr data-name="project_status">
121
+ <td>
122
+ translation missing: en.settings.attributes.project_status.name
123
+ </td>
124
+ <td class="setting-value">
125
+ <div class="form-group ">
126
+ <input type="text" name="settings[project_status]" id="settings_project_status" value="finished" class="form-control" />
127
+ </div>
128
+ </td>
129
+ </tr>
130
+ <tr data-name="locale">
131
+ <td>
132
+ translation missing: en.settings.attributes.locale.name
133
+ </td>
134
+ <td class="setting-value">
135
+ <div class="form-group ">
136
+ <select name="settings[locale]" id="settings_locale" class="form-control"><option en="en" value=""></option>
137
+ <option ru="ru" value=""></option></select>
138
+ </div>
139
+ </td>
140
+ </tr>
141
+ </tbody>
142
+ </table>
143
+ <input type="submit" name="commit" value="Save all" class="btn btn-primary btn-lg" data-disable-with="Save all" />
144
+ </form>
145
+
146
+ </div>
147
+ <footer></footer>
148
+ </div>
149
+ </body>
150
+ </html>
151
+
@@ -0,0 +1,151 @@
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 class="form" action="/settings/update_all" accept-charset="UTF-8" method="post"><input name="utf8" type="hidden" value="&#x2713;" /><input type="hidden" name="_method" value="put" />
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 type="text" name="settings[project_name]" id="settings_project_name" value="Dummy" class="form-control" />
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 type="text" name="settings[limit]" id="settings_limit" value="150" class="form-control" />
55
+ </div>
56
+ </td>
57
+ </tr>
58
+ <tr data-name="angle">
59
+ <td>
60
+ translation missing: en.settings.attributes.angle.name
61
+ </td>
62
+ <td class="setting-value">
63
+ <div class="form-group ">
64
+ <input type="text" name="settings[angle]" id="settings_angle" value="0.5" class="form-control" />
65
+ </div>
66
+ </td>
67
+ </tr>
68
+ <tr data-name="style">
69
+ <td>
70
+ translation missing: en.settings.attributes.style.name
71
+ </td>
72
+ <td class="setting-value">
73
+ <div class="form-group ">
74
+ <textarea name="settings[style]" id="settings_style" class="form-control" rows="10">
75
+ {&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>
76
+ </div>
77
+ </td>
78
+ </tr>
79
+ <tr data-name="check_something">
80
+ <td>
81
+ Check This Out!
82
+ </td>
83
+ <td class="setting-value">
84
+ <div class="form-group ">
85
+ <input type="hidden" name="settings[check_something]" id="settings_check_something" value="off" /><input type="checkbox" name="settings[check_something]" id="settings_check_something" checked="checked" /><span class="help-block">You really should check it out!</span>
86
+ </div>
87
+ </td>
88
+ </tr>
89
+ <tr data-name="description">
90
+ <td>
91
+ translation missing: en.settings.attributes.description.name
92
+ </td>
93
+ <td class="setting-value">
94
+ <div class="form-group ">
95
+ <textarea name="settings[description]" id="settings_description" class="form-control" rows="10">
96
+ 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>
97
+ </div>
98
+ </td>
99
+ </tr>
100
+ <tr data-name="mode">
101
+ <td>
102
+ Mode
103
+ </td>
104
+ <td class="setting-value">
105
+ <div class="form-group ">
106
+ <input type="checkbox" name="settings[mode][auto]" id="settings_mode_auto" style="margin: 0 10px;" checked="checked" /><label style="display: inline-block;" for="settings_mode_auto">Auto</label><input type="checkbox" name="settings[mode][manual]" id="settings_mode_manual" style="margin: 0 10px;" checked="checked" /><label style="display: inline-block;" for="settings_mode_manual">Manual</label><span class="help-block">This is some help text.</span>
107
+ </div>
108
+ </td>
109
+ </tr>
110
+ <tr data-name="timer">
111
+ <td>
112
+ translation missing: en.settings.attributes.timer.name
113
+ </td>
114
+ <td class="setting-value">
115
+ <div class="form-group ">
116
+ <input type="text" name="settings[timer]" id="settings_timer" value="7200" class="form-control" />
117
+ </div>
118
+ </td>
119
+ </tr>
120
+ <tr data-name="project_status">
121
+ <td>
122
+ translation missing: en.settings.attributes.project_status.name
123
+ </td>
124
+ <td class="setting-value">
125
+ <div class="form-group ">
126
+ <input type="text" name="settings[project_status]" id="settings_project_status" value="finished" class="form-control" />
127
+ </div>
128
+ </td>
129
+ </tr>
130
+ <tr data-name="locale">
131
+ <td>
132
+ translation missing: en.settings.attributes.locale.name
133
+ </td>
134
+ <td class="setting-value">
135
+ <div class="form-group ">
136
+ <select name="settings[locale]" id="settings_locale" class="form-control"><option en="en" value=""></option>
137
+ <option ru="ru" value=""></option></select>
138
+ </div>
139
+ </td>
140
+ </tr>
141
+ </tbody>
142
+ </table>
143
+ <input type="submit" name="commit" value="Save all" class="btn btn-primary btn-lg" data-disable-with="Save all" />
144
+ </form>
145
+
146
+ </div>
147
+ <footer></footer>
148
+ </div>
149
+ </body>
150
+ </html>
151
+