Sha256: b0f02c699baf0d6f61848880ed0edf052b733b4014cb4ed2e361a9fc2d392968

Contents?: true

Size: 949 Bytes

Versions: 6

Compression:

Stored size: 949 Bytes

Contents

<%= render :partial => 'caboose/pages/admin_header' %>

<p>Page block type: <%= @block.block_type %></p>
<div id='pageblock_<%= @block.id %>_value'></div>  
<p><input type='button' value='Back to page' onclick="window.location='/admin/pages/<%= @page.id %>/content';" /></p>

<%= render :partial => 'caboose/pages/admin_footer' %>
<% content_for :caboose_js do %>
<script type='text/javascript'>

var modal = false;
$(window).load(function() {
  modal = new CabooseModal(800);
});

$(document).ready(function() {  
  m = new ModelBinder({
    name: 'PageBlock',
    id: <%= @block.id %>,
    update_url: '/admin/pages/<%= @page.id %>/blocks/<%= @block.id %>',
    authenticity_token: '<%= form_authenticity_token %>',
    attributes: [{
      name: 'value',
      nice_name: 'Content',
      type: 'text',
      value: <%= raw Caboose.json(@block.value) %>,
      width: 800,
      fixed_placeholder: false 
    }]
  });  
});

</script>
<% end %>

Version data entries

6 entries across 3 versions & 1 rubygems

Version Path
caboose-cms-0.3.6 app/views/caboose/page_blocks/admin_edit_h1.html.erb
caboose-cms-0.3.6 app/views/caboose/page_blocks/admin_edit_h2.html.erb
caboose-cms-0.3.5 app/views/caboose/page_blocks/admin_edit_h1.html.erb
caboose-cms-0.3.5 app/views/caboose/page_blocks/admin_edit_h2.html.erb
caboose-cms-0.3.4 app/views/caboose/page_blocks/admin_edit_h1.html.erb
caboose-cms-0.3.4 app/views/caboose/page_blocks/admin_edit_h2.html.erb