Sha256: bb02f2a38b7c9c3ae72f364b00961e2456140d74d336fcbe5c925afb7f5d99db

Contents?: true

Size: 1.3 KB

Versions: 200

Compression:

Stored size: 1.3 KB

Contents

<div id='crumbtrail'>
  <a href='/admin'>Admin</a> >
  <a href='/admin/block-types'>Block Types</a>  
</div>

<h1>Block Type Store</h1>

<p><a href='/admin/block-types/store/sources'>Store Sources</a></p>

<form action='/admin/block-types/store' method='get'>
<table>
<tr><td>Source:</td><td>
  <select name='block_type_source_id'>
    <option value=''>-- Any Source --</option>
    <% Caboose::BlockTypeSource.reorder(:name).all.each do |bts| %><option value='<%= bts.id %>'><%= bts.name %></option><% end %>
  </select></td></tr>
<tr><td><p>Name:        </td><td><input type='name_like' value="<%= @pager.params['name_like'] %>" /></td></tr>
<tr><td><p>Description: </td><td><input type='name_like' value="<%= @pager.params['name_like'] %>" /></td></tr>
</table>
<p><input type='submit' value='Search' /></p>
</form>

<% if (@block_type_summaries.count > 0) %>

  <table class='data'>
    <tr>
      <th>Source</th>
      <th>Name</th>
      <th>Description</th>      
    </tr>
  <% @block_type_summaries.each do |bts| %>
    <tr onclick="window.location='/admin/block-types/store/<%= bts.id %>';">
      <td><%= bts.source.name %></td>
      <td><%= bts.name        %></td>
      <td><%= bts.description %></td>    
    </tr>
  <% end %>
  </table>  

<% else %>

  <p>There are no block types from any sources.</p>

<% end %>

Version data entries

200 entries across 200 versions & 1 rubygems

Version Path
caboose-cms-0.5.90 app/views/caboose/block_type_store/admin_index.html.erb
caboose-cms-0.5.89 app/views/caboose/block_type_store/admin_index.html.erb
caboose-cms-0.5.88 app/views/caboose/block_type_store/admin_index.html.erb
caboose-cms-0.5.87 app/views/caboose/block_type_store/admin_index.html.erb
caboose-cms-0.5.86 app/views/caboose/block_type_store/admin_index.html.erb
caboose-cms-0.5.85 app/views/caboose/block_type_store/admin_index.html.erb
caboose-cms-0.5.84 app/views/caboose/block_type_store/admin_index.html.erb
caboose-cms-0.5.83 app/views/caboose/block_type_store/admin_index.html.erb
caboose-cms-0.5.82 app/views/caboose/block_type_store/admin_index.html.erb
caboose-cms-0.5.81 app/views/caboose/block_type_store/admin_index.html.erb
caboose-cms-0.5.80 app/views/caboose/block_type_store/admin_index.html.erb
caboose-cms-0.5.79 app/views/caboose/block_type_store/admin_index.html.erb
caboose-cms-0.5.78 app/views/caboose/block_type_store/admin_index.html.erb
caboose-cms-0.5.77 app/views/caboose/block_type_store/admin_index.html.erb
caboose-cms-0.5.76 app/views/caboose/block_type_store/admin_index.html.erb
caboose-cms-0.5.75 app/views/caboose/block_type_store/admin_index.html.erb
caboose-cms-0.5.74 app/views/caboose/block_type_store/admin_index.html.erb
caboose-cms-0.5.73 app/views/caboose/block_type_store/admin_index.html.erb
caboose-cms-0.5.72 app/views/caboose/block_type_store/admin_index.html.erb
caboose-cms-0.5.71 app/views/caboose/block_type_store/admin_index.html.erb