gab-social/app/views/admin/preview_cards/index.html.haml
mgabdev 51fa8f2eb4 Added/Updated admin dashboard tables
• 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
2021-01-19 01:25:25 -05:00

33 lines
1.3 KiB
Plaintext

- content_for :page_title do
= "Preview Cards"
= form_tag admin_preview_cards_url, method: 'GET', class: 'simple_form' do
.fields-group
.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 :url, params[:url], class: 'string optional', placeholder: "Url"
.actions
%button= t('admin.accounts.search')
= link_to t('admin.accounts.reset'), admin_preview_cards_path, class: 'button negative'
= form_for(@form, url: admin_preview_cards_path()) do |f|
= hidden_field_tag :page, params[:page]
= hidden_field_tag :media, params[:media]
.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/preview_cards/preview_card', collection: @preview_cards, locals: { f: f }
= paginate @preview_cards