Skip to content

Commit

Permalink
download relatorio individual
Browse files Browse the repository at this point in the history
  • Loading branch information
matheus-fvp committed Feb 5, 2024
1 parent 2272852 commit fa973d3
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions lib/pescarte_web/live/pesquisa/relatorio_live/index.html.heex
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,15 @@
<%= elem(relatorio, 1).pesquisador.usuario.primeiro_nome %>
</:column>
<:column :let={relatorio} label="Status"><%= elem(relatorio, 1).status %></:column>
<:column :let={_} label="Baixar">
<div class="flex-center"><Lucideicons.download /></div>
<:column :let={relatorio} label="Baixar">
<div class="flex-center">
<Phoenix.Component.link
href={"/app/pesquisa/relatorios/#{elem(relatorio, 0)}/download-pdf"}
target="_blank"
>
<Lucideicons.download />
</Phoenix.Component.link>
</div>
</:column>
</.table>
</.form>
Expand Down

0 comments on commit fa973d3

Please sign in to comment.