gab-social/app/views/admin/groups/index.html.haml

33 lines
1.2 KiB
Plaintext
Raw Normal View History

- content_for :page_title do
= t('admin.groups.title')
= form_tag admin_groups_url, method: 'GET', class: 'simple_form' do
.fields-group
.input.string.optional
= text_field_tag :id, params[:id], class: 'string optional', placeholder: "Id"
.input.string.optional
= text_field_tag :title, params[:title], class: 'string optional', placeholder: "Title"
.input.string.optional
= text_field_tag :description, params[:description], class: 'string optional', placeholder: "Description"
.input.string.optional
= text_field_tag :member_count_gte, params[:member_count_gte], class: 'string optional', placeholder: "Member Count >="
.input.string.optional
= text_field_tag :created_at_gte, params[:created_at_gte], class: 'string optional', placeholder: "Created >= (MM-DD-YYYY)"
.actions
%button= t('admin.accounts.search')
= link_to t('admin.accounts.reset'), admin_groups_path, class: 'button negative'
.table-wrapper
%table.table
%thead
%tr
%th= t('admin.groups.id')
%th= t('admin.groups.title')
%th= t('admin.groups.member_count')
%th Featured?
%th
%th
%tbody
= render @groups
= paginate @groups