ensl.org/app/views/match_proposals/index.html.erb

23 lines
752 B
Text
Raw Normal View History

2017-05-05 15:17:00 +00:00
<h1>Proposals</h1>
<%= link_to 'Back', match_path(@match), class: 'button' %>
<% if @match.match_proposals.empty? %>
<h4>There are no proposals yet</h4>
<% else %>
<table id="proposals" class="striped">
<tr>
<th>Team</th>
<th>Time</th>
<th>Status</th>
<th>Actions</th>
</tr>
<% @match.match_proposals.each do |proposal| %>
<tr class="<%=cycle('even', 'odd') %>">
<td><%= proposal.team.name %></td>
<td><%= longtime proposal.proposed_time %> </td>
<td><%= proposal.status_strings[proposal.status] %></td>
2017-05-05 15:17:00 +00:00
<td>test</td>
</tr>
<% end %>
</table>
<% end %>
2017-05-05 15:17:00 +00:00
<%= link_to 'Back', match_path(@match), class: 'button' %><%= link_to 'Propose match time', new_match_proposal_path(@match), class: 'button' %>