drg_cms 0.6.0.3 → 0.6.0.6
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/javascripts/drg_cms/drg_cms.js +259 -102
- data/app/assets/javascripts/drg_cms_cms.js +1 -1
- data/app/assets/stylesheets/drg_cms/drg_cms.css +314 -142
- data/app/assets/stylesheets/drg_cms/select-multiple.css +11 -2
- data/app/controllers/cmsedit_controller.rb +313 -236
- data/app/controllers/dc_application_controller.rb +29 -4
- data/app/controllers/dc_common_controller.rb +19 -16
- data/app/{controllers → controls}/browse_models_control.rb +0 -0
- data/app/{controllers → controls}/dc_page_control.rb +24 -8
- data/app/controls/dc_poll_result_control.rb +88 -0
- data/app/{controllers → controls}/design_element_settings_control.rb +0 -0
- data/app/forms/all_options.yml +11 -3
- data/app/forms/cms_menu.yml +22 -18
- data/app/forms/dc_design.yml +6 -3
- data/app/forms/dc_filter.yml +3 -6
- data/app/forms/dc_poll_result.yml +74 -0
- data/app/forms/dc_poll_result_export.yml +35 -0
- data/app/helpers/cmsedit_edit_helper.rb +471 -0
- data/app/helpers/cmsedit_helper.rb +151 -821
- data/app/helpers/cmsedit_index_helper.rb +567 -0
- data/app/helpers/dc_application_helper.rb +48 -31
- data/app/models/{dc_dummy.rb → __dc_dummy.rb} +0 -0
- data/app/models/dc_filter.rb +12 -5
- data/app/models/dc_memory.rb +8 -1
- data/app/models/dc_poll.rb +38 -19
- data/app/models/dc_poll_result.rb +44 -0
- data/app/models/dc_temp.rb +137 -0
- data/app/models/drgcms_form_fields/action.rb +61 -0
- data/app/models/drgcms_form_fields/comment.rb +8 -4
- data/app/models/drgcms_form_fields/date_picker.rb +7 -6
- data/app/models/drgcms_form_fields/date_select.rb +1 -1
- data/app/models/drgcms_form_fields/datetime_picker.rb +8 -7
- data/app/models/drgcms_form_fields/datetime_select.rb +1 -1
- data/app/models/drgcms_form_fields/drgcms_field.rb +39 -7
- data/app/models/drgcms_form_fields/embedded.rb +7 -2
- data/app/models/drgcms_form_fields/file_field.rb +52 -0
- data/app/models/drgcms_form_fields/html_field.rb +1 -1
- data/app/models/drgcms_form_fields/multitext_autocomplete.rb +7 -4
- data/app/models/drgcms_form_fields/number_field.rb +15 -6
- data/app/models/drgcms_form_fields/radio.rb +91 -0
- data/app/models/drgcms_form_fields/readonly.rb +1 -1
- data/app/models/drgcms_form_fields/select.rb +14 -2
- data/app/models/drgcms_form_fields/text_area.rb +1 -1
- data/app/models/drgcms_form_fields/text_autocomplete.rb +1 -1
- data/app/models/drgcms_form_fields/text_field.rb +1 -1
- data/app/models/drgcms_form_fields/text_with_select.rb +6 -3
- data/app/models/drgcms_form_fields/tree_select.rb +11 -3
- data/app/renderers/dc_poll_renderer.rb +29 -11
- data/app/views/cmsedit/{remove_edit_stuff.js.erb → __remove_edit_stuff.js.erb} +0 -0
- data/app/views/cmsedit/{show.html.erb → __show.html.erb} +0 -0
- data/app/views/cmsedit/_edit_stuff.html.erb +2 -4
- data/app/views/cmsedit/_form.html.erb +4 -3
- data/app/views/cmsedit/_result.html.erb +2 -3
- data/app/views/cmsedit/edit.html.erb +2 -1
- data/app/views/cmsedit/index.html.erb +6 -1
- data/app/views/cmsedit/new.html.erb +1 -1
- data/config/locales/drgcms_en.yml +7 -0
- data/config/locales/drgcms_sl.yml +8 -1
- data/config/locales/models_en.yml +13 -4
- data/config/locales/models_sl.yml +13 -2
- data/drg_cms.gemspec +1 -1
- data/lib/drg_cms.rb +1 -0
- data/lib/drg_cms/version.rb +1 -1
- data/lib/generators/new_drg_form/new_drg_form_generator.rb +7 -2
- metadata +20 -13
- data/app/assets/stylesheets/drg_cms/__jquery-ui.css +0 -339
- data/test/fixtures/drg_cms_test_data.rb +0 -87
@@ -99,8 +99,19 @@ def choices_in_eval(e, all=false)
|
|
99
99
|
eval e
|
100
100
|
else
|
101
101
|
# add event listener to depend field
|
102
|
-
@js <<
|
103
|
-
|
102
|
+
@js << %Q[
|
103
|
+
$(document).ready(function() {
|
104
|
+
$('#record_#{@yaml['depend']}').change( function(e) { update_select_depend('record_#{@yaml['name']}', 'record_#{@yaml['depend']}','#{e}');});
|
105
|
+
$('#_record_#{@yaml['depend']}').change( function(e) { update_select_depend('record_#{@yaml['name']}', '_record_#{@yaml['depend']}','#{e}');});
|
106
|
+
});
|
107
|
+
]
|
108
|
+
# depend field might be virtual field. Its value should be set in params
|
109
|
+
depend_value = if @yaml['depend'][0] == '_'
|
110
|
+
@parent.params["p_#{@yaml['depend']}"]
|
111
|
+
else
|
112
|
+
@record[@yaml['depend']]
|
113
|
+
end
|
114
|
+
|
104
115
|
e << " '#{depend_value}'"
|
105
116
|
eval e
|
106
117
|
end
|
@@ -133,6 +144,7 @@ end
|
|
133
144
|
# Return value when readonly is required
|
134
145
|
###########################################################################
|
135
146
|
def ro_standard
|
147
|
+
#value = @yaml['html']['value'] ? @yaml['html']['value'] : nil
|
136
148
|
value = @record.respond_to?(@yaml['name']) ? @record[@yaml['name']] : nil
|
137
149
|
return self if value.nil?
|
138
150
|
#
|
@@ -90,7 +90,7 @@ def render
|
|
90
90
|
value_displayed = record ? record.send(ret_name) : value
|
91
91
|
end
|
92
92
|
# return if readonly
|
93
|
-
return ro_standard(value_displayed) if @readonly
|
93
|
+
#return ro_standard(value_displayed) if @readonly
|
94
94
|
# Add method back, so autocomplete will know that it must search for method inside class
|
95
95
|
ret_name = "#{ret_name}.#{method}" if method
|
96
96
|
@yaml['html'] ||= {}
|
@@ -44,7 +44,7 @@ class TextField < DrgcmsField
|
|
44
44
|
# Render text_field field html code
|
45
45
|
###########################################################################
|
46
46
|
def render
|
47
|
-
return ro_standard if @readonly
|
47
|
+
#return ro_standard if @readonly
|
48
48
|
set_initial_value
|
49
49
|
#
|
50
50
|
record = record_text_for(@yaml['name'])
|
@@ -65,14 +65,17 @@ class TextWithSelect < Select
|
|
65
65
|
# Render text_with_select field html code
|
66
66
|
###########################################################################
|
67
67
|
def render
|
68
|
-
return ro_standard if @readonly
|
68
|
+
#return ro_standard if @readonly
|
69
69
|
set_initial_value('html','value')
|
70
70
|
|
71
71
|
record = record_text_for(@yaml['name'])
|
72
72
|
@html << @parent.text_field( record, @yaml['name'], @yaml['html'])
|
73
|
-
@yaml['html']['class']
|
73
|
+
@yaml['html']['class'] ||= ''
|
74
|
+
@yaml['html']['class'] << ' text-with-select'
|
74
75
|
@yaml['html'].symbolize_keys!
|
75
|
-
|
76
|
+
unless @readonly
|
77
|
+
@html << @parent.select( @yaml['name'] + '_', nil, get_choices, { include_blank: true }, { class: 'text-with-select' })
|
78
|
+
end
|
76
79
|
|
77
80
|
# javascript to update text field if new value is selected in select field
|
78
81
|
@js =<<EOJS
|
@@ -87,12 +87,13 @@ end
|
|
87
87
|
# Render tree_select field html code
|
88
88
|
###########################################################################
|
89
89
|
def render
|
90
|
-
return ro_standard if @readonly
|
90
|
+
#return ro_standard if @readonly
|
91
91
|
set_initial_value('html','value')
|
92
92
|
require 'sort_alphabetical'
|
93
93
|
|
94
94
|
record = record_text_for(@yaml['name'])
|
95
|
-
|
95
|
+
clas = 'tree-select' + (@readonly ? ' dc-readonly' : '')
|
96
|
+
@html << "<div id=\"#{@yaml['name']}\" class=\"#{clas}\" #{set_style()} >"
|
96
97
|
# Fill @choices hash. The key is parent object id
|
97
98
|
@choices = {}
|
98
99
|
choices_in_eval(@yaml['eval']).each do |data|
|
@@ -118,13 +119,20 @@ def render
|
|
118
119
|
# save multiple indicator for data processing on return
|
119
120
|
@html << @parent.hidden_field(record, "#{@yaml['name']}_multiple", value: 1) if @yaml['multiple']
|
120
121
|
# javascript to update hidden record field when tree looses focus
|
122
|
+
readonly_code = %Q[
|
123
|
+
,
|
124
|
+
"conditionalselect" : function (node) {
|
125
|
+
return false; }
|
126
|
+
]
|
127
|
+
|
121
128
|
@js =<<EOJS
|
122
129
|
$(function(){
|
123
130
|
$("##{@yaml['name']}").jstree( {
|
124
131
|
"checkbox" : {"three_state" : false},
|
125
132
|
"core" : { "themes" : { "icons": false },
|
126
133
|
"multiple" : #{@yaml['multiple'] ? 'true' : 'false'} },
|
127
|
-
"plugins" : ["checkbox"]
|
134
|
+
"plugins" : ["checkbox","conditionalselect"]
|
135
|
+
#{@readonly ? readonly_code : ''}
|
128
136
|
});
|
129
137
|
});
|
130
138
|
|
@@ -59,9 +59,11 @@ def do_one_item(poll, yaml)
|
|
59
59
|
#
|
60
60
|
text = yaml['text'].match(/\./) ? t(yaml['text']) : yaml['text']
|
61
61
|
if yaml['mandatory']
|
62
|
-
text << '<font color="red"> *</font>'
|
62
|
+
text << ( poll.display == 'in' ? ' *' : '<font color="red"> *</font>' )
|
63
63
|
yaml['html'] ||= {}
|
64
64
|
yaml['html']['required'] = true
|
65
|
+
else
|
66
|
+
text << " " if poll.display == 'lr' and !yaml['type'].match(/submit_tag|link_to/)
|
65
67
|
end
|
66
68
|
|
67
69
|
# Just add text if comment and go to next one
|
@@ -114,7 +116,7 @@ def do_one_item(poll, yaml)
|
|
114
116
|
html << captcha.render_html
|
115
117
|
@part_css = captcha.render_css
|
116
118
|
end
|
117
|
-
@
|
119
|
+
@end_of_data = true
|
118
120
|
end
|
119
121
|
# submit and link tag
|
120
122
|
clas = yaml['type'].match(/submit_tag/) ? '' : 'dc-link-submit'
|
@@ -123,15 +125,33 @@ def do_one_item(poll, yaml)
|
|
123
125
|
else
|
124
126
|
html << case
|
125
127
|
when poll.display == 'lr' then
|
126
|
-
"<div class='row-div'><div class='dc-form-label poll-data-text #{yaml['class']}'>#{text}</div><div class='
|
127
|
-
when poll.display == '
|
128
|
-
"<div class='poll-data-text #{yaml['class']}'>#{text}</div><div class='poll-data-field #{yaml['class']}'>#{field_html}#{yaml['separator']}</div>\n"
|
128
|
+
"<div class='row-div'><div class='dc-form-label poll-data-text lr #{yaml['class']}'>#{text}</div><div class='poll-data-field td #{yaml['class']}'>#{field_html}</div></div>\n"
|
129
|
+
when poll.display == 'td' then
|
130
|
+
"<div class='poll-data-text td #{yaml['class']}'>#{text}</div><div class='poll-data-field td #{yaml['class']}'>#{field_html}#{yaml['separator']}</div>\n"
|
129
131
|
else
|
130
|
-
"<div class='poll-data-field #{yaml['class']}'>#{field_html}#{yaml['separator']}</div>\n"
|
132
|
+
"<div class='poll-data-field in #{yaml['class']}'>#{field_html}#{yaml['separator']}</div>\n"
|
131
133
|
end
|
132
134
|
end
|
133
135
|
end
|
134
136
|
|
137
|
+
########################################################################
|
138
|
+
# Call method before poll is displayed. Usefull for filling predefined values into flash[:record][value]
|
139
|
+
# Method cane be defined as ClassName.method or only method.
|
140
|
+
# If only method is defined then method name must exist in helpers.
|
141
|
+
#
|
142
|
+
# Called method must return at least one result if process can continue.
|
143
|
+
########################################################################
|
144
|
+
def eval_pre_display(code)
|
145
|
+
a = code.strip.split('.')
|
146
|
+
if a.size == 1
|
147
|
+
continue, message = @parent.send(a.first)
|
148
|
+
else
|
149
|
+
klass = a.first.classify.constantize
|
150
|
+
continue, message = klass.send(a.last,@parent)
|
151
|
+
end
|
152
|
+
[continue, message]
|
153
|
+
end
|
154
|
+
|
135
155
|
########################################################################
|
136
156
|
# Default poll renderer method. Renders data for specified pool.
|
137
157
|
########################################################################
|
@@ -149,12 +169,10 @@ def default
|
|
149
169
|
|
150
170
|
html = @opts[:div] ? "<div id='#{@opts[:div]}'>" : ''
|
151
171
|
html << '<a name="poll-top"></a>'
|
152
|
-
|
153
|
-
|
154
|
-
# Called method must return at least one result if process can continue.
|
155
|
-
if poll.pre_display.to_s.size > 1
|
172
|
+
#
|
173
|
+
unless poll.pre_display.blank?
|
156
174
|
begin
|
157
|
-
continue, message =
|
175
|
+
continue, message = eval_pre_display(poll.pre_display)
|
158
176
|
rescue Exception => e
|
159
177
|
return "<div class=\"dc-form-error\">Error! Poll pre display. Error: #{e.message}</div>"
|
160
178
|
end
|
File without changes
|
File without changes
|
@@ -1,11 +1,9 @@
|
|
1
1
|
<div id="cmsedit-div">
|
2
|
-
<
|
3
|
-
|
2
|
+
<button class="cms-toggle mode-<%= session[:edit_mode] %>" title="<%= t('drgcms.toggle_cms')%>">CMS</button>
|
3
|
+
<% # = link_to('CMS', controller: 'dc_common', action: 'toggle_edit_mode', return_to: request.url) %>
|
4
4
|
<% if session[:edit_mode] > 1 %>
|
5
5
|
<div class="cmsedit-table cmsedit-top">
|
6
6
|
<div id="menu">
|
7
|
-
|
8
|
-
<%= link_to( fa_icon('user lg',class: "dc-animate", title: "#{t('drgcms.login')}"), '/cms/login' ) %>
|
9
7
|
|
10
8
|
<% if @page %>
|
11
9
|
<%= link_to( fa_icon('file-text-o lg', class: "dc-animate", title: "#{t('drgcms.edit_page')}"),
|
@@ -4,12 +4,13 @@
|
|
4
4
|
|
5
5
|
<div class="dc-form-frame">
|
6
6
|
|
7
|
-
<%= dc_actions_for_form %>
|
7
|
+
<%= dc_actions_for_form 'top' %>
|
8
8
|
|
9
9
|
<%= dc_fields_for_form %>
|
10
10
|
<%= dc_document_statistics %>
|
11
11
|
|
12
|
-
<%= dc_actions_for_form %>
|
12
|
+
<%= dc_actions_for_form 'bottom' %>
|
13
13
|
</div>
|
14
14
|
|
15
|
-
<%= javascript_tag(@js)
|
15
|
+
<%= javascript_tag(@js) unless @js.blank? %>
|
16
|
+
<% unless @css.blank? %><style type="text/css"><%= @css %></style><% end %>
|
@@ -1,8 +1,6 @@
|
|
1
1
|
|
2
2
|
<div class="dc-table-frame">
|
3
3
|
|
4
|
-
<%= dc_table_title_for_result @records %>
|
5
|
-
|
6
4
|
<% unless @records.nil? %>
|
7
5
|
<%= dc_background_for_result(:start) %>
|
8
6
|
|
@@ -15,12 +13,13 @@
|
|
15
13
|
<% end %>
|
16
14
|
<% if @record_footer %>
|
17
15
|
<div class="dc-result-data footer">
|
18
|
-
<%=
|
16
|
+
<%= dc_actions_column_for_footer() %>
|
19
17
|
<%= dc_columns_for_result(@record_footer) %>
|
20
18
|
</div>
|
21
19
|
<% end %>
|
22
20
|
|
23
21
|
<%= dc_background_for_result(:end) %>
|
24
22
|
<% end %>
|
23
|
+
<%= dc_filter_popup() %>
|
25
24
|
|
26
25
|
</div>
|
@@ -1,6 +1,11 @@
|
|
1
1
|
<div class="dc-form-frame">
|
2
|
+
<%= dc_table_title_for_result @records %>
|
3
|
+
|
2
4
|
<%= dc_actions_for_index %>
|
3
5
|
<%= dc_div_filter %>
|
4
6
|
<%= dc_flash_messages %>
|
5
7
|
<div id='result'> <%= render partial: 'result' %></div>
|
6
|
-
</div>
|
8
|
+
</div>
|
9
|
+
|
10
|
+
<%= javascript_tag(@js) unless @js.blank? %>
|
11
|
+
<% unless @css.blank? %><style type="text/css"><%= @css %></style><% end %>
|
@@ -24,6 +24,8 @@
|
|
24
24
|
# English (en) localization for drgCMS
|
25
25
|
en:
|
26
26
|
drgcms:
|
27
|
+
"true": "yes"
|
28
|
+
"false": "no"
|
27
29
|
record_deleted: Document deleted!
|
28
30
|
confirm_delete: Confirm document deletion!
|
29
31
|
confirm_dup: Confirm document duplication!
|
@@ -94,6 +96,11 @@ en:
|
|
94
96
|
created_at: Created at
|
95
97
|
updated_at: Updated at
|
96
98
|
new_record: New record
|
99
|
+
|
100
|
+
filter_poll: Filter
|
101
|
+
filter_poll_title: Filter poll data
|
102
|
+
export_poll: Export
|
103
|
+
export_poll_title: Upload poll data in a file
|
97
104
|
|
98
105
|
choices4_filter_operators: 'Equal to:eq,Contains:like,Greater then:gt,Less then:lt,Is empty:empty'
|
99
106
|
|
@@ -23,7 +23,9 @@
|
|
23
23
|
|
24
24
|
# drgCMS slovenska (sl) lokalizacija
|
25
25
|
sl:
|
26
|
-
drgcms:
|
26
|
+
drgcms:
|
27
|
+
"true": "da"
|
28
|
+
"false": "ne"
|
27
29
|
record_deleted: Dokument izbrisan!
|
28
30
|
confirm_delete: Potrdite izbris dokumenta!
|
29
31
|
confirm_dup: Potrdite podvajanje dokumenta!
|
@@ -94,6 +96,11 @@ sl:
|
|
94
96
|
created_at: Ustvarjeno
|
95
97
|
updated_at: Spremenjeno
|
96
98
|
new_record: Nov zapis
|
99
|
+
|
100
|
+
filter_poll: Filter
|
101
|
+
filter_poll_title: Filtriraj podatke
|
102
|
+
export_poll: Izvoz
|
103
|
+
export_poll_title: Izvoz in prenos rezultatov ankete v datoteko
|
97
104
|
|
98
105
|
choices4_filter_operators: 'Je enak:eq,Vsebuje:like,Je večji od:gt,Je manjši od:lt,Je prazen:empty'
|
99
106
|
|
@@ -81,6 +81,7 @@ en:
|
|
81
81
|
rails_view: Rails view filename
|
82
82
|
control: Control file
|
83
83
|
control_method: Control method
|
84
|
+
updated_at: Updated
|
84
85
|
|
85
86
|
dc_user_role:
|
86
87
|
tabletitle: User roles
|
@@ -157,6 +158,13 @@ en:
|
|
157
158
|
options: Options
|
158
159
|
order: Order
|
159
160
|
active: Active
|
161
|
+
|
162
|
+
dc_poll_result:
|
163
|
+
tabletitle: Polls results
|
164
|
+
|
165
|
+
dc_poll_id: Poll name
|
166
|
+
created_at: Created date
|
167
|
+
data: Data
|
160
168
|
|
161
169
|
dc_policy:
|
162
170
|
tabletitle: Access policy declarations
|
@@ -653,10 +661,6 @@ en:
|
|
653
661
|
form: You can specified input items by providing form acording to rules of drgCMS form.
|
654
662
|
|
655
663
|
dc_poll_item:
|
656
|
-
tabletitle: Poll items
|
657
|
-
choices4_type: Text:text_field,Text area:text_area,Select:select,Check box:check_box,Submit:submit_tag,Link:link_to,Password:password_field,Comment:comment
|
658
|
-
choices4_separator: Space: ,Empty line:<br />,Horizontal line:<hr>
|
659
|
-
|
660
664
|
name: Name (alias) of returned field name
|
661
665
|
text: Caption of item
|
662
666
|
type: Input item type
|
@@ -667,6 +671,11 @@ en:
|
|
667
671
|
order: Order of item on poll
|
668
672
|
active: Item is active
|
669
673
|
|
674
|
+
dc_poll_result:
|
675
|
+
dc_poll_id: Poll name
|
676
|
+
created_at: Date when poll result was submited
|
677
|
+
data: Data saved in YAML format
|
678
|
+
|
670
679
|
dc_policy:
|
671
680
|
name: Unique policy name
|
672
681
|
description: Description for this policy
|
@@ -82,7 +82,7 @@ sl:
|
|
82
82
|
site_id: Spletišče
|
83
83
|
control: Kontrolna datoteka
|
84
84
|
control_method: Kontrolna metoda
|
85
|
-
|
85
|
+
updated_at: Spremenjeno
|
86
86
|
|
87
87
|
dc_user:
|
88
88
|
tabletitle: Uporabniki
|
@@ -160,6 +160,13 @@ sl:
|
|
160
160
|
options: Opcije
|
161
161
|
order: Zaporedje
|
162
162
|
active: Aktivna
|
163
|
+
|
164
|
+
dc_poll_result:
|
165
|
+
tabletitle: Rezultati anket
|
166
|
+
|
167
|
+
dc_poll_id: Anketa
|
168
|
+
created_at: Nastalo
|
169
|
+
data: Podatki
|
163
170
|
|
164
171
|
dc_policy:
|
165
172
|
tabletitle: Politike za dostop
|
@@ -635,7 +642,6 @@ sl:
|
|
635
642
|
password_confirmation: Še enkrat vpišite geslo
|
636
643
|
signature: Podpis, ki se doda k vsakemu sporočilu tega uporabnika
|
637
644
|
|
638
|
-
|
639
645
|
dc_user_role:
|
640
646
|
dc_policy_role_id: Uporabnikova vloga
|
641
647
|
has_cms_menu: Vloga dovoljuje prikaz opcije za CMS menu
|
@@ -668,6 +674,11 @@ sl:
|
|
668
674
|
options: Opcije, odvisne od vrste vpisnega polja
|
669
675
|
order: Zaporedje prikaza na anketi
|
670
676
|
active: Vrstica je aktivna
|
677
|
+
|
678
|
+
dc_poll_result:
|
679
|
+
dc_poll_id: Naziv ankete
|
680
|
+
created_at: Čas nastanka zapisa
|
681
|
+
data: Podatki v YAML formatu
|
671
682
|
|
672
683
|
dc_policy:
|
673
684
|
name: Naziv politike
|
data/drg_cms.gemspec
CHANGED
@@ -26,7 +26,7 @@ Gem::Specification.new do |s|
|
|
26
26
|
s.add_dependency 'non-stupid-digest-assets'
|
27
27
|
|
28
28
|
s.add_dependency 'bcrypt' #, '~> 3.0.0'
|
29
|
-
s.add_dependency 'mongoid', '~> 7
|
29
|
+
s.add_dependency 'mongoid', '~> 7'
|
30
30
|
|
31
31
|
s.add_dependency 'kaminari-mongoid'
|
32
32
|
s.add_dependency 'kaminari-actionview'
|
data/lib/drg_cms.rb
CHANGED
@@ -140,6 +140,7 @@ def self.routes
|
|
140
140
|
get 'dc_common/add_json_ld_schema' => :add_json_ld_schema
|
141
141
|
end
|
142
142
|
match 'elfinder' => 'dc_elfinder#connector', via: [:get, :post]
|
143
|
+
match 'cmsedit/run' => 'cmsedit#run', via: [:get, :put, :post]
|
143
144
|
resources :cmsedit
|
144
145
|
resources :cms, controller: :cmsedit
|
145
146
|
end
|
data/lib/drg_cms/version.rb
CHANGED