68 lines
2.0 KiB
HTML
68 lines
2.0 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<title>{{ player.full_name }}</title>
|
|
</head>
|
|
<body>
|
|
<p><a href="{% url 'scouting:player_list' %}">Back to search</a></p>
|
|
<h1>{{ player.full_name }}</h1>
|
|
|
|
<p>Position: {{ player.position }}</p>
|
|
<p>Nationality: {{ player.nationality|default:"-" }}</p>
|
|
<p>Birth date: {{ player.birth_date|default:"-" }}</p>
|
|
<p>Height (cm): {{ player.height_cm|default:"-" }}</p>
|
|
<p>Weight (kg): {{ player.weight_kg|default:"-" }}</p>
|
|
<p>Wingspan (cm): {{ player.wingspan_cm|default:"-" }}</p>
|
|
|
|
<p>
|
|
Roles:
|
|
{% for role in player.roles.all %}
|
|
{{ role.name }}{% if not forloop.last %}, {% endif %}
|
|
{% empty %}
|
|
-
|
|
{% endfor %}
|
|
</p>
|
|
|
|
<p>
|
|
Specialties:
|
|
{% for specialty in player.specialties.all %}
|
|
{{ specialty.name }}{% if not forloop.last %}, {% endif %}
|
|
{% empty %}
|
|
-
|
|
{% endfor %}
|
|
</p>
|
|
|
|
<h2>Season Contexts</h2>
|
|
<ul>
|
|
{% for context in contexts %}
|
|
<li>
|
|
<strong>{{ context.season.name }}</strong>
|
|
| Team: {{ context.team.name|default:"-" }}
|
|
| Competition: {{ context.competition.name|default:"-" }}
|
|
{% if context.stats %}
|
|
<div>
|
|
PTS {{ context.stats.points|default:"-" }} |
|
|
AST {{ context.stats.assists|default:"-" }} |
|
|
STL {{ context.stats.steals|default:"-" }} |
|
|
TOV {{ context.stats.turnovers|default:"-" }} |
|
|
BLK {{ context.stats.blocks|default:"-" }}
|
|
</div>
|
|
<div>
|
|
eFG% {{ context.stats.efg_pct|default:"-" }} |
|
|
TS% {{ context.stats.ts_pct|default:"-" }} |
|
|
+/- {{ context.stats.plus_minus|default:"-" }} |
|
|
ORtg {{ context.stats.offensive_rating|default:"-" }} |
|
|
DRtg {{ context.stats.defensive_rating|default:"-" }}
|
|
</div>
|
|
{% else %}
|
|
<div>No stats available for this context.</div>
|
|
{% endif %}
|
|
</li>
|
|
{% empty %}
|
|
<li>No season contexts found.</li>
|
|
{% endfor %}
|
|
</ul>
|
|
</body>
|
|
</html>
|