Sha256: 4b5bbfc242c80733069cc6614e10d72fd04ed06800f0b63de74884e4f3295550

Contents?: true

Size: 609 Bytes

Versions: 2

Compression:

Stored size: 609 Bytes

Contents

<% if @players.empty? %>
No players found
<% else %>
<form action='/players' method='POST' role='form'>
    <span><input  name='query_string' placeholder='Enter Query' type='text' value="<%= @form_query %>" size="40"></span>
     <span><button class='btn btn-default' type='submit'>Search</button></span>
</form>
<table class="table table-striped">
  <thead>
    <tr>
      <th>Id</th>
      <th></th>
    </tr>
  </thead>
  <% @players.each do |player| %>
  <tr>
    <td><%= player.id %></td>
    <td>
      <a href="/players/<%= player.id %>/delete">Delete</a>
    </tr>
    <% end %>
  </table>
<% end %>

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
game_machine-1.0.4 web/views/players.erb
game_machine-1.0.2 web/views/players.erb