Skip to content

Commit

Permalink
Author の表示順序を変更。
Browse files Browse the repository at this point in the history
  • Loading branch information
mikoto2000 committed Sep 8, 2024
1 parent 523f70a commit 2f9f249
Showing 1 changed file with 15 additions and 15 deletions.
30 changes: 15 additions & 15 deletions app/views/book_masters/index.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,19 @@
<%= f.search_field :title_cont, class: %w[form-control form-control-sm] %>
</div>
</div>
<div>
<%= f.label :author.to_s + "_in".to_s %>
<div class="ps-2">
<%= f.collection_select(
:book_author_relationship_author_id.to_s + "_in".to_s,
Author.all,
:id,
:name,
{},
{ multiple: true }
) %>
</div>
</div>
<div>
<%= f.label :publication_date %>
<div class="ps-2">
Expand All @@ -57,19 +70,6 @@
) %>
</div>
</div>
<div>
<%= f.label :author.to_s + "_in".to_s %>
<div class="ps-2">
<%= f.collection_select(
:book_author_relationship_author_id.to_s + "_in".to_s,
Author.all,
:id,
:name,
{},
{ multiple: true }
) %>
</div>
</div>
<div>
<%= f.label :created_at %>
<div class="ps-2">
Expand Down Expand Up @@ -106,9 +106,9 @@
<th><%= sort_link(@q, :id, default_order: :asc, class: "d-block") %></th>
<th><%= sort_link(@q, :isbn, default_order: :asc, class: "d-block") %></th>
<th><%= sort_link(@q, :title, default_order: :asc, class: "d-block") %></th>
<th><%= sort_link(@q, :author, default_order: :asc, class: "d-block") %></th>
<th><%= sort_link(@q, :publication_date, default_order: :asc, class: "d-block") %></th>
<th><%= sort_link(@q, :ndc_category_id, default_order: :asc, class: "d-block") %></th>
<th><%= sort_link(@q, :author, default_order: :asc, class: "d-block") %></th>
<th><%= sort_link(@q, :created_at, default_order: :asc, class: "d-block") %></th>
<th><%= sort_link(@q, :updated_at, default_order: :asc, class: "d-block") %></th>
<th><%= t("view.index.operation") %></th>
Expand All @@ -123,9 +123,9 @@
<td><%= book_master.id %></td>
<td><%= book_master.isbn %></td>
<td><%= book_master.title %></td>
<td><%= book_master.authors.map{|author| author.name }.join(", ") %></td>
<td><%= book_master.publication_date && l(book_master.publication_date) %></td>
<td><%= book_master.ndc_category.name %></td>
<td><%= book_master.authors.map{|author| author.name }.join(", ") %></td>
<td><%= book_master.created_at && l(book_master.created_at) %></td>
<td><%= book_master.updated_at && l(book_master.updated_at) %></td>
<td>
Expand Down

0 comments on commit 2f9f249

Please sign in to comment.