<%= t("tournaments.form.formats.#{@tournament.format_kind}") %>
<% if @tournament.uses_groups? %>
<%= t("tournaments.hub.tabs.struttura") %>
<% @groups.each do |group| %>
-
<%= group.name %>
<% if @writable %>
<%= button_to t("matches.index.delete"), public_tournament_group_path(@tournament, group),
method: :delete, class: "btn btn-secondary", style: "padding:4px 10px;font-size:0.8rem;display:inline",
form: { data: { turbo_confirm: group.name }, style: "display:inline" } %>
<% end %>
<% end %>
<% if @writable %>
<%= form_with url: public_tournament_groups_path(@tournament), method: :post do %>
<%= text_field_tag "tournament_group[name]", nil, placeholder: t("tournaments.hub.add_group") %>
<%= submit_tag t("tournaments.hub.add_group"), class: "btn btn-secondary" %>
<% end %>
<% end %>
<% end %>
<% if @tournament.uses_knockout? %>
<%= t("tournaments.hub.tabs.tabellone") %>
<% @rounds.each do |round| %>
- <%= round.name %>
<% end %>
<% end %>