2020-12-21 18:25:05 +00:00
|
|
|
- content_for :header_tags do
|
|
|
|
= javascript_pack_tag 'admin', integrity: true, async: true, crossorigin: 'anonymous'
|
|
|
|
|
2020-12-16 00:31:30 +00:00
|
|
|
- content_for :page_title do
|
2021-01-19 06:25:25 +00:00
|
|
|
= "Chat Messages"
|
2020-12-16 00:31:30 +00:00
|
|
|
|
2021-01-19 06:25:25 +00:00
|
|
|
= form_tag admin_chat_messages_url, method: 'GET', class: 'simple_form' do
|
|
|
|
.fields-group
|
|
|
|
.input.string.optional
|
|
|
|
= text_field_tag :text, params[:text], class: 'string optional', placeholder: "Text contains"
|
|
|
|
.input.string.optional
|
|
|
|
= text_field_tag :id, params[:id], class: 'string optional', placeholder: "Id"
|
|
|
|
.input.string.optional
|
|
|
|
= text_field_tag :account_id, params[:account_id], class: 'string optional', placeholder: "Account Id"
|
|
|
|
.input.string.optional
|
|
|
|
= text_field_tag :created_at_gte, params[:created_at_gte], class: 'string optional', placeholder: "Created >= (MM-DD-YYYY)"
|
|
|
|
.input.string.optional
|
|
|
|
= text_field_tag :created_at_lte, params[:created_at_lte], class: 'string optional', placeholder: "Created <= (MM-DD-YYYY)"
|
|
|
|
|
|
|
|
.actions
|
|
|
|
%button= t('admin.accounts.search')
|
|
|
|
= link_to t('admin.accounts.reset'), admin_chat_messages_path, class: 'button negative'
|
2020-12-16 00:31:30 +00:00
|
|
|
|
2021-01-19 06:25:25 +00:00
|
|
|
= form_for(@form, url: admin_chat_messages_path('')) do |f|
|
2020-12-21 18:25:05 +00:00
|
|
|
= hidden_field_tag :page, params[:page]
|
|
|
|
|
|
|
|
.batch-table
|
|
|
|
.batch-table__toolbar
|
|
|
|
%label.batch-table__toolbar__select.batch-checkbox-all
|
|
|
|
= check_box_tag :batch_checkbox_all, nil, false
|
|
|
|
.batch-table__toolbar__actions
|
|
|
|
= f.button safe_join([fa_icon('trash'), 'Delete']), name: :delete, class: 'table-action-link', type: :submit, data: { confirm: t('admin.reports.are_you_sure') }
|
|
|
|
.batch-table__body
|
|
|
|
= render partial: 'admin/chat_messages/chat_message', collection: @chat_messages, locals: { f: f }
|
2020-12-16 00:31:30 +00:00
|
|
|
|
2020-12-21 18:25:05 +00:00
|
|
|
= paginate @chat_messages
|