5bb3bc4e5f
Add improved match entry form with player selection validation and better user experience for recording match results. Changes: - Add player validation to prevent same player on both teams - Add team score validation (must have winner) - Improve form layout and player selection UI - Add helper methods for player lookup and team building
18 lines
332 B
Ruby
18 lines
332 B
Ruby
# frozen_string_literal: true
|
|
|
|
module EuchreCamp
|
|
module Views
|
|
module Admin
|
|
module Matches
|
|
class New < EuchreCamp::View
|
|
expose :players
|
|
expose :tournament
|
|
expose :teams
|
|
expose :preselected_team_1
|
|
expose :preselected_team_2
|
|
end
|
|
end
|
|
end
|
|
end
|
|
end
|