diff options
author | Eugen Rochko <eugen@zeonfederated.com> | 2017-05-18 00:38:01 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-05-18 00:38:01 +0200 |
commit | 226c9836e464b3066015799c7572cd8ff3758968 (patch) | |
tree | 1f44076813ac2197eb7a865e2777e1b616346a4b /app/views | |
parent | 05008f3930d5265a9bc3c06e01afca46c5ff8978 (diff) |
Add reset button to admin accounts search, improve looks a little (#3100)
Diffstat (limited to 'app/views')
-rw-r--r-- | app/views/admin/accounts/index.html.haml | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/app/views/admin/accounts/index.html.haml b/app/views/admin/accounts/index.html.haml index c9a5dd17a..6d2849c32 100644 --- a/app/views/admin/accounts/index.html.haml +++ b/app/views/admin/accounts/index.html.haml @@ -20,7 +20,7 @@ %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 += form_tag admin_accounts_url, method: 'GET', class: 'simple_form' do .fields-group - Admin::FilterHelper::ACCOUNT_FILTERS.each do |key| - if params[key].present? @@ -28,12 +28,11 @@ - %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' + = text_field_tag key, params[key], class: 'string optional', placeholder: I18n.t("admin.accounts.#{key}") .actions - %button.btn= t('admin.accounts.search') + %button= t('admin.accounts.search') + = link_to t('admin.accounts.reset'), admin_accounts_path, class: 'button negative' %table.table %thead |