Atualização dos icones para um modelo chapado
This commit is contained in:
@@ -15,10 +15,10 @@
|
||||
<%# ── Cabeçalho ─────────────────────────────────────────── %>
|
||||
<div class="flex flex-col sm:flex-row sm:items-center justify-between gap-4">
|
||||
<div>
|
||||
<h1 class="text-2xl font-bold text-white">📋 Planilha da Operação</h1>
|
||||
<h1 class="text-2xl font-bold text-white flex items-center gap-2"><%= icone :planilha %> Planilha da Operação</h1>
|
||||
<p class="text-gray-400 text-sm mt-0.5">
|
||||
<% if @modo == 'global' %>
|
||||
🌐 Global · <%= @periodo_inicio.strftime('%d/%m/%Y') %> – <%= @periodo_fim.strftime('%d/%m/%Y') %>
|
||||
<%= icone :global %> Global · <%= @periodo_inicio.strftime('%d/%m/%Y') %> – <%= @periodo_fim.strftime('%d/%m/%Y') %>
|
||||
<% elsif @metricas&.data_inicio %>
|
||||
<%= @metricas.operacoes_label %> · <%= @metricas.data_inicio.strftime('%d/%m/%Y') %> – <%= @metricas.data_fim.strftime('%d/%m/%Y') %>
|
||||
<% elsif @operacao %>
|
||||
@@ -27,7 +27,7 @@
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<%= link_to '← Dashboard de Operações',
|
||||
<%= link_to rotulo(:voltar, 'Dashboard de Operações', cor: nil),
|
||||
operacoes_dashboard_path({ modo: @modo, operacao: @operacao, inicio: ini_iso, fim: fim_iso }.compact),
|
||||
data: { turbo: false },
|
||||
class: 'px-4 py-2.5 rounded-xl text-sm whitespace-nowrap bg-[#1a1a1a] text-gray-300 border border-white/10 hover:border-orange-500' %>
|
||||
@@ -35,10 +35,10 @@
|
||||
|
||||
<%# ── Seleção de escopo: operação única ou global ───────── %>
|
||||
<div class="flex flex-wrap items-center gap-2">
|
||||
<% pills = { 'operacao' => '🏥 Operação', 'global' => '🌐 Global' } %>
|
||||
<% pills.each do |m, label| %>
|
||||
<% pills = { 'operacao' => [:operacao, 'Operação'], 'global' => [:global, 'Global'] } %>
|
||||
<% pills.each do |m, (ic, label)| %>
|
||||
<% ativo = @modo == m %>
|
||||
<%= link_to label,
|
||||
<%= link_to rotulo(ic, label, cor: (ativo ? nil : 'text-brand-laranja')),
|
||||
operacoes_planilha_path({ modo: m, operacao: @operacao, inicio: ini_iso, fim: fim_iso, q: @busca.presence }.compact),
|
||||
data: { turbo: false },
|
||||
class: "px-4 py-2 rounded-xl text-sm font-semibold whitespace-nowrap #{ativo ? 'bg-orange-500 text-black' : 'bg-[#1a1a1a] text-gray-300 border border-white/10 hover:border-orange-500'}" %>
|
||||
@@ -64,7 +64,7 @@
|
||||
|
||||
<%# Planilha Entregas preenchida (modelo entregue ao cliente) %>
|
||||
<% if @operacao %>
|
||||
<%= link_to '⬇️ Baixar Excel preenchido', operacoes_planilha_baixar_path(operacao: @operacao),
|
||||
<%= link_to rotulo(:baixar, 'Baixar Excel preenchido', cor: nil), operacoes_planilha_baixar_path(operacao: @operacao),
|
||||
data: { turbo: false },
|
||||
title: 'Planilha Entregas da operação com status/ocorrências preenchidos pelo rastreio',
|
||||
class: 'px-4 py-2.5 bg-orange-500 hover:bg-orange-600 text-black font-bold rounded-xl text-sm whitespace-nowrap' %>
|
||||
@@ -79,7 +79,7 @@
|
||||
<% @chips.each do |chip| %>
|
||||
<span class="inline-flex items-center gap-2 px-3 py-1.5 rounded-full bg-orange-500/15 border border-orange-500/30 text-orange-300 text-xs">
|
||||
<%= chip[:rotulo] %>: <strong class="text-white"><%= chip[:display] || chip[:valor] %></strong>
|
||||
<%= link_to '✕', operacoes_planilha_path(request.query_parameters.except(chip[:param], 'pg')),
|
||||
<%= link_to icone(:fechar, cor: nil, tamanho: 'w-3 h-3'), operacoes_planilha_path(request.query_parameters.except(chip[:param], 'pg')),
|
||||
data: { turbo: false }, class: 'hover:text-white font-bold', title: 'Remover filtro' %>
|
||||
</span>
|
||||
<% end %>
|
||||
|
||||
Reference in New Issue
Block a user