Add increment and decrement functionality to left resource
This commit is contained in:
parent
033dbe4c40
commit
4c60baf7c1
8 changed files with 74 additions and 12 deletions
5
app/views/admin/resources/update.js.erb
Normal file
5
app/views/admin/resources/update.js.erb
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
$('<%= "#group_large_update_actions_#{@resource.id.to_s}" %>').html('<%= j render partial: "update_links", locals: { conference: @conference, resource: @resource} %>');
|
||||
$('<%= "#group_small_update_actions_#{@resource.id.to_s}" %>').html('<%= j render partial: "update_links", locals: { conference: @conference, resource: @resource} %>');
|
||||
$('<%= "#resource_left_#{@resource.id.to_s}" %>').text('<%= "#{@resource.quantity - @resource.used }/#{@resource.quantity}"%>').fadeIn();
|
||||
$('<%= "#resource_used_#{@resource.id.to_s}" %>').text(<%=@resource.used%>).fadeIn();
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue