Skip to content

Commit

Permalink
allow profiles to include a template in the item display
Browse files Browse the repository at this point in the history
  • Loading branch information
jambun committed Jul 11, 2022
1 parent 65b0414 commit 6666bc5
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions public/views/request_list/_item_display.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@

<table class="rl-item-table">
<tr>
<td class="rl-display" rowspan="<%= is_record ? 4 : 3 %>" width="30px">
<td class="rl-display" rowspan="<%= is_record ? 5 : 4 %>" width="30px">
<input type="checkbox" name="item-check-<%= @item_count %>" class="rl-item-check"/>
</td>
<td class="rl-display rl-display-left" rowspan="<%= is_record ? 4 : 3 %>" width="30px">
<td class="rl-display rl-display-left" rowspan="<%= is_record ? 5 : 4 %>" width="30px">
<div class="rl-item-count-label"><%= @item_count %></div>
</td>

Expand Down Expand Up @@ -92,6 +92,12 @@

</tr>

<tr>
<td></td>
<td>
<%= render partial: "request_list/#{handler.profile}/item_display", locals: {:form => form, :item => item, :handler => handler } %>
</td>
</tr>
</table>

<%= render(partial: 'request_list/expand_item_button', locals: {:item => item }) if handler.list_opts[:expandable_items] %>
Expand Down
Empty file.

0 comments on commit 6666bc5

Please sign in to comment.