ensl.org/app/views/brackets/edit.html.erb
Ari Timonen f6b30be278 Improve contest page and match list for maps
Improve brackets
Update gitignore and docs.
2020-03-28 22:39:41 +02:00

23 lines
537 B
Text

<h1 class="title">Editing Bracket</h1>
<div class="wide box">
<%= form_for(@bracket) do |f| %>
<%= render 'shared/errors', messages: @bracket.errors.full_messages %>
<div class="fields">
<%= f.label :name %>
<%= f.text_field :name %>
</div>
<div class="fields">
<%= f.label :slots %>
<%= f.text_field :slots %>
</div>
<%= render partial: "bracket", locals: { bracket: @bracket, edit: true } %>
<div class="controls">
<%= f.submit 'Update' %>
</div>
<% end %>
</div>