Alteração Para uso dos Usuarios

This commit is contained in:
2026-06-24 15:10:38 -03:00
parent 057cde6fbd
commit 8572e6a842
19 changed files with 138 additions and 96 deletions

View File

@@ -20,6 +20,7 @@
<p class="text-gray-300 text-sm">
💰 <%= l cm.pago_em.to_date, format: :short %>
<% if cm.forma_pagamento.present? %>· <%= cm.forma_pagamento.humanize %><% end %>
<% if cm.nota_fiscal.present? %>· 🧾 NF <%= cm.nota_fiscal %><% end %>
</p>
</div>
<% end %>
@@ -78,11 +79,14 @@
💰 Pago em <%= l cm.pago_em.to_date, format: :short %>
<% if cm.forma_pagamento.present? %>via <%= cm.forma_pagamento.humanize %><% end %>
</p>
<% if cm.nota_fiscal.present? %>
<p class="text-gray-300 text-sm mt-0.5">🧾 Nota Fiscal: <%= cm.nota_fiscal %></p>
<% end %>
<% end %>
</div>
<% if c.finalizada? %>
<%= link_to '⬇️ Baixar meu holerite',
gerar_pdf_holerite_consolidacao_path(c, motorista: current_user.nome),
<%= link_to '⬇️ Baixar meu extrato',
gerar_pdf_extrato_consolidacao_path(c, motorista: current_user.nome),
data: { turbo: false },
class: 'w-full md:w-auto bg-orange-500 hover:bg-orange-600 text-black font-bold text-base px-6 py-4 rounded-xl min-h-[52px] flex items-center justify-center text-center' %>
<% else %>

View File

@@ -49,7 +49,7 @@
<% end %>
<p class="text-gray-300 text-base text-center mt-6">
💡 Você também pode escanear o QR Code do seu holerite para entrar direto.
💡 Você também pode escanear o QR Code do seu extrato para entrar direto.
</p>
<p class="text-center mt-4">
<%= link_to 'Sou administrador/gerente →', new_user_session_path, class: 'text-orange-500 hover:text-orange-400 text-sm' %>