Skip to content

Commit

Permalink
require invite_request_fields
Browse files Browse the repository at this point in the history
  • Loading branch information
mashirozx committed Sep 14, 2020
1 parent 07edb26 commit b1e4c5e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/views/about/_registration.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
- if approved_registrations?
.fields-group
= f.simple_fields_for :invite_request do |invite_request_fields|
= invite_request_fields.input :text, as: :text, wrapper: :with_block_label, required: false
= invite_request_fields.input :text, as: :text, wrapper: :with_block_label, required: true

.fields-group
= f.input :agreement, as: :boolean, wrapper: :with_label, label: t('auth.checkbox_agreement_html', rules_path: about_more_path, terms_path: terms_path), required: true, disabled: closed_registrations?
Expand Down
2 changes: 1 addition & 1 deletion app/views/auth/registrations/new.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
- if approved_registrations? && !@invite.present?
.fields-group
= f.simple_fields_for :invite_request, resource.invite_request || resource.build_invite_request do |invite_request_fields|
= invite_request_fields.input :text, as: :text, wrapper: :with_block_label, required: false
= invite_request_fields.input :text, as: :text, wrapper: :with_block_label, required: true

= f.input :invite_code, as: :hidden

Expand Down

0 comments on commit b1e4c5e

Please sign in to comment.