about summary refs log tree commit diff
path: root/app/views/admin/reports/index.html.haml
diff options
context:
space:
mode:
authorThibG <thib@sitedethib.com>2019-12-01 13:13:28 +0100
committerGitHub <noreply@github.com>2019-12-01 13:13:28 +0100
commit7d59e25fbd7a0209c11cbe6aac4400bbca4de82b (patch)
treefc21c09cd6e0e8a666655df8b7f6802745a7e473 /app/views/admin/reports/index.html.haml
parent7f6315841c98a1eee6cb57171a91a88f5c5343df (diff)
parentfae7e0cacec60094dc1ce78d9f63b19b1cacde2d (diff)
Merge pull request #1250 from ThibG/glitch-soc/merge-upstream
Merge upstream changes
Diffstat (limited to 'app/views/admin/reports/index.html.haml')
-rw-r--r--app/views/admin/reports/index.html.haml14
1 files changed, 14 insertions, 0 deletions
diff --git a/app/views/admin/reports/index.html.haml b/app/views/admin/reports/index.html.haml
index bfbd32108..b09472270 100644
--- a/app/views/admin/reports/index.html.haml
+++ b/app/views/admin/reports/index.html.haml
@@ -8,6 +8,20 @@
       %li= filter_link_to t('admin.reports.unresolved'), resolved: nil
       %li= filter_link_to t('admin.reports.resolved'), resolved: '1'
 
+= form_tag admin_reports_url, method: 'GET', class: 'simple_form' do
+  .fields-group
+    - Admin::FilterHelper::REPORT_FILTERS.each do |key|
+      - if params[key].present?
+        = hidden_field_tag key, params[key]
+
+    - %i(by_target_domain).each do |key|
+      .input.string.optional
+        = text_field_tag key, params[key], class: 'string optional', placeholder: I18n.t("admin.reports.#{key}")
+
+    .actions
+      %button= t('admin.accounts.search')
+      = link_to t('admin.accounts.reset'), admin_reports_path, class: 'button negative'
+
 - @reports.group_by(&:target_account_id).each do |target_account_id, reports|
   - target_account = reports.first.target_account
   .report-card