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