Excel export functionality for yields

This commit is contained in:
2024-05-18 23:00:40 +03:00
parent 94c2da00ac
commit 34f6d44b98
7 changed files with 80 additions and 2 deletions

View File

@@ -13,7 +13,9 @@
</.modal>
<% end %>
<span><%= live_patch "New Yield", to: Routes.yield_index_path(@socket, :new) %></span>
<span class="new-yield-link"><%= live_patch "New Yield", to: Routes.yield_index_path(@socket, :new) %></span>
<%= link "Download as Excel", to: Routes.exports_yield_path(@socket, :index) %>
<table>
<thead>