Sha256: 15b0fde6548c19d1b5cbbb5f4d9ec236a93cae24686047aac0c6535d7c1ea458

Contents?: true

Size: 493 Bytes

Versions: 3

Compression:

Stored size: 493 Bytes

Contents

<%= mighty_filter_for @users_grid do |filter| %>
  <%= filter.label :name %>
  <%= filter.text_field :name %>
  <%= filter.label :role %>
  <%= filter.select :role, [:user, :publisher, :moderator, :admin].map{|r| [r.capitalize, r]}, prompt: 'Select role' %>
  <label><%= filter.check_box :is_banned, 't' %> Banned</label>
  <%= filter.submit %>
  <%= filter.reset %>
<% end %>

<%= grid @users_grid do |g| %>
  <% g.column :name %>
  <% g.column :role %>
  <% g.column :is_banned %>
<% end %>

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
mighty_grid-1.0.0 spec/dummy/app/views/users/index.html
mighty_grid-0.7.0 spec/dummy/app/views/users/index.html
mighty_grid-0.6.1 spec/dummy/app/views/users/index.html