From e89e4355eb2ab74f7ec93313508c3afb72539855 Mon Sep 17 00:00:00 2001 From: alpaca-tc Date: Wed, 17 May 2017 10:00:34 +0900 Subject: Add filter to AccountFilter (#2968) --- app/views/admin/accounts/index.html.haml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'app/views/admin/accounts/index.html.haml') diff --git a/app/views/admin/accounts/index.html.haml b/app/views/admin/accounts/index.html.haml index 0cff944ba..c9a5dd17a 100644 --- a/app/views/admin/accounts/index.html.haml +++ b/app/views/admin/accounts/index.html.haml @@ -20,6 +20,21 @@ %li= filter_link_to t('admin.accounts.order.alphabetic'), recent: nil %li= filter_link_to t('admin.accounts.order.most_recent'), recent: '1' += form_tag(admin_accounts_url, { method: 'GET', class: 'simple_form' }) do + .fields-group + - Admin::FilterHelper::ACCOUNT_FILTERS.each do |key| + - if params[key].present? + = hidden_field_tag key, params[key] + + - %i(username display_name email ip).each do |key| + .input.string.optional + .label_input + %label.string.optional= t("admin.accounts.#{key}") + = text_field_tag key, params[key], class: 'string optional' + + .actions + %button.btn= t('admin.accounts.search') + %table.table %thead %tr -- cgit