Billing Stripe, link regia mobile e staff solo trasmissione.
Aggiunge fatturazione club, pagina regia condivisibile senza account, roster squadre e rimuove la modalità controller dall'app (v1.1.0). Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -10,6 +10,20 @@
|
||||
<%= text_field_tag "team[name]", @team.name, required: true %>
|
||||
<%= label_tag "team[sport]", "Sport" %>
|
||||
<%= select_tag "team[sport]", options_for_select([["Pallavolo", "volleyball"], ["Calcio", "football"], ["Basket", "basketball"]], @team.sport) %>
|
||||
|
||||
<%= label_tag "team[description]", "Descrizione squadra" %>
|
||||
<%= text_area_tag "team[description]", @team.description, rows: 5, placeholder: "Presentazione della squadra, palmarès, obiettivi della stagione…" %>
|
||||
|
||||
<div class="branding-logo-block">
|
||||
<%= label_tag "team[photo_file]", "Foto di squadra (gruppo o stemma)" %>
|
||||
<% if @team.team_photo_url.present? %>
|
||||
<div class="branding-logo-preview">
|
||||
<%= image_tag @team.team_photo_url, alt: "Foto squadra", class: "team-profile-photo-preview", width: 200 %>
|
||||
</div>
|
||||
<% end %>
|
||||
<%= file_field_tag "team[photo_file]", accept: "image/png,image/jpeg,image/webp", class: "branding-file-input" %>
|
||||
</div>
|
||||
|
||||
<%= render "shared/branding_fields", record: @team, show_inherit_hint: true, legend: "Branding squadra (override)" %>
|
||||
<p class="branding-hint">
|
||||
Colori società:
|
||||
@@ -19,5 +33,5 @@
|
||||
<%= submit_tag "Salva squadra", class: "btn btn-primary" %>
|
||||
<% end %>
|
||||
</div>
|
||||
<p><%= link_to "← Dashboard squadra", public_team_dashboard_path(@team) %></p>
|
||||
<p><%= link_to "← Dettagli squadra", public_team_details_path(@team) %></p>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user