Sha256: a853432b1d470b27773338fb2cade210edd53898e52c59586a1587a04c3ef49a
Contents?: true
Size: 1.09 KB
Versions: 9
Compression:
Stored size: 1.09 KB
Contents
- if @controller.model.is_a?(Page) - @buttons_partials.each do |partial| = render :partial => partial, :locals => {:f => fields} %p.buttons{:style=>"clear: left"} = save_model_button(@controller.model) = save_model_and_continue_editing_button(@controller.model) - if @controller.authorized_user? = save_model_and_promote_button(@controller.model) - if @controller.model.is_a?(Page) = submit_tag(t('preview', :default => 'Preview'), :class => 'button', :id => 'show-preview') = t('or') = link_to t('cancel'), :action => 'index' - if @controller.model.is_a?(Page) #preview_panel.fullcover.grey_out{:style => 'display: none;'} %iframe{:id => 'page-preview', :class => 'fullcover', :name => 'page-preview', :src => '/loading-iframe.html', :frameborder => 0, :scrolling => "auto"} .preview_tools =submit_tag(t('buttons.save_changes'), :class => 'big save_changes') =submit_tag(t('buttons.save_and_continue'), :class => 'big save_and_continue', :name => 'continue') %span.info = t('or') =link_to(t('edit_page'),{}, :class => 'cancel')
Version data entries
9 entries across 9 versions & 1 rubygems