diff --git a/app/views/mats/_match_edit_form.html.erb b/app/views/mats/_match_edit_form.html.erb index dfdb621..65ffaa6 100644 --- a/app/views/mats/_match_edit_form.html.erb +++ b/app/views/mats/_match_edit_form.html.erb @@ -10,8 +10,66 @@ <% end %> - -

Bout <%= @match.bout_number %> <%= @w1.name %> VS. <%= @w2.name %>

+

Bout <%= @match.bout_number %>

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + +
<%= @w1.name %> <%= @w2.name %>
<%= @w1.name %> Stats:
<%= f.text_area :w1_stat, cols: "30", rows: "10" %>
<%= @w2.name %> Stats:
<%= f.text_area :w2_stat, cols: "30", rows: "10" %>
<%= @w1.name %> Scoring
+ + + + + +
<%= @w2.name %> Scoring
+ + + + + +
<%= @w1.name %> Choice
+ + +
<%= @w2.name %> Choice
+ + +
<%= @w1.name %> Warnings
+
<%= @w2.name %> Warnings
+
Match Options
+
+
+
+

Match Results


<%= f.label "Win Type" %>
@@ -24,7 +82,7 @@

- <%= f.label "Score" %> Also put pin time here if applicable. If default or forfeit, leave blank. Example: 7-2, 17-2, or 2:34
+ <%= f.label "Final Score" %> Also put pin time here if applicable. If default or forfeit, leave blank. Example: 7-2, 17-2, or 2:34
<%= f.text_field :score %>

@@ -39,3 +97,132 @@ <% end %> + + diff --git a/db/migrate/20151216154211_rename_stats.rb b/db/migrate/20151216154211_rename_stats.rb new file mode 100644 index 0000000..3cc1fe7 --- /dev/null +++ b/db/migrate/20151216154211_rename_stats.rb @@ -0,0 +1,6 @@ +class RenameStats < ActiveRecord::Migration + def change + rename_column :matches, :g_stat, :w1_stat + rename_column :matches, :r_stat, :w2_stat + end +end diff --git a/db/schema.rb b/db/schema.rb index 30e61b4..57bdb34 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -11,13 +11,13 @@ # # It's strongly recommended that you check this file into your version control system. -ActiveRecord::Schema.define(version: 20151117152454) do +ActiveRecord::Schema.define(version: 20151216154211) do create_table "matches", force: :cascade do |t| t.integer "w1" t.integer "w2" - t.text "g_stat" - t.text "r_stat" + t.text "w1_stat" + t.text "w2_stat" t.integer "winner_id" t.string "win_type" t.string "score"