From 66a78e2fc15e085785474a4fc714feff7dc8bb83 Mon Sep 17 00:00:00 2001 From: puppe1990 Date: Tue, 15 Oct 2024 13:39:26 -0300 Subject: [PATCH] improve the colors of buttons --- app/views/productions/calendar.html.erb | 36 +++++++++++++++++++++++-- config/locales/sidebar.pt-BR.yml | 3 +++ 2 files changed, 37 insertions(+), 2 deletions(-) diff --git a/app/views/productions/calendar.html.erb b/app/views/productions/calendar.html.erb index 82e021a4..7f3ebbf5 100644 --- a/app/views/productions/calendar.html.erb +++ b/app/views/productions/calendar.html.erb @@ -1,5 +1,5 @@

-

Productions Calendar

+

<%= t('productions.calendar') %>

@@ -23,7 +23,16 @@ <% end %> <% end %> <% else %> - Não Entregue + Não Entregue + <% if production.expected_delivery_date %> + <% if production.expected_delivery_date < Date.today %> + Entrega Atrasada + <% else %> + Entrega em Dia + <% end %> + <% else %> + Sem Data de Entrega + <% end %> <% end %>
<% end %> @@ -94,4 +103,27 @@ background-color: #17a2b8; color: white; } + + .badge-secondary { + background-color: #6c757d; + color: white; + } + + .badge-orange { + background-color: #fd7e14; + color: white; + } + + diff --git a/config/locales/sidebar.pt-BR.yml b/config/locales/sidebar.pt-BR.yml index cbabf793..f6602aa0 100644 --- a/config/locales/sidebar.pt-BR.yml +++ b/config/locales/sidebar.pt-BR.yml @@ -19,6 +19,9 @@ pt-BR: products_in_production_report: "Produtos em Produção" price_per_piece_report: "Preço por Peça" calendar: "Calendário de Produções" + previous: "Anterior" + today: "Hoje" + next: "Próximo" tailors: one: Costureiro two: Costureiros