Sha256: 6c045bc45e8903c37a87e3d35d9991e61e115d6d481eae77ae9886dcab37f252

Contents?: true

Size: 1.32 KB

Versions: 6

Compression:

Stored size: 1.32 KB

Contents

<nav class="navbar navbar-default">
  <div class="container-fluid">
      <div class="navbar-header">
        <a class="navbar-brand" href="#">Team</a>
      </div>
    <form class="navbar-form navbar-right" action="<%= team_path %>" method="get">
      <span>Translation Dates: </span>
      <div class="form-group">
        <input type="date" class="form-control" name="from_date" value="<%= @from_date.strftime('%F') %>" required>
      </div>
      <span>-</span>
      <div class="form-group">
        <input type="date" class="form-control" name="to_date" value="<%= @to_date.strftime('%F') %>" required>
      </div>
      <button type="submit" class="btn btn-default">Filter</button>
    </form>
  </div>
</nav>
<table class="table table-striped">
  <thead>
    <tr>
      <th>ID</th>
      <th>Name</th>
      <th>Role</th>
      <th>Translated Items</th>
      <th>Translated Words</th>
    </tr>
  </thead>
  <tbody>
    <% @users.each do |user| %>
      <tr>
        <td><%= user.id %></td>
        <td><%= link_to user.name, vulgata_user_path(user_id: user.id, user_type: user.class.name) %></td>
        <td><%= user.vulgata_role ? user.vulgata_role.capitalize : nil %></td>
        <td><%= translated_items user %></td>
        <td><%= translated_words user %></td>
      </tr>
    <% end %>
  </tbody>
</table>

<%= paginate @users %>

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
vulgata-0.3.7 app/views/vulgata/team/index.html.erb
vulgata-0.3.6 app/views/vulgata/team/index.html.erb
vulgata-0.3.5 app/views/vulgata/team/index.html.erb
vulgata-0.3.4 app/views/vulgata/team/index.html.erb
vulgata-0.3.3 app/views/vulgata/team/index.html.erb
vulgata-0.3.1 app/views/vulgata/team/index.html.erb