{% load i18n %}
{% load league_tags %}

{% if roster %}

<table class="table table-striped table-bordered table-hover">
    <thead>
      <tr>
        <th>{% trans "#" %}</th>
        <th>{% trans "Position" %}</th>
        <th>{% trans "First name" %}</th>
        <th>{% trans "Last name" %}</th>
        <th>{% trans "Age" %}</th>
        <th>{% trans "Weight" %} (kg)</th>
        <th>{% trans "Height" %} (cm)</th>

      </tr>
    </thead>
    <tbody>
        {% for player in roster %}
      <tr>
        <td>{{player.jersey}}</td>
        <td>{{player.position}}</td>
        <td>{{player.name}}</td>
        <td>{{player.surename}}</td>
        <td>{% player_age player.birth_date %}</td>
        <td>{{player.weight}}</td>
        <td>{{player.height}}</td>

      </tr>
        {% endfor %}
    </tbody>
  </table>

{% endif %}