33 lines
1.3 KiB
Plaintext
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
|