Atualização dos icones para um modelo chapado
This commit is contained in:
@@ -2,8 +2,8 @@
|
||||
<% content_for :title, 'Consolidações arquivadas' %>
|
||||
|
||||
<div class="flex items-center justify-between mb-6">
|
||||
<h1 class="text-2xl font-bold text-white">📁 Consolidações arquivadas</h1>
|
||||
<%= link_to '← Voltar às ativas', consolidacoes_path,
|
||||
<h1 class="text-2xl font-bold text-white flex items-center gap-2"><%= icone :arquivadas %> Consolidações arquivadas</h1>
|
||||
<%= link_to rotulo(:voltar, 'Voltar às ativas', cor: nil), consolidacoes_path,
|
||||
class: 'text-gray-400 hover:text-white border border-[#2a2a2a] px-4 py-3 rounded-lg min-h-[48px] flex items-center' %>
|
||||
</div>
|
||||
|
||||
@@ -26,12 +26,12 @@
|
||||
<%= badge_status(c.status) %>
|
||||
</div>
|
||||
<p class="text-gray-400 text-sm">
|
||||
📅 <%= l c.data_inicio, format: :short %> → <%= l c.data_fim, format: :short %>
|
||||
· 👤 <%= c.consolidacao_motoristas.count %> motorista(s)
|
||||
<%= icone :calendario %> <%= l c.data_inicio, format: :short %> <%= icone :avancar, tamanho: 'w-3 h-3' %> <%= l c.data_fim, format: :short %>
|
||||
· <%= icone :pessoa %> <%= c.consolidacao_motoristas.count %> motorista(s)
|
||||
· Criada por <%= c.criador.nome_display %>
|
||||
</p>
|
||||
<p class="text-gray-500 text-xs mt-1">
|
||||
📁 Arquivada
|
||||
<%= icone :arquivar %> Arquivada
|
||||
<% if c.arquivado_em.present? %>em <%= l c.arquivado_em, format: :short %><% end %>
|
||||
<% if c.arquivador.present? %>por <%= c.arquivador.nome_display %><% end %>
|
||||
</p>
|
||||
@@ -45,12 +45,16 @@
|
||||
|
||||
<% if policy(c).destroy? %>
|
||||
<div class="flex gap-2">
|
||||
<%= button_to '♻️ Reativar', reativar_consolidacao_path(c), method: :post,
|
||||
<%= button_to reativar_consolidacao_path(c), method: :post,
|
||||
form: { data: { turbo_confirm: 'Reativar esta consolidação? Ela voltará para a lista de ativas.' } },
|
||||
class: 'bg-orange-500 hover:bg-orange-600 text-black font-bold px-4 py-2.5 rounded-lg text-sm min-h-[44px]' %>
|
||||
<%= button_to '🗑️ Excluir', consolidacao_path(c), method: :delete,
|
||||
class: 'bg-orange-500 hover:bg-orange-600 text-black font-bold px-4 py-2.5 rounded-lg text-sm min-h-[44px] inline-flex items-center gap-2' do %>
|
||||
<%= icone :restaurar, cor: nil, tamanho: 'w-4 h-4' %> Reativar
|
||||
<% end %>
|
||||
<%= button_to consolidacao_path(c), method: :delete,
|
||||
form: { data: { turbo_confirm: 'EXCLUIR PERMANENTEMENTE esta consolidação e todas as suas classificações? Esta ação NÃO pode ser desfeita.' } },
|
||||
class: 'text-red-400 hover:text-white hover:bg-red-600 border border-red-900 px-4 py-2.5 rounded-lg text-sm min-h-[44px]' %>
|
||||
class: 'text-red-400 hover:text-white hover:bg-red-600 border border-red-900 px-4 py-2.5 rounded-lg text-sm min-h-[44px] inline-flex items-center gap-2' do %>
|
||||
<%= icone :excluir, cor: nil, tamanho: 'w-4 h-4' %> Excluir
|
||||
<% end %>
|
||||
</div>
|
||||
<% end %>
|
||||
</div>
|
||||
@@ -60,7 +64,7 @@
|
||||
</div>
|
||||
<% else %>
|
||||
<div class="bg-[#1a1a1a] border border-[#2a2a2a] rounded-xl p-12 text-center">
|
||||
<p class="text-5xl mb-4">🗂️</p>
|
||||
<p class="mb-4"><%= icone :pasta, tamanho: 'w-12 h-12', cor: 'text-gray-600' %></p>
|
||||
<p class="text-gray-400 mb-4">Nenhuma consolidação arquivada.</p>
|
||||
<%= link_to 'Ver consolidações ativas', consolidacoes_path,
|
||||
class: 'inline-block bg-orange-500 hover:bg-orange-600 text-black font-bold px-5 py-3 rounded-lg' %>
|
||||
|
||||
Reference in New Issue
Block a user