diff options
author | Luke Shumaker <lukeshu@sbcglobal.net> | 2014-07-09 23:28:37 -0400 |
---|---|---|
committer | Luke Shumaker <lukeshu@sbcglobal.net> | 2014-07-09 23:28:37 -0400 |
commit | 32df12ee322bbe07b11758b87599ba192e4515d4 (patch) | |
tree | dab819ad297338393f768f38384c582e71cf058b /app/views/tournaments/show.html.erb | |
parent | cbcd3f3037ba9a66cb15e6ed788334d7b89f9c23 (diff) |
clean up some styles and form stuff
Just look at the diff.
Diffstat (limited to 'app/views/tournaments/show.html.erb')
-rw-r--r-- | app/views/tournaments/show.html.erb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/app/views/tournaments/show.html.erb b/app/views/tournaments/show.html.erb index 8d56f46..55a8f14 100644 --- a/app/views/tournaments/show.html.erb +++ b/app/views/tournaments/show.html.erb @@ -100,23 +100,23 @@ <div class="actions"> <%# 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 %> + <%= form_tag(tournament_path(@tournament), method: "put", class: :button_to) do %> <input type="hidden" name="update_action" value="join"> <%= submit_tag("Join Tournament") %> <% end %> <% elsif @tournament.players.include?(current_user) %> - <%= form_tag(tournament_path(@tournament), method: "put", role: :button) do %> + <%= form_tag(tournament_path(@tournament), method: "put", class: :button_to) do %> <input type="hidden" name="update_action" value="leave"> <%= submit_tag("Leave Tournament") %> <% end %> <% end %> <%# If user is the host, let them start the tournment %> <% if @tournament.check_permission(current_user, :edit) %> - <%= form_tag(tournament_path(@tournament), method: "put", role: :button) do %> + <%= form_tag(tournament_path(@tournament), method: "put", class: :button_to) do %> <input type="hidden" name="update_action" value="start"> <%= submit_tag("Start Tournament", disabled: (@tournament.players.count < @tournament.min_players_per_team * @tournament.min_teams_per_match)) %> <% end %> <%= link_to 'Edit Tournament', edit_tournament_path(@tournament), role: :button %> - <%= link_to 'Cancel Tournament', @tournament, method: :delete, data: { confirm: 'Are you sure?' }, role: :button %> + <%= button_to 'Cancel Tournament', @tournament, method: :delete, data: { confirm: 'Are you sure?' } %> <% end %> </div> |