Proposals

<%= @match.contester1 %> VS <%= @match.contester2 %>

<%= link_to 'Back', match_path(@match), class: 'button' %> <% if @match.match_proposals.empty? %>

There are no proposals yet

<% else %> <% if @match.can_make_proposal?(cuser) %> <% end %> <% @match.match_proposals.each do |proposal| %> <% if @match.can_make_proposal?(cuser) %> <% end %> <% end %>
Team Time StatusActions
<%= proposal.team.name %> <%= longtime proposal.proposed_time %> <%= MatchProposal.status_strings[proposal.status] %> <% unless proposal.state_immutable? %> <%= form_for proposal, url: match_proposal_path(@match, proposal) do |f| %> <%= f.hidden_field :status, value: 0 %> <% if proposal.status_change_allowed?(cuser, MatchProposal::STATUS_CONFIRMED) %> <%= link_to_function icon('check'), "proposalStateSubmit(#{MatchProposal::STATUS_CONFIRMED},#{proposal.id})", title: 'Confirm' %> <% end %> <% if proposal.status_change_allowed?(cuser, MatchProposal::STATUS_REJECTED) %> <%= link_to_function icon('times'), "proposalStateSubmit(#{MatchProposal::STATUS_REJECTED},#{proposal.id})", title: 'Reject' %> <% end %> <% if proposal.status_change_allowed?(cuser, MatchProposal::STATUS_REVOKED) %> <%= link_to_function icon('undo'), "proposalStateSubmit(#{MatchProposal::STATUS_REVOKED},#{proposal.id})", title: 'Revoke' %> <% end %> <% if proposal.status_change_allowed?(cuser, MatchProposal::STATUS_DELAYED) %> <%= link_to_function icon('hourglass'), "proposalStateSubmit(#{MatchProposal::STATUS_DELAYED},#{proposal.id})", title: 'Delay' %> <% end %> <% end %> <% end %>
<% end %> <%= link_to 'Back', match_path(@match), class: 'button' %><%= link_to 'Propose match time', new_match_proposal_path(@match), class: 'button' %>