From 61e3a90e50be6e5dba2d84ef31a7df171eb6be50 Mon Sep 17 00:00:00 2001 From: multiple creatures Date: Tue, 10 Dec 2019 03:44:43 -0600 Subject: add regex shortcut descriptions for filters --- app/views/filters/_fields.html.haml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'app/views') diff --git a/app/views/filters/_fields.html.haml b/app/views/filters/_fields.html.haml index a02b04e51..3df611596 100644 --- a/app/views/filters/_fields.html.haml +++ b/app/views/filters/_fields.html.haml @@ -1,5 +1,7 @@ .fields-row .fields-row__column.fields-row__column-6.fields-group - = f.input :phrase, as: :string, wrapper: :with_label, hint: false + = f.input :phrase, as: :string, wrapper: :with_label + %p.hint{ style: 'margin-bottom: 25px' }= t('simple_form.hints.defaults.phrase_html') + .fields-row__column.fields-row__column-6.fields-group = f.input :expires_in, wrapper: :with_label, collection: [30.minutes, 1.hour, 6.hours, 12.hours, 1.day, 1.week].map(&:to_i), label_method: lambda { |i| I18n.t("invites.expires_in.#{i}") }, prompt: I18n.t('invites.expires_in_prompt') -- cgit