2014-04-26 02:42:16 +00:00
|
|
|
<h1 class="title">Editing Bracket</h1>
|
2014-03-23 00:22:25 +00:00
|
|
|
|
|
|
|
<div class="wide box">
|
|
|
|
<%= form_for(@bracket) do |f| %>
|
2014-04-26 02:42:16 +00:00
|
|
|
<%= render 'shared/errors', messages: @bracket.errors.full_messages %>
|
2014-03-23 00:22:25 +00:00
|
|
|
|
2014-04-26 02:42:16 +00:00
|
|
|
<div class="fields">
|
|
|
|
<%= f.label :slots %>
|
2014-03-23 00:22:25 +00:00
|
|
|
<%= f.text_field :slots %>
|
2014-04-26 02:42:16 +00:00
|
|
|
</div>
|
2014-03-23 00:22:25 +00:00
|
|
|
|
2014-04-26 02:42:16 +00:00
|
|
|
<%= render partial: "bracket", locals: { bracket: @bracket } %>
|
2014-03-23 00:22:25 +00:00
|
|
|
|
2014-04-26 02:42:16 +00:00
|
|
|
<div class="controls">
|
2014-03-23 00:22:25 +00:00
|
|
|
<%= f.submit 'Update' %>
|
2014-04-26 02:42:16 +00:00
|
|
|
</div>
|
2014-03-23 00:22:25 +00:00
|
|
|
<% end %>
|
|
|
|
</div>
|