parent
ca946fc881
commit
15b9839b76
|
@ -2,5 +2,5 @@
|
||||||
<%= t("default_widget.widget_data_count") %>
|
<%= t("default_widget.widget_data_count") %>
|
||||||
</label>
|
</label>
|
||||||
<div class="controls">
|
<div class="controls">
|
||||||
<%= select_tag(field_name,options_for_select(@module_app.get_registration.get_data_count,field_value )) %>
|
<%= select_tag(field_name,options_for_select((@module_app.get_registration.get_data_count rescue []),field_value )) %>
|
||||||
</div>
|
</div>
|
|
@ -1,7 +1,7 @@
|
||||||
<% if @module_app %>
|
<% if @module_app %>
|
||||||
$('#app_page_category').html("<%= j render :partial => 'admin/page_parts/widget_data_source_category' ,:locals=>{:object=>@page}%>");
|
$('#app_page_category').html("<%= j render :partial => 'admin/page_parts/widget_data_source_category' ,:locals=>{:object=>@page}%>");
|
||||||
$('#app_page_tag').html("<%= j render :partial => 'admin/page_parts/widget_data_source_tag',:locals=>{:object=>@page} %>");
|
$('#app_page_tag').html("<%= j render :partial => 'admin/page_parts/widget_data_source_tag',:locals=>{:object=>@page} %>");
|
||||||
$("#data_count").html("<%= j render :partial => 'admin/pages/data_count_field',:locals=>{:field_name=>'page[frontend_data_count]',:field_value=>@page.frontend_data_count} %>");
|
$("#data_count").html("<%= j render :partial => 'admin/pages/data_count_field',:locals=>{:field_name=>'page[frontend_data_count]',:field_value=>(@page.frontend_data_count rescue nil)} %>");
|
||||||
|
|
||||||
<% if !@module_app.app_pages.blank? %>
|
<% if !@module_app.app_pages.blank? %>
|
||||||
$('#app_page_url').html("<%= escape_javascript(select 'page', 'app_frontend_url', options_for_select(@app_frontend_urls, @app_frontend_urls.first)) %>");
|
$('#app_page_url').html("<%= escape_javascript(select 'page', 'app_frontend_url', options_for_select(@app_frontend_urls, @app_frontend_urls.first)) %>");
|
||||||
|
|
|
@ -35,7 +35,7 @@ module Archive
|
||||||
head_label_i18n 'archive.archive',:icon_class=>"icons-archive"
|
head_label_i18n 'archive.archive',:icon_class=>"icons-archive"
|
||||||
available_for [:admin,:guest,:manager,:sub_manager]
|
available_for [:admin,:guest,:manager,:sub_manager]
|
||||||
active_for_controllers ({:private=>['archive_file_categorys','archive_files'],:public=>['panel/archive/back_end/tags']})
|
active_for_controllers ({:private=>['archive_file_categorys','archive_files'],:public=>['panel/archive/back_end/tags']})
|
||||||
active_for_object_auth ['BulletinCategory']
|
# active_for_object_auth ['BulletinCategory']
|
||||||
|
|
||||||
head_link_path "panel_archive_back_end_archive_files_path"
|
head_link_path "panel_archive_back_end_archive_files_path"
|
||||||
|
|
||||||
|
|
|
@ -44,7 +44,7 @@ module Gallery
|
||||||
head_label_i18n 'gallery.gallery',:icon_class=>"icons-pictures"
|
head_label_i18n 'gallery.gallery',:icon_class=>"icons-pictures"
|
||||||
available_for [:admin,:guest,:manager,:sub_manager]
|
available_for [:admin,:guest,:manager,:sub_manager]
|
||||||
active_for_controllers ({:private=>['albums','album_images','gallery_categories','/panel/gallery/back_end/tags']})
|
active_for_controllers ({:private=>['albums','album_images','gallery_categories','/panel/gallery/back_end/tags']})
|
||||||
active_for_object_auth ['BulletinCategory']
|
active_for_object_auth ['GalleryCategory']
|
||||||
|
|
||||||
head_link_path "panel_gallery_back_end_albums_path"
|
head_link_path "panel_gallery_back_end_albums_path"
|
||||||
|
|
||||||
|
|
Reference in New Issue