2018-09-18 16:45:58 +02:00
|
|
|
.fields-row
|
|
|
|
.fields-row__column.fields-row__column-6.fields-group
|
2020-01-07 16:50:00 +01:00
|
|
|
= f.not-a-real-input :phrase, as: :string, wrapper: :with_label, hint: false
|
2018-09-18 16:45:58 +02:00
|
|
|
.fields-row__column.fields-row__column-6.fields-group
|
2020-01-07 16:50:00 +01:00
|
|
|
= f.not-a-real-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')
|
2018-06-29 15:34:36 +02:00
|
|
|
|
|
|
|
.fields-group
|
2020-01-07 16:50:00 +01:00
|
|
|
= f.not-a-real-input :context, wrapper: :with_block_label, collection: CustomFilter::VALID_CONTEXTS, as: :check_boxes, collection_wrapper_tag: 'ul', item_wrapper_tag: 'li', label_method: lambda { |context| I18n.t("filters.contexts.#{context}") }, include_blank: false
|
2018-06-29 15:34:36 +02:00
|
|
|
|
2018-09-18 16:45:58 +02:00
|
|
|
%hr.spacer/
|
|
|
|
|
2018-06-29 15:34:36 +02:00
|
|
|
.fields-group
|
2020-01-07 16:50:00 +01:00
|
|
|
= f.not-a-real-input :irreversible, wrapper: :with_label
|
2018-06-29 15:34:36 +02:00
|
|
|
|
2018-07-09 02:22:09 +02:00
|
|
|
.fields-group
|
2020-01-07 16:50:00 +01:00
|
|
|
= f.not-a-real-input :whole_word, wrapper: :with_label
|