1
0

_form.html.haml 715 B

12345678910111213
  1. = render 'shared/error_messages', object: form.object
  2. .fields-row
  3. .fields-row__column.fields-row__column-6.fields-group
  4. = 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')
  5. .fields-row__column.fields-row__column-6.fields-group
  6. = 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')
  7. .fields-group
  8. = form.input :autofollow, wrapper: :with_label
  9. .actions
  10. = form.button :button, t('invites.generate'), type: :submit