Skip to content

Commit

Permalink
Merge pull request #127 from mlibrary/ARC-78-Hot-Fix
Browse files Browse the repository at this point in the history
ARC-78 Hot Fix
  • Loading branch information
gkostin1966 authored Jun 3, 2024
2 parents c9b285d + bebe86e commit 2c79c4d
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 9 deletions.
6 changes: 6 additions & 0 deletions app/views/catalog/_aeon_request_checkbox.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,10 @@
<span class="sr-only">Request "<%= document.aeon_item_sub_title_sr_only %>"</span>
<% end %>
</label>

<% if local_assigns[:label] %>
<div class="d-flex align-items-center" style="gap: 0.5rem">
<%= render "arclight/requests/aeon_hidden_form_request" %>
</div>
<% end %>
</div>
24 changes: 15 additions & 9 deletions app/views/catalog/_show_default.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,13 @@
<% end %>
<% if document.is_checkbox_requestable? %>
<%= render "aeon_request_checkbox", document: document, class: 'px-0 pb-3 mt-n3', label_class: 'btn btn-outline-secondary btn-outline-request p-2', label: 'Request Item' %>
<%= render "aeon_request_checkbox", document: document, class: 'px-0 pb-3 mt-n3 d-flex align-items-center', label_class: 'btn btn-outline-secondary btn-outline-request p-2 m-0', label: 'Select Item' %>
<% else %>
<% unless document.collection_has_requestable_components? || document.children? %>
<div class="mb-3">
<%= render partial: 'arclight/requests', locals: { document: document } %>
</div>
<% end %>
<% end %>
<%# ================ %>
Expand Down Expand Up @@ -251,16 +257,16 @@
<%# ========================== %>

<div class="contents-wrapper">
<h2 class="al-show-sub-heading" id="<%= t("arclight.views.show.sections.contents").parameterize %>">
<%= t("arclight.views.show.sections.contents") %>
</h2>
<div class="d-flex mt-3 mb-3">
<div class="flex-fill">
<%= render partial: 'arclight/requests', locals: { document: document } %>
<h2 class="al-show-sub-heading" id="<%= t("arclight.views.show.sections.contents").parameterize %>">
<%= t("arclight.views.show.sections.contents") %>
</h2>
<div class="d-flex mt-3 mb-3">
<div class="flex-fill">
<%= render partial: 'arclight/requests', locals: { document: document } %>
</div>
</div>
</div>
</div>

<%= document.non_component_contents %>
<% if document.children? %>
<%= content_tag(
Expand Down

0 comments on commit 2c79c4d

Please sign in to comment.