diff options
author | alpaca-tc <alpaca-tc@alpaca.tc> | 2017-05-17 10:00:34 +0900 |
---|---|---|
committer | Eugen Rochko <eugen@zeonfederated.com> | 2017-05-17 03:00:34 +0200 |
commit | e89e4355eb2ab74f7ec93313508c3afb72539855 (patch) | |
tree | 5fc9845728edcc62c3dc72fc4d97c30c42c5766c /app/views/admin/accounts | |
parent | abe0d9421f2bc6227360f9420aeac2cefbcdc023 (diff) |
Add filter to AccountFilter (#2968)
Diffstat (limited to 'app/views/admin/accounts')
-rw-r--r-- | app/views/admin/accounts/index.html.haml | 15 |
1 files changed, 15 insertions, 0 deletions
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 |