Skip to content
This repository has been archived by the owner on Nov 29, 2017. It is now read-only.

Commit

Permalink
Merge pull request #387 from YaleSTC/386_print_payforms
Browse files Browse the repository at this point in the history
Fixed printing payforms. Closes #386.
  • Loading branch information
shippy committed Oct 12, 2014
2 parents 8b259fd + 797aaba commit 0352e21
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/views/payforms/index.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,6 @@
<br />
<%= link_to "My Current Payform", go_payforms_path, class: "btn btn-default" %>
<% if current_user.is_admin_of?(current_department) %>
<%= link_to "Print all approved payforms", create_payform_set_path, class: "btn btn-default" if @payforms.select{|p| p.approved && !p.printed }.length > 0 %>
<%= link_to "Print all approved payforms", payform_sets_path, method: :post, class: "btn btn-default" if @payforms.select{|p| p.approved && !p.printed }.length > 0 %>
<%= link_to "Prune all empty payforms", prune_payforms_path, method: :delete, class: "btn btn-default" %>
<% end %>

0 comments on commit 0352e21

Please sign in to comment.