add dashboard page and chart.js
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
|
||||
<script src="{% static 'js/bootstrap.bundle.js' %}" crossorigin="anonymous"></script>
|
||||
<script src="{% static 'teamsnap/js/chart.js' %}" crossorigin="anonymous"></script>
|
||||
<link rel="stylesheet" href="{% static 'css/bootstrap.css' %}">
|
||||
<link rel='stylesheet' href="{% static 'css/base.css' %}">
|
||||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.8.2/font/bootstrap-icons.css">
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{% load static %}
|
||||
<nav class="navbar navbar-dark navbar-expand-lg mb-2" style="background: #323669">
|
||||
<a class="navbar-brand text-uppercase fw-bold mx-2 text-dark">
|
||||
<a class="navbar-brand text-uppercase fw-bold mx-2 text-dark" href="{% url 'home'%}">
|
||||
<img class="d-inline-block" width="32" height="32" src="{% static 'benchcoach.svg' %}" />
|
||||
<span class="text-white">bench coach</span>
|
||||
</a>
|
||||
@@ -11,10 +11,10 @@
|
||||
<div class="collapse navbar-collapse" id="navbarSupportedContent">
|
||||
<ul class="navbar-nav mx-2">
|
||||
<li class="nav-item ">
|
||||
<a class="nav-link{% if request.resolver_match.url_name == 'home' %} active{% endif %} text-decoration-none" href="{% url 'home'%}">
|
||||
<i class="bi bi-house-fill"></i>
|
||||
<a class="nav-link{% if request.resolver_match.url_name == 'teamsnap_dashboard' %} active{% endif %} text-decoration-none" href="{% url 'teamsnap_dashboard' team_id=request.user.profile.teamsnapsettings.managed_team.id %}">
|
||||
<i class="bi bi-speedometer2"></i>
|
||||
<span class="">
|
||||
Home
|
||||
Dashboard
|
||||
</span>
|
||||
</a>
|
||||
</li>
|
||||
|
||||
Reference in New Issue
Block a user