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.146 app/views/caboose/block_type_store/admin_index.html.erb
caboose-cms-0.9.145 app/views/caboose/block_type_store/admin_index.html.erb
caboose-cms-0.9.144 app/views/caboose/block_type_store/admin_index.html.erb
caboose-cms-0.9.143 app/views/caboose/block_type_store/admin_index.html.erb
caboose-cms-0.9.142 app/views/caboose/block_type_store/admin_index.html.erb
caboose-cms-0.9.141 app/views/caboose/block_type_store/admin_index.html.erb
caboose-cms-0.9.140 app/views/caboose/block_type_store/admin_index.html.erb
caboose-cms-0.9.139 app/views/caboose/block_type_store/admin_index.html.erb
caboose-cms-0.9.138 app/views/caboose/block_type_store/admin_index.html.erb
caboose-cms-0.9.137 app/views/caboose/block_type_store/admin_index.html.erb
caboose-cms-0.9.136 app/views/caboose/block_type_store/admin_index.html.erb
caboose-cms-0.9.135 app/views/caboose/block_type_store/admin_index.html.erb
caboose-cms-0.9.134 app/views/caboose/block_type_store/admin_index.html.erb
caboose-cms-0.9.133 app/views/caboose/block_type_store/admin_index.html.erb
caboose-cms-0.9.132 app/views/caboose/block_type_store/admin_index.html.erb
caboose-cms-0.9.131 app/views/caboose/block_type_store/admin_index.html.erb
caboose-cms-0.9.130 app/views/caboose/block_type_store/admin_index.html.erb
caboose-cms-0.9.129 app/views/caboose/block_type_store/admin_index.html.erb
caboose-cms-0.9.128 app/views/caboose/block_type_store/admin_index.html.erb
caboose-cms-0.9.127 app/views/caboose/block_type_store/admin_index.html.erb