[phase-5]fix missing label for category selection field in term new/edit form

This commit is contained in:
Toru Takahashi 2018-05-08 06:25:53 +09:00 committed by TAKAHASHI,Toru
parent 1378a95aa4
commit a2b0a7a406

View File

@ -1,5 +1,5 @@
<div class="box tabular">
<p><%= form.text_field :name, size: 80, required: true %></p>
<p><%= form.collection_select :category_id, GlossaryCategory.all, :id, :name, include_blank: true %>
<p><%= form.select :category_id, GlossaryCategory.all.pluck(:name, :id), include_blank: true %>
<p><%= form.text_area :description, size: "80x10", required: false %></p>
</div>