2012-01-16 22:59:59 +00:00
|
|
|
!!! XML
|
|
|
|
!!!
|
|
|
|
%html{ :xmlns => 'http://www.w3.org/1999/xhtml' }
|
|
|
|
%head
|
|
|
|
%title Locomotive
|
|
|
|
|
|
|
|
= csrf_meta_tag
|
|
|
|
|
|
|
|
- key = Rails.application.config.session_options[:key]
|
|
|
|
|
|
|
|
%meta{ :name => 'key-param', :content => Rails.application.config.session_options[:key] }
|
|
|
|
%meta{ :name => 'key-token', :content => cookies[key] }
|
|
|
|
|
|
|
|
= stylesheet_link_tag 'locomotive/inline_editor', :media => 'screen'
|
|
|
|
= javascript_include_tag 'locomotive/inline_editor'
|
|
|
|
|
|
|
|
%script{ :type => 'text/javascript' }
|
|
|
|
:plain
|
|
|
|
window.locale = '#{I18n.locale}';
|
|
|
|
|
|
|
|
Locomotive.mounted_on = '#{Locomotive.mounted_on}';
|
|
|
|
Locomotive.current_site = new Locomotive.Models.Site(#{current_site.to_json});
|
|
|
|
Locomotive.current_account = new Locomotive.Models.Account(#{current_locomotive_account.to_json});
|
|
|
|
|
|
|
|
$(document).ready(function() {
|
|
|
|
|
2012-01-17 01:53:49 +00:00
|
|
|
window.application_view = new Locomotive.Views.InlinEditor.ApplicationView();
|
2012-01-16 22:59:59 +00:00
|
|
|
window.application_view.render();
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
%script{ :type => 'text/html', :id => 'toolbar' }
|
|
|
|
|
|
|
|
%h1 {{title}}
|
|
|
|
|
2012-01-17 11:05:39 +00:00
|
|
|
.back.col
|
|
|
|
= link_to t('.buttons.back'), '#', :class => 'button back'
|
|
|
|
|
2012-01-17 02:21:30 +00:00
|
|
|
.editing-mode.col{ :style => 'display: none' }
|
2012-01-17 11:05:39 +00:00
|
|
|
%label= t('.editing_mode')
|
2012-01-16 22:59:59 +00:00
|
|
|
= check_box_tag 'edit', '1', false
|
|
|
|
|
2012-01-17 11:05:39 +00:00
|
|
|
.element-actions.col{ :style => 'display: none' }
|
|
|
|
%label= t('.save_modifications')
|
|
|
|
= link_to t('.buttons.confirm'), '#', :class => 'button save'
|
|
|
|
= link_to t('.buttons.cancel'), '#', :class => 'button cancel'
|
2012-01-17 01:53:49 +00:00
|
|
|
|
2012-01-16 22:59:59 +00:00
|
|
|
%body
|
|
|
|
#page
|
2012-01-17 01:53:49 +00:00
|
|
|
%iframe{ :src => request.fullpath.gsub('_admin', '_edit'), :scrolling => 'no', :frameborder => '0' }
|
2012-01-16 22:59:59 +00:00
|
|
|
|
|
|
|
#toolbar
|
|
|
|
.background
|
|
|
|
.inner
|
|
|
|
|
|
|
|
|