-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
95 additions
and
51 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,7 @@ | ||
<a href="#"> | ||
<button type="button" class="btn btn-info border border-white" role="button" data-bs-toggle="button"> | ||
{{ name }} | ||
</button> | ||
</a> | ||
{% with request.path as current_url_name %} | ||
<a href="{{ url_name }}" | ||
class="nav-link border border-white bg-cyan-300 hover:bg-violet-950 text-white p-2 w-44 text-left | ||
{% if current_url_name == url_name %}bg-violet-950{% endif %}"> | ||
{{ name }} | ||
</a> | ||
{% endwith %} |
61 changes: 42 additions & 19 deletions
61
adaptive_hockey_federation/templates/includes/drawer.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,44 @@ | ||
<div class="offcanvas offcanvas-start" style="background-color: #6f42c1" data-bs-backdrop="static" tabindex="-1" id="staticBackdrop" aria-labelledby="staticBackdropLabel"> | ||
|
||
<div class="offcanvas-body"> | ||
<ul class="nav-list" style="list-style-type:none"> | ||
<div class="logo-img p-5"> | ||
<img src="https://paraicehockey.ru/wp-content/uploads/2022/02/FAH_q.png" width="150" height="150"> | ||
<div class="offcanvas offcanvas-start bg-violet-950" data-bs-backdrop="static" tabindex="-1" | ||
id="staticBackdrop" aria-labelledby="staticBackdropLabel"> | ||
|
||
<div class="offcanvas-body mx-auto"> | ||
<ul class="nav-list" style="list-style-type:none"> | ||
<div class="container py-5"> | ||
<div class="row"> | ||
<div class="col-4 flex justify-end"> | ||
<span class="logo-img"> | ||
<img src="https://paraicehockey.ru/wp-content/uploads/2022/02/FAH_q.png" width="100" height="100"> | ||
</span> | ||
</div> | ||
<div class="col text-white flex justify-start"> | ||
Мир хокея<br>для особенных<br>детей | ||
</div> | ||
</div> | ||
<li>{% include "includes/button.html" with name="Пользователи" %}</li> | ||
<li>{% include "includes/button.html" with name="Команды" %}</li> | ||
<li>{% include "includes/button.html" with name="Соревнования" %}</li> | ||
<li>{% include "includes/button.html" with name="Аналитика" %}</li> | ||
<li>{% include "includes/button.html" with name="Выгрузки" %}</li> | ||
</ul> | ||
</div> | ||
</div> | ||
<li class="nav-item py-2"> | ||
{% url 'main:users' as url_name %}{% include "includes/button.html" with name="Пользователи" %} | ||
</li> | ||
<li class="nav-item py-2"> | ||
{% url 'main:teams' as url_name %}{% include "includes/button.html" with name="Команды" %} | ||
</li> | ||
<li class="nav-item py-2"> | ||
{% url 'main:competitions' as url_name %}{% include "includes/button.html" with name="Соревнования" %} | ||
</li> | ||
<li class="nav-item py-2"> | ||
{% url 'main:analytics' as url_name %}{% include "includes/button.html" with name="Аналитика" %} | ||
</li> | ||
<li class="nav-item py-2"> | ||
{% url 'main:unloads' as url_name %}{% include "includes/button.html" with name="Выгрузки" %} | ||
</li> | ||
</ul> | ||
</div> | ||
|
||
<div class="offcanvas-footer p-5"> | ||
<button type="button" class="btn" data-bs-dismiss="offcanvas" aria-label="Close"> | ||
<i class="bi bi-caret-left-fill"></i> | ||
</button> | ||
</div> | ||
</div> | ||
<div class="offcanvas-footer pb-5"> | ||
<button type="button" class="btn ps-16" data-bs-dismiss="offcanvas" aria-label="Close"> | ||
<i class="bi bi-caret-left fs-3" style="color: white;"></i> | ||
</button> | ||
<button type="button" class="btn"> | ||
<i class="bi bi-caret-right-fill fs-3" style="color: white;"></i> | ||
</button> | ||
</div> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 13 additions & 11 deletions
24
adaptive_hockey_federation/templates/includes/header.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters