Introduce clubs con abbonamento, branding Active Storage e flusso registrazione società; corregge healthcheck MediaMTX (immagine distroless) e allinea dominio produzione matchlivetv.it. Co-authored-by: Cursor <cursoragent@cursor.com>
34 lines
1.6 KiB
Plaintext
34 lines
1.6 KiB
Plaintext
<% record = local_assigns[:record] %>
|
|
<% show_inherit_hint = local_assigns[:show_inherit_hint] %>
|
|
|
|
<fieldset class="branding-fields">
|
|
<legend><%= local_assigns[:legend] || "Identità visiva" %></legend>
|
|
|
|
<% if show_inherit_hint %>
|
|
<p class="branding-hint">Lascia vuoto per usare logo e colori della società.</p>
|
|
<% end %>
|
|
|
|
<%= label_tag "branding[logo_file]", "Logo (immagine)" %>
|
|
<%= file_field_tag "branding[logo_file]", accept: "image/png,image/jpeg,image/webp" %>
|
|
<% if record.effective_logo_url.present? %>
|
|
<p class="branding-preview">
|
|
<%= image_tag record.effective_logo_url, alt: "", width: 64, height: 64, style: "border-radius:8px" %>
|
|
</p>
|
|
<% end %>
|
|
|
|
<%= label_tag "#{record.model_name.param_key}[logo_url]", "Logo (URL alternativo)" %>
|
|
<%= text_field_tag "#{record.model_name.param_key}[logo_url]", record.logo_url, placeholder: "https://…" %>
|
|
|
|
<%= label_tag "#{record.model_name.param_key}[primary_color]", "Colore principale" %>
|
|
<div class="color-field">
|
|
<%= color_field_tag "#{record.model_name.param_key}[primary_color]", record.primary_color.presence || record.effective_primary_color %>
|
|
<span class="color-swatch" style="background:<%= record.effective_primary_color %>"></span>
|
|
</div>
|
|
|
|
<%= label_tag "#{record.model_name.param_key}[secondary_color]", "Colore secondario" %>
|
|
<div class="color-field">
|
|
<%= color_field_tag "#{record.model_name.param_key}[secondary_color]", record.secondary_color.presence || record.effective_secondary_color %>
|
|
<span class="color-swatch" style="background:<%= record.effective_secondary_color %>"></span>
|
|
</div>
|
|
</fieldset>
|