Sha256: d4337b3cf37deed7b274ddccec95103d7082467f6fdf6f34877d17487bbac004

Contents?: true

Size: 1.33 KB

Versions: 514

Compression:

Stored size: 1.33 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>  

  <br />
  <%== @pager.generate %>

<% else %>

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

<% end %>

Version data entries

514 entries across 514 versions & 1 rubygems

Version Path
caboose-cms-0.9.166 app/views/caboose/block_type_store/admin_index.html.erb
caboose-cms-0.9.165 app/views/caboose/block_type_store/admin_index.html.erb
caboose-cms-0.9.164 app/views/caboose/block_type_store/admin_index.html.erb
caboose-cms-0.9.163 app/views/caboose/block_type_store/admin_index.html.erb
caboose-cms-0.9.162 app/views/caboose/block_type_store/admin_index.html.erb
caboose-cms-0.9.161 app/views/caboose/block_type_store/admin_index.html.erb
caboose-cms-0.9.160 app/views/caboose/block_type_store/admin_index.html.erb
caboose-cms-0.9.159 app/views/caboose/block_type_store/admin_index.html.erb
caboose-cms-0.9.158 app/views/caboose/block_type_store/admin_index.html.erb
caboose-cms-0.9.157 app/views/caboose/block_type_store/admin_index.html.erb
caboose-cms-0.9.156 app/views/caboose/block_type_store/admin_index.html.erb
caboose-cms-0.9.155 app/views/caboose/block_type_store/admin_index.html.erb
caboose-cms-0.9.154 app/views/caboose/block_type_store/admin_index.html.erb
caboose-cms-0.9.153 app/views/caboose/block_type_store/admin_index.html.erb
caboose-cms-0.9.152 app/views/caboose/block_type_store/admin_index.html.erb
caboose-cms-0.9.151 app/views/caboose/block_type_store/admin_index.html.erb
caboose-cms-0.9.150 app/views/caboose/block_type_store/admin_index.html.erb
caboose-cms-0.9.149 app/views/caboose/block_type_store/admin_index.html.erb
caboose-cms-0.9.148 app/views/caboose/block_type_store/admin_index.html.erb
caboose-cms-0.9.147 app/views/caboose/block_type_store/admin_index.html.erb