Skip to content

Commit

Permalink
表示ONのコースのみ選択できるようにした
Browse files Browse the repository at this point in the history
  • Loading branch information
udaikue committed Aug 13, 2021
1 parent 0d66cca commit 2a59177
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/views/users/form/_course.html.slim
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
.form-item.is-hidden
.form-item
= f.label :course_id, class: 'a-form-label is-required'
.a-button.is-md.is-secondary.is-select.is-block
= f.collection_select :course_id, Course.order(:created_at), :id, :title, {}
= f.collection_select :course_id, Course.where(open_course: true).order(:created_at), :id, :title, {}
.a-form-help
p コースの一覧は#{link_to 'こちら', courses_path, trget: '_blank'}

0 comments on commit 2a59177

Please sign in to comment.