<%= link_to('CMS', controller: 'dc_common', action: 'toggle_edit_mode', return_to: request.url) %> <% if session[:edit_mode] > 1 %>
<%#= link_to(image_tag('drg_cms/view_tile.png', class: 'dc-link-img', title: t('drgcms.menu_plus')), '#', onclick: "$('#cmsedit-menu-plus').toggleClass('div-hidden');") %> <% if @page %> <%= link_to( image_tag('drg_cms/edit_page.png', class: 'dc-link-img', title: "#{t('drgcms.edit_page')}"), {controller: 'cmsedit', action: 'edit', table: @site.page_table, id: @page._id}, target: 'iframe_cms') %> <%= link_to( image_tag('drg_cms/edit_design.png', class: 'dc-link-img', title: "#{t('drgcms.edit_design')}"), {controller: 'cmsedit', action: 'edit', table: 'dc_design', id: @design._id}, target: 'iframe_cms') %> <%= link_to( image_tag('drg_cms/edit_site.png', class: 'dc-link-img', title: "#{t('drgcms.edit_site')}"), {controller: 'cmsedit', action: 'edit', table: 'dc_site', id: @site._id}, target: 'iframe_cms') %> <% end %> <%= link_to( image_tag('drg_cms/arrow_in.png', class: 'dc-link-img', title: t('drgcms.minimize')), '#', onclick: "$('#iframe_cms').height(1); return false;" ) %> <%= link_to( image_tag('drg_cms/arrow_out.png', class: 'dc-link-img', title: t('drgcms.maximize')), '#', onclick: "$('#iframe_cms').height( $('#iframe_cms').height() + 500);; return false;") %> <%= link_to( image_tag('drg_cms/reload.png', class: 'dc-link-img', title: t('drgcms.reload')), '#', onclick: "document.location.reload(true); return false;") %> <%= select('record', 'select', dc_choices4_cmsmenu ) %> <%= link_to( image_tag('drg_cms/edit.png', class: 'dc-link-img', title: t('drgcms.edit_selected')), '#', onclick: "$('#iframe_cms').attr('src', $('#record_select').val() ); return false;") %> <%= link_to( image_tag('drg_cms/copy.png', class: 'dc-link-img', title: "#{t('drgcms.doc_paste_title')}"), {controller: 'dc_common', action: 'paste_clipboard'}, target: 'iframe_cms') %> <%= DrgcmsFormField::Elfinder.file_manager_url(self) %>
<%= @menu_plus %>
<% end %>
<%= javascript_tag do %> // $('#cmsedit-edit-button').click(function() { $('#iframe_cms').attr('src', $('#record_select').val() ); }); $('#record_select').change( function(e) { $('#iframe_cms').attr('src', e.target.value ); }); <% end %>