Skip to content

Commit

Permalink
put the translation of pdfs of show
Browse files Browse the repository at this point in the history
  • Loading branch information
puppe1990 committed Oct 17, 2024
1 parent 976ee63 commit 85e46a1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/views/productions/show.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
</div>

<div class="actions">
<%= link_to 'Download Service Order PDF', service_order_pdf_production_path(@production), class: 'btn btn-primary', target: '_blank' %>
<%= link_to 'Download Payment Order PDF', payment_order_pdf_production_path(@production), class: 'btn btn-success', target: '_blank' %>
<%= link_to t('.download_service_order_pdf'), service_order_pdf_production_path(@production), class: 'btn btn-primary', target: '_blank' %>
<%= link_to t('.download_payment_order_pdf'), payment_order_pdf_production_path(@production), class: 'btn btn-success', target: '_blank' %>
</div>

<div class="section-body">
Expand Down
2 changes: 2 additions & 0 deletions config/locales/pt-BR.models.productions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,8 @@ pt-BR:
payments: "Pagamentos"
total_paid: "Total Pago"
remaining_balance: "Saldo Restante"
download_service_order_pdf: "Baixar PDF da Ordem de Serviço"
download_payment_order_pdf: "Baixar PDF da Ordem de Pagamento"
new:
title: "Nova Produção"
new_production: "Criar Nova Produção"
Expand Down

0 comments on commit 85e46a1

Please sign in to comment.