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

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