-
Notifications
You must be signed in to change notification settings - Fork 71
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #7970 from fjordllc/feature/change_to_checkbox_and…
…_add_experiences 「プログラミング経験」を複数選択可能なチェックボックス形式へ変更
- Loading branch information
Showing
22 changed files
with
191 additions
and
137 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
.form-item | ||
= f.label :experiences, 'プログラミング経験(複数選択可)', class: 'a-form-label' | ||
|
||
.a-form-help | ||
p | ||
| プログラミング経験の有無について、以下のいずれかに該当する場合は該当する | ||
| 項目にチェックを入れてください。多くの方はどの項目にも該当しない「未経験」であるため、 | ||
| 心配なさらずにご回答ください。 | ||
| この情報は他のフィヨルドブートキャンプの参加者に公開されることはありません。 | ||
|
||
ul.block-checks.is-2-items.mt-4 | ||
= f.collection_check_boxes :experiences, User.experiences.pairs, :second, :first, class: 'label-checkbox' do |b| | ||
li.block-checks__item | ||
.a-block-check.is-checkbox | ||
= b.check_box(class: 'a-toggle-checkbox') | ||
= b.label(class: 'a-block-check__label is-ta-left') | ||
= b.text |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,15 @@ | ||
.form-item | ||
= f.label :job_seeker, class: 'a-form-label' | ||
= f.label :job_seeker, class: 'a-form-label' do | ||
| #{User.human_attribute_name :job_seeker}(任意) | ||
ul.block-checks.is-1-item | ||
li.block-checks__item | ||
.a-block-check.is-checkbox | ||
= f.check_box :job_seeker, class: 'a-toggle-checkbox' | ||
= f.label :job_seeker, class: 'a-block-check__label is-ta-left' do | ||
= User.human_attribute_name :job_seeker | ||
| 就職サポートを希望する | ||
.a-form-help | ||
p | ||
| 就職を希望する場合は、就職相談や就職先企業の紹介を行います(フィヨルドブートキャンプが紹介する企業に就職することが必須ではありません)。状況に合わせていつでも変更できます。この情報は他のフィヨルドブートキャンプ参加者には公開されません。 | ||
| 就職サポートを希望する場合、就職相談、提出書類のレビュー、 | ||
| 面接対策、企業の紹介など、就職に関する広範なサポートを提供します。 | ||
| 状況に応じて、サポートの内容をいつでも変更することが可能です。 | ||
| この情報は他のフィヨルドブートキャンプ参加者には公開されません。 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
23 changes: 23 additions & 0 deletions
23
db/data/20240718110343_copy_experience_to_experiences_for_user.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# frozen_string_literal: true | ||
|
||
class CopyExperienceToExperiencesForUser < ActiveRecord::Migration[6.1] | ||
def up | ||
User.find_each do |user| | ||
case user.experience | ||
when 'rails' | ||
user.experiences.set(:rails) | ||
when 'ruby' | ||
user.experiences.set(:ruby) | ||
when 'other_ruby' | ||
user.experiences.set(:languages_other_than_ruby_and_javascript) | ||
when 'html_css' | ||
user.experiences.set(:html_css) | ||
end | ||
user.save!(validate: false) | ||
end | ||
end | ||
|
||
def down | ||
raise ActiveRecord::IrreversibleMigration | ||
end | ||
end |
Oops, something went wrong.