Sha256: 433d6c593d097a0c6ba3b080e086c0d33c9c8cedd2df5e4b44aa888338e451a3
Contents?: true
Size: 1.28 KB
Versions: 42
Compression:
Stored size: 1.28 KB
Contents
<% p = @product %> <%= render :partial => 'caboose_store/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_store/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
42 entries across 42 versions & 1 rubygems