feat(sports) multiple sports
This commit is contained in:
@@ -38,16 +38,27 @@
|
||||
</header>
|
||||
<section>
|
||||
<div class="container py-4 py-xl-5">
|
||||
<form id="sportForm" method="get" action="/">
|
||||
<div class="row mb-4">
|
||||
<div class="col-12">
|
||||
<label for="sportSelect" class="form-label">Sport:</label>
|
||||
<select id="sportSelect" name="sport" class="form-select" onchange="document.getElementById('sportForm').submit();">
|
||||
<option value="1" {% if sportId == 1 %}selected{% endif %}>NBA</option>
|
||||
<option value="2" {% if sportId == 2 %}selected{% endif %}>WNBA</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
<div class="row gy-4 row-cols-1 row-cols-md-2 row-cols-lg-3">
|
||||
{% for team in userTeams %}
|
||||
<div class="col">
|
||||
<div class="card border-light border-1 d-flex justify-content-center p-4">
|
||||
<div class="card-body">
|
||||
<div class="d-flex justify-content-center align-items-center justify-content-md-start"><img src="{{ getTeamLogo(team.idTeam) }}" style="width: 100px;">
|
||||
<h5 class="fw-bold mb-0 ms-2">{{ getTeamName(team.idTeam) }}</h5>
|
||||
<div class="d-flex justify-content-center align-items-center justify-content-md-start"><img src="{{ getTeamLogo(team.idTeam, sportId) }}" style="width: 100px;">
|
||||
<h5 class="fw-bold mb-0 ms-2">{{ getTeamName(team.idTeam, sportId) }}</h5>
|
||||
</div>
|
||||
<div></div>
|
||||
</div><a class="btn btn-primary" role="button" href="/del/{{ team.idTeam }}">Remove from calendar</a>
|
||||
</div><a class="btn btn-primary" role="button" href="/del/{{ sportId }}/{{ team.idTeam }}">Remove from calendar</a>
|
||||
</div>
|
||||
</div>
|
||||
{% endfor %}
|
||||
@@ -55,11 +66,11 @@
|
||||
<div class="col">
|
||||
<div class="card border-light border-1 d-flex justify-content-center p-4">
|
||||
<div class="card-body">
|
||||
<div class="d-flex justify-content-center align-items-center justify-content-md-start"><img src="{{ getTeamLogo(team) }}" style="width: 100px;">
|
||||
<h5 class="fw-bold mb-0 ms-2">{{ getTeamName(team) }}</h5>
|
||||
<div class="d-flex justify-content-center align-items-center justify-content-md-start"><img src="{{ getTeamLogo(team, sportId) }}" style="width: 100px;">
|
||||
<h5 class="fw-bold mb-0 ms-2">{{ getTeamName(team, sportId) }}</h5>
|
||||
</div>
|
||||
<div></div>
|
||||
</div><a class="btn btn-warning" role="button" href="/add/{{ team }}">Add to calendar</a>
|
||||
</div><a class="btn btn-warning" role="button" href="/add/{{ sportId }}/{{ team }}">Add to calendar</a>
|
||||
</div>
|
||||
</div>
|
||||
{% endfor %}
|
||||
@@ -83,7 +94,6 @@
|
||||
<p class="mb-0">Copyright © 2024 So My Calendar</p>
|
||||
<ul class="list-inline mb-0">
|
||||
<li class="list-inline-item">
|
||||
|
||||
<a href="https://twitter.com/SoMy76ers" target="_blank">
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" fill="currentColor" viewBox="0 0 16 16" class="bi bi-twitter">
|
||||
<path d="M5.026 15c6.038 0 9.341-5.003 9.341-9.334 0-.14 0-.282-.006-.422A6.685 6.685 0 0 0 16 3.542a6.658 6.658 0 0 1-1.889.518 3.301 3.301 0 0 0 1.447-1.817 6.533 6.533 0 0 1-2.087.793A3.286 3.286 0 0 0 7.875 6.03a9.325 9.325 0 0 1-6.767-3.429 3.289 3.289 0 0 0 1.018 4.382A3.323 3.323 0 0 1 .64 6.575v.045a3.288 3.288 0 0 0 2.632 3.218 3.203 3.203 0 0 1-.865.115 3.23 3.23 0 0 1-.614-.057 3.283 3.283 0 0 0 3.067 2.277A6.588 6.588 0 0 1 .78 13.58a6.32 6.32 0 0 1-.78-.045A9.344 9.344 0 0 0 5.026 15z"></path>
|
||||
@@ -105,4 +115,4 @@
|
||||
<script src="static/js/script.min.js"></script>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
</html>
|
||||
|
||||
Reference in New Issue
Block a user