Sha256: d58ec0428adf89bf893d5f3fcded3c200ee5f3e4e2cd297c5e92131f44f5e3a6

Contents?: true

Size: 712 Bytes

Versions: 2

Compression:

Stored size: 712 Bytes

Contents

<div class="btn-group mt-10 mb-10" style="width:100%;">
  <button type="button" class="btn btn-default btn-block dropdown-toggle" data-toggle="dropdown">
    Choose a <%= model_class.titleize %> <span class="caret"></span>
  </button>
  <ul class="dropdown-menu" role="menu">
    <%% @<%= instances_name %>.each do |<%= instance_name %>| %>
      <li><%%= link_to <%= instance_name %>.name, <%= resource_link('show', 'path') %>(<%= instance_name %>), :remote=>true %></li>
    <%% end %>
    <%%= content_tag :li, link_to_next_page(@<%= instances_name %>, 'Next Page', :remote => true) %>
    <%%= content_tag :li, link_to_previous_page(@<%= instances_name %>, 'Previous Page', :remote => true) %>
  </ul>
</div>

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
humdrum-rails-0.1.3 lib/rails/generators/humdrum/resource/templates/views/bootstrap3/resource/_drop_down.html.erb
humdrum-rails-0.1.2 lib/rails/generators/humdrum/resource/templates/views/bootstrap3/resource/_drop_down.html.erb