drg_cms 0.6.1.5 → 0.6.1.11

Sign up to get free protection for your applications and to get access to all the features.
Files changed (69) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +203 -24
  3. data/app/assets/fonts/ibm-plex-sans-300.woff2 +0 -0
  4. data/app/assets/fonts/ibm-plex-sans-400.woff2 +0 -0
  5. data/app/assets/fonts/ibm-plex-sans-500.woff2 +0 -0
  6. data/app/assets/fonts/ibm-plex-sans-600.woff2 +0 -0
  7. data/app/assets/fonts/ibm-plex-sans-700.woff2 +0 -0
  8. data/app/assets/fonts/ibm-plex-sans-italic.woff2 +0 -0
  9. data/app/assets/javascripts/drg_cms/drg_cms.js +253 -106
  10. data/app/assets/stylesheets/drg_cms/drg_cms.css +670 -521
  11. data/app/assets/stylesheets/drg_cms_application.css +1 -1
  12. data/app/assets/stylesheets/drg_cms_cms.css +1 -4
  13. data/app/controllers/cmsedit_controller.rb +33 -211
  14. data/app/controllers/dc_application_controller.rb +98 -22
  15. data/app/controllers/dc_common_controller.rb +9 -22
  16. data/app/controls/browse_models_control.rb +18 -27
  17. data/app/controls/cmsedit_control.rb +129 -0
  18. data/app/controls/dc_help_control.rb +1 -1
  19. data/app/controls/dc_page_control.rb +0 -1
  20. data/app/controls/dc_poll_result_control.rb +1 -1
  21. data/app/controls/dc_report.rb +2 -2
  22. data/app/controls/design_element_settings_control.rb +1 -1
  23. data/app/forms/all_options.yml +25 -7
  24. data/app/forms/cms_menu.yml +24 -24
  25. data/app/forms/dc_browse_fields.yml +13 -9
  26. data/app/forms/dc_browse_models.yml +24 -2
  27. data/app/forms/dc_poll_result_export.yml +1 -1
  28. data/app/forms/dc_site.yml +2 -5
  29. data/app/forms/dc_steps_template.yml +51 -0
  30. data/app/helpers/cms_common_helper.rb +73 -6
  31. data/app/helpers/cms_edit_helper.rb +275 -159
  32. data/app/helpers/cms_helper.rb +152 -59
  33. data/app/helpers/cms_index_helper.rb +220 -172
  34. data/app/helpers/dc_application_helper.rb +40 -67
  35. data/app/models/concerns/dc_page_concern.rb +1 -1
  36. data/app/models/concerns/dc_site_concern.rb +9 -3
  37. data/app/models/dc_filter.rb +30 -22
  38. data/app/models/dc_journal.rb +2 -2
  39. data/app/models/dc_json_ld.rb +19 -42
  40. data/app/models/dc_part.rb +19 -9
  41. data/app/models/dc_site.rb +0 -1
  42. data/app/models/drgcms_form_fields/drgcms_field.rb +10 -4
  43. data/app/models/drgcms_form_fields/link_to.rb +1 -1
  44. data/app/models/drgcms_form_fields/multitext_autocomplete.rb +5 -5
  45. data/app/models/drgcms_form_fields/readonly.rb +4 -1
  46. data/app/models/drgcms_form_fields/select.rb +10 -9
  47. data/app/models/drgcms_form_fields/text_autocomplete.rb +20 -12
  48. data/app/models/drgcms_form_fields/text_with_select.rb +1 -0
  49. data/app/renderers/dc_common_renderer.rb +20 -3
  50. data/app/renderers/dc_part_renderer.rb +1 -1
  51. data/app/renderers/dc_poll_renderer.rb +1 -1
  52. data/app/views/cmsedit/_edit_stuff.html.erb +12 -12
  53. data/app/views/cmsedit/_form.html.erb +19 -12
  54. data/app/views/cmsedit/edit.html.erb +10 -6
  55. data/app/views/cmsedit/index.html.erb +5 -3
  56. data/app/views/cmsedit/login.html.erb +1 -1
  57. data/app/views/cmsedit/new.html.erb +9 -5
  58. data/app/views/dc_common/_help.html.erb +1 -0
  59. data/app/views/dc_common/paste_clipboard.html.erb +1 -1
  60. data/app/views/layouts/cms.html.erb +3 -5
  61. data/config/locales/drgcms_en.yml +7 -1
  62. data/config/locales/drgcms_sl.yml +7 -1
  63. data/config/locales/kaminari.yml +1 -1
  64. data/drg_cms.gemspec +2 -2
  65. data/lib/drg_cms/version.rb +1 -1
  66. data/lib/drg_cms.rb +4 -4
  67. metadata +16 -10
  68. data/app/views/cmsedit/__remove_edit_stuff.js.erb +0 -6
  69. data/app/views/cmsedit/__show.html.erb +0 -21
metadata CHANGED
@@ -1,29 +1,29 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: drg_cms
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.1.5
4
+ version: 0.6.1.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - Damjan Rems
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-12-05 00:00:00.000000000 Z
11
+ date: 2022-06-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - "~>"
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: '6.1'
19
+ version: '0'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - "~>"
24
+ - - ">="
25
25
  - !ruby/object:Gem::Version
26
- version: '6.1'
26
+ version: '0'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: jquery-rails
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -123,7 +123,7 @@ dependencies:
123
123
  - !ruby/object:Gem::Version
124
124
  version: '0'
125
125
  - !ruby/object:Gem::Dependency
126
- name: font-awesome-rails
126
+ name: drg_material_icons
127
127
  requirement: !ruby/object:Gem::Requirement
128
128
  requirements:
129
129
  - - ">="
@@ -163,6 +163,12 @@ files:
163
163
  - MIT-LICENSE
164
164
  - README.md
165
165
  - Rakefile
166
+ - app/assets/fonts/ibm-plex-sans-300.woff2
167
+ - app/assets/fonts/ibm-plex-sans-400.woff2
168
+ - app/assets/fonts/ibm-plex-sans-500.woff2
169
+ - app/assets/fonts/ibm-plex-sans-600.woff2
170
+ - app/assets/fonts/ibm-plex-sans-700.woff2
171
+ - app/assets/fonts/ibm-plex-sans-italic.woff2
166
172
  - app/assets/images/32px.png
167
173
  - app/assets/images/drg_cms/32px.png
168
174
  - app/assets/images/drg_cms/40px.png
@@ -210,6 +216,7 @@ files:
210
216
  - app/controllers/dc_common_controller.rb
211
217
  - app/controllers/dc_main_controller.rb
212
218
  - app/controls/browse_models_control.rb
219
+ - app/controls/cmsedit_control.rb
213
220
  - app/controls/dc_help_control.rb
214
221
  - app/controls/dc_page_control.rb
215
222
  - app/controls/dc_poll_result_control.rb
@@ -255,6 +262,7 @@ files:
255
262
  - app/forms/dc_simple_menu.yml
256
263
  - app/forms/dc_simple_menu_item.yml
257
264
  - app/forms/dc_site.yml
265
+ - app/forms/dc_steps_template.yml
258
266
  - app/forms/dc_user.yml
259
267
  - app/forms/dc_user_role.yml
260
268
  - app/forms/drgcms_cms.yml
@@ -352,8 +360,6 @@ files:
352
360
  - app/renderers/dc_poll_renderer.rb
353
361
  - app/renderers/dc_renderer.rb
354
362
  - app/renderers/dc_simple_menu_renderer.rb
355
- - app/views/cmsedit/__remove_edit_stuff.js.erb
356
- - app/views/cmsedit/__show.html.erb
357
363
  - app/views/cmsedit/_edit_stuff.html.erb
358
364
  - app/views/cmsedit/_form.html.erb
359
365
  - app/views/cmsedit/_result.html.erb
@@ -444,7 +450,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
444
450
  - !ruby/object:Gem::Version
445
451
  version: '0'
446
452
  requirements: []
447
- rubygems_version: 3.2.22
453
+ rubygems_version: 3.3.15
448
454
  signing_key:
449
455
  specification_version: 4
450
456
  summary: 'DRG: Rapid web application development tool and CMS for Ruby, Rails and
@@ -1,6 +0,0 @@
1
-
2
- <% if session[:edit_mode] == 2 %>
3
- <%= javascript_tag do %>
4
- /* $('div[id^="drgcms-"]').css('border', '1px dotted blue') */
5
- <% end %>
6
- <% end %>
@@ -1,21 +0,0 @@
1
- <% if session[:edit_mode] and session[:edit_mode] > 0 %>
2
- <%= render partial: 'edit_stuff' %>
3
- <%= render partial: 'edit_stuff', formats: ['js'] %>
4
- <% else %>
5
- <h2>CMS login</h2>
6
- <%= dc_flash_messages %>
7
- <%= form_tag controller: 'dc_common', action: 'process_login', return_to: '/cmsedit/show', method: :put do %>
8
- <table>
9
- <tr>
10
- <td>Username:</td>
11
- <td><%= text_field('record', 'username') %>
12
- </tr><tr>
13
- <td>Password:</td>
14
- <td><%= password_field('record', 'password') %>
15
- </tr><tr>
16
- <td><%= submit_tag 'Login' %></td>
17
- </tr>
18
- </table>
19
- <%= hidden_field_tag('return_to_error', request.url ) %>
20
- <% end %>
21
- <% end %>