diff options
Diffstat (limited to 'app')
-rw-r--r-- | app/javascript/styles/forms.scss | 9 | ||||
-rw-r--r-- | app/views/admin/accounts/index.html.haml | 9 |
2 files changed, 13 insertions, 5 deletions
diff --git a/app/javascript/styles/forms.scss b/app/javascript/styles/forms.scss index d66359943..ce31f01af 100644 --- a/app/javascript/styles/forms.scss +++ b/app/javascript/styles/forms.scss @@ -159,9 +159,11 @@ code { .actions { margin-top: 30px; + display: flex; } button, + .button, .block-button { display: block; width: 100%; @@ -170,6 +172,8 @@ code { background: $ui-highlight-color; color: $primary-text-color; font-size: 18px; + line-height: inherit; + height: auto; padding: 10px; text-transform: uppercase; text-decoration: none; @@ -179,6 +183,11 @@ code { font-weight: 500; outline: 0; margin-bottom: 10px; + margin-right: 10px; + + &:last-child { + margin-right: 0; + } &:hover { background-color: lighten($ui-highlight-color, 5%); 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 |