2023-09-28 15:40:28 +02:00
|
|
|
= render 'shared/error_messages', object: form.object
|
2017-11-27 16:07:59 +01:00
|
|
|
|
2023-09-28 15:40:28 +02:00
|
|
|
.fields-row
|
|
|
|
.fields-row__column.fields-row__column-6.fields-group
|
|
|
|
= form.input :max_uses, wrapper: :with_label, collection: invites_max_uses_options, label_method: ->(num) { I18n.t('invites.max_uses', count: num) }, prompt: I18n.t('invites.max_uses_prompt')
|
|
|
|
.fields-row__column.fields-row__column-6.fields-group
|
|
|
|
= form.input :expires_in, wrapper: :with_label, collection: invites_expires_options.map(&:to_i), label_method: ->(i) { I18n.t("invites.expires_in.#{i}") }, prompt: I18n.t('invites.expires_in_prompt')
|
2017-11-27 16:07:59 +01:00
|
|
|
|
2023-09-28 15:40:28 +02:00
|
|
|
.fields-group
|
|
|
|
= form.input :autofollow, wrapper: :with_label
|
2018-06-15 18:00:23 +02:00
|
|
|
|
2023-09-28 15:40:28 +02:00
|
|
|
.actions
|
|
|
|
= form.button :button, t('invites.generate'), type: :submit
|