Sha256: c2c83785e047bcd61b5462a867900244cb31782090cb8602f3d8ba4894af35e2

Contents?: true

Size: 1.58 KB

Versions: 14

Compression:

Stored size: 1.58 KB

Contents

<h1>Edit Block Type Category</h1>

<p><div id='blocktypecategory_<%= @btc.id %>_name' ></div></p>
<p><div id='blocktypecategory_<%= @btc.id %>_parent_id' ></div></p>
<p><div id='blocktypecategory_<%= @btc.id %>_sort_order' ></div></p>
<p><div id='blocktypecategory_<%= @btc.id %>_show_in_sidebar' ></div></p>

<h5>Blocks</h5>
<ul>
<% Caboose::BlockType.where(:block_type_category_id => @btc.id).order(:id).all.each do |bt| %>
<li><a href="/admin/block-types/<%= bt.id %>"><%= bt.description %></a></li>
<% end %>
</ul>
<br />

<a href="/admin/block-type-categories" class="caboose-btn">< Back</a>

<% content_for :caboose_css do %>
<style type='text/css'>

</style>
<% end %>
<% content_for :caboose_js do %>
<%= javascript_include_tag "caboose/model/all" %>
<script type="text/javascript">

$(document).ready(function() {
  new ModelBinder({
    name: 'BlockTypeCategory',
    id: <%= @btc.id %>,
    update_url: '/admin/block-type-categories/<%= @btc.id %>',
    authenticity_token: '<%= form_authenticity_token %>',
    attributes: [
      { name: 'name' , nice_name: 'Name', type: 'text'     , value: <%= raw Caboose.json(@btc.name) %>, width: 400 },
      { name: 'parent_id' , nice_name: 'Parent', type: 'text'     , value: <%= raw Caboose.json(@btc.parent_id) %>, width: 400 },
      { name: 'sort_order' , nice_name: 'Sort Order', type: 'text'     , value: <%= raw Caboose.json(@btc.sort_order) %>, width: 400 },
      { name: 'show_in_sidebar' , nice_name: 'Show in Sidebar', type: 'checkbox'     , value: <%= raw Caboose.json(@btc.show_in_sidebar) %>, width: 400 }
    ]    
  });  
});

</script>
<% end %>

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
caboose-cms-0.9.208 app/views/caboose/block_type_categories/admin_edit.html.erb
caboose-cms-0.9.207 app/views/caboose/block_type_categories/admin_edit.html.erb
caboose-cms-0.9.206 app/views/caboose/block_type_categories/admin_edit.html.erb
caboose-cms-0.9.205 app/views/caboose/block_type_categories/admin_edit.html.erb
caboose-cms-0.9.204 app/views/caboose/block_type_categories/admin_edit.html.erb
caboose-cms-0.9.203 app/views/caboose/block_type_categories/admin_edit.html.erb
caboose-cms-0.9.202 app/views/caboose/block_type_categories/admin_edit.html.erb
caboose-cms-0.9.201 app/views/caboose/block_type_categories/admin_edit.html.erb
caboose-cms-0.9.200 app/views/caboose/block_type_categories/admin_edit.html.erb
caboose-cms-0.9.198 app/views/caboose/block_type_categories/admin_edit.html.erb
caboose-cms-0.9.197 app/views/caboose/block_type_categories/admin_edit.html.erb
caboose-cms-0.9.196 app/views/caboose/block_type_categories/admin_edit.html.erb
caboose-cms-0.9.195 app/views/caboose/block_type_categories/admin_edit.html.erb
caboose-cms-0.9.194 app/views/caboose/block_type_categories/admin_edit.html.erb