51fa8f2eb4
• Added: - New Account filtering - PreviewCard viewing/sorting/filtering deleting (todo) - DeletePreviewCardWorker, Service - Status viewing/sorting/filtering deleting - ChatMessage viewing/sorting/filtering deleting (todo) - Account > Follows view • Updated: - LinkBlock to sort alphabetically - Groups to be under "Moderation" instead of "Admin" in navigation.rb - Status in admin to have group name/link - Reports reset button - Group filtering/sorting - LinkBlock filtering/sorting - Account now has bio and few more data points in dashboard
37 lines
1.7 KiB
Plaintext
37 lines
1.7 KiB
Plaintext
- content_for :header_tags do
|
|
= javascript_pack_tag 'admin', integrity: true, async: true, crossorigin: 'anonymous'
|
|
|
|
- content_for :page_title do
|
|
= "Chat Messages"
|
|
|
|
= 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'
|
|
|
|
= form_for(@form, url: admin_chat_messages_path('')) do |f|
|
|
= 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 }
|
|
|
|
= paginate @chat_messages
|