diff options
author | ThibG <thib@sitedethib.com> | 2019-11-30 19:53:58 +0100 |
---|---|---|
committer | Eugen Rochko <eugen@zeonfederated.com> | 2019-11-30 19:53:58 +0100 |
commit | d8f96028c54bb47e6edddbd936bc8f2301dc9fa3 (patch) | |
tree | 2353eca5c958219f2309acfad17db8ab9ed5dce6 /app/views/admin | |
parent | f3a93987b6c3af92aee11fdb4424b8791a67e448 (diff) |
Add ability to filter reports by target account domain (#12154)
* Add ability to filter reports by target account domain * Reword by_target_domain label
Diffstat (limited to 'app/views/admin')
-rw-r--r-- | app/views/admin/reports/index.html.haml | 14 |
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 |