Sha256: 565ee1551d24283585d3d1cb4e23b6b19077be3fdc6bf7545926b0fb10f4eddc
Contents?: true
Size: 1.27 KB
Versions: 664
Compression:
Stored size: 1.27 KB
Contents
<% p = @product %> <%= render :partial => 'caboose/products/admin_header' %> <p><div id='product_<%= p.id %>_handle'></div></p> <p><div id='product_<%= p.id %>_seo_title'></div></p> <p><div id='product_<%= p.id %>_seo_description'></div></p> <div id='message'><%= raw flash[:message] ? flash[:message] : "" %></div> <%= render :partial => 'caboose/products/admin_footer' %> <% content_for :caboose_js do %> <script type='text/javascript'> $(document).ready(function() { m = new ModelBinder({ name: 'Product', id: <%= p.id %>, update_url: '/admin/products/<%= p.id %>', authenticity_token: '<%= form_authenticity_token %>', attributes: [ { name: 'handle' , nice_name: 'URL Handle' , type: 'text' , value: <%= raw Caboose.json(p.handle ) %>, width: 500 }, { name: 'seo_title' , nice_name: 'SEO Page Title' , type: 'text' , value: <%= raw Caboose.json(p.seo_title ) %>, width: 500 }, { name: 'seo_description' , nice_name: 'SEO Meta Description' , type: 'textarea' , value: <%= raw Caboose.json(p.seo_description ) %>, width: 500, height: 200 } ] }); }); var modal = false; $(window).load(function() { modal = new CabooseModal(800); }); </script> <% end %>
Version data entries
664 entries across 664 versions & 1 rubygems