From 10c6417874129f03f3d2125c5df460865bad2797 Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Thu, 1 May 2014 17:02:37 -0400 Subject: clean up grep-able issues in forms (mostly using

instead of

) --- app/views/tournaments/_form.html.erb | 12 ++++++------ app/views/tournaments/show.html.erb | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) (limited to 'app/views/tournaments') diff --git a/app/views/tournaments/_form.html.erb b/app/views/tournaments/_form.html.erb index 93badeb..72e0886 100644 --- a/app/views/tournaments/_form.html.erb +++ b/app/views/tournaments/_form.html.erb @@ -7,8 +7,8 @@ <%= f.select(:game_id, Game.all.map{|game| [game.name, game.id]}) %>
- - + +
<% if @tournament.game %> <%= f.submit("Update (Will reset the rest of the form)", class: "btn-danger") %> @@ -98,12 +98,12 @@
Stage <%= i %>
- <%= stage_fields.label :scheduling_method, :scheduling_method.to_s.titleize %> - <%= stage_fields.select(:scheduling_method, @tournament.scheduling_methods.map{|method| [method.humanize.titleize, method]}) %> + <%= stage_fields.label :scheduling_method, :scheduling_method.to_s.titleize %> + <%= stage_fields.select(:scheduling_method, @tournament.scheduling_methods.map{|method| [method.humanize.titleize, method]}) %>
- <%= stage_fields.label :seeding_method, :seeding_method.to_s.titleize %> - <%= stage_fields.select(:seeding_method, @tournament.seeding_methods.map{|method| [method.humanize.titleize, method]}) %> + <%= stage_fields.label :seeding_method, :seeding_method.to_s.titleize %> + <%= stage_fields.select(:seeding_method, @tournament.seeding_methods.map{|method| [method.humanize.titleize, method]}) %>
<% end %> diff --git a/app/views/tournaments/show.html.erb b/app/views/tournaments/show.html.erb index 6cb9783..07c1c6b 100644 --- a/app/views/tournaments/show.html.erb +++ b/app/views/tournaments/show.html.erb @@ -74,7 +74,7 @@ <% end %> -
+
<%# If user can join, and user hasn't joined already, show a join tournment button %> <% if @tournament.joinable_by?(current_user) && !@tournament.players.include?(current_user) %> <%= form_tag(tournament_path(@tournament), method: "put", role: :button) do %> -- cgit v1.2.3