Sha256: 2443713e62def5a4532901192dbd76638579252ce32f0792ba6fa7c81d103500

Contents?: true

Size: 1.12 KB

Versions: 129

Compression:

Stored size: 1.12 KB

Contents

<%
p = @product
%>
<%= render :partial => 'caboose/products/admin_header' %>
<div id='message'><%= raw flash[:message] ? flash[:message] : "" %></div>

<p><div id='product_<%= p.id %>_description'></div></p>

<%= render :partial => 'caboose/products/admin_footer' %>

<% content_for :caboose_js do %>
<script type='text/javascript'>

$(document).ready(function() {
    
  // add_to_crumbtrail('/admin', 'Admin');
  // add_to_crumbtrail('/admin/products', 'Products');  
  // add_to_crumbtrail('/admin/products/<%= p.id %>', <%= raw Caboose.json(p.title) %>);
  // add_to_crumbtrail('/admin/products/<%= p.id %>/description', 'Description');
  
  m = new ModelBinder({
    name: 'Product',
    id: <%= p.id %>,
    update_url: '/admin/products/<%= p.id %>',
    authenticity_token: '<%= form_authenticity_token %>',
    attributes: [{
      name: 'description',
      nice_name: 'Description',
      type: 'richtext',
      value: <%= raw Caboose.json(p.description) %>,
      width: 500 
    }]
  });
});

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

</script>
<%= raw caboose_tinymce %>    
<% end %>

Version data entries

129 entries across 129 versions & 1 rubygems

Version Path
caboose-cms-0.9.229 app/views/caboose/products/admin_edit_description.html.erb
caboose-cms-1.0.2 app/views/caboose/products/admin_edit_description.html.erb
caboose-cms-1.0.1 app/views/caboose/products/admin_edit_description.html.erb
caboose-cms-0.9.228 app/views/caboose/products/admin_edit_description.html.erb
caboose-cms-0.9.227 app/views/caboose/products/admin_edit_description.html.erb
caboose-cms-0.9.226 app/views/caboose/products/admin_edit_description.html.erb
caboose-cms-0.9.225 app/views/caboose/products/admin_edit_description.html.erb
caboose-cms-0.9.224 app/views/caboose/products/admin_edit_description.html.erb
caboose-cms-0.9.223 app/views/caboose/products/admin_edit_description.html.erb
caboose-cms-0.9.222 app/views/caboose/products/admin_edit_description.html.erb
caboose-cms-0.9.221 app/views/caboose/products/admin_edit_description.html.erb
caboose-cms-0.9.220 app/views/caboose/products/admin_edit_description.html.erb
caboose-cms-0.9.219 app/views/caboose/products/admin_edit_description.html.erb
caboose-cms-0.9.218 app/views/caboose/products/admin_edit_description.html.erb
caboose-cms-0.9.217 app/views/caboose/products/admin_edit_description.html.erb
caboose-cms-0.9.216 app/views/caboose/products/admin_edit_description.html.erb
caboose-cms-0.9.215 app/views/caboose/products/admin_edit_description.html.erb
caboose-cms-0.9.214 app/views/caboose/products/admin_edit_description.html.erb
caboose-cms-0.9.213 app/views/caboose/products/admin_edit_description.html.erb
caboose-cms-0.9.212 app/views/caboose/products/admin_edit_description.html.erb