about summary refs log tree commit diff
path: root/app/views/filters/_fields.html.haml
blob: 3df611596219df78d7f75c2460fa886f33d7f048 (plain) (blame)
1
2
3
4
5
6
7
.fields-row
  .fields-row__column.fields-row__column-6.fields-group
    = 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')