first init of this template.

This commit is contained in:
2022-05-14 07:16:31 -05:00
parent d6ee55a050
commit 4632926a34
40 changed files with 1854 additions and 857 deletions

View File

@@ -3,11 +3,9 @@
<head>
<title>{% block title %}Title{% endblock %}</title>
{% include 'base_layout.html' %}
{% include 'head.html' %}
</head>
<body class="bg-light">
<header class="min-vw-100">
<div>
@@ -18,24 +16,12 @@
</header>
<div class="d-inline-flex min-vw-100 min-vh-100" style="padding-top:3rem;">
<div id="sidebar" class="">
{% block sidebar %}
{% include 'sidebar.html' %}
<main class="container-sm bg-white rounded-3 shadow-sm my-2">
<div class="p-2">
<h2 class="m border-bottom">{% block page_heading %}{% endblock %}</h2>
<h6 class="m text-muted">{% block page_subheading %}{% endblock %}</h6>
{% block header %}
{% endblock %}
{% block content %}{% endblock %}
</div>
<div class="w-100 m-0">
<div class="bg-white border border-bottom">
<h1 class="m-2">{% block page_heading %}{% endblock %}</h1>
<h6 class="m-2 text-muted">{% block page_subheading %}{% endblock %}</h6>
{% block header %}
{% endblock %}
</div>
<div class="container-fluid">
{% block content %}{% endblock %}
</div>
</div>
</div>
</body>
</html>
</main>

View File

@@ -1,9 +1,16 @@
{% extends "base.html" %}{% load static %}
{% block title %}Bench Coach Home{% endblock %}
{% block page_heading %}
<div class="text-center my-2">
<h1><img class="mx-auto" src="{% static 'benchcoach.svg' %}" style="width: 64px;" />
<strong>Welcome to Bench Coach</strong>
</h1>
</div>
{% endblock %}
{% block content %}
<div class="text-center my-2">
<h1><img class="mx-auto" src="{% static 'benchcoach.svg' %}" style="width: 64px;" /><strong>Welcome to Bench Coach</strong></h1>
<div class="col-lg-6 m-auto">
<p class="lead mb-4">Quisque at curabitur mollis ornare, malesuada maecenas. Orci elit tristique, malesuada eu pharetra. Est praesent tortor porttitor aptent, amet quisque.</p>
{# <div class="d-grid gap-2 d-sm-flex justify-content-sm-center mx-1">#}

View File

@@ -1,22 +1,48 @@
{% load static %}
<nav class="navbar navbar-dark navbar-expand-md py-0 fixed-top" style="background: #323669;height:3rem">
<a class="navbar-brand d-flex text-uppercase fw-bold m-1 mx-2 text-dark" data-bs-toggle="collapse" data-bs-target="#sidebar">
<nav class="navbar navbar-dark navbar-expand-lg" style="background: #323669">
<a class="navbar-brand text-uppercase fw-bold mx-2 text-dark">
<img class="d-inline-block" width="32" height="32" src="{% static 'benchcoach.svg' %}" />
<span class="d-none d-print-inline-block d-sm-inline-block d-md-inline-block d-lg-inline-block d-xl-inline-block d-xxl-inline-block mx-1 my-auto text-white">bench coach</span>
<span class="text-white">bench coach</span>
</a>
<button class="navbar-toggler m-2 mx-4 p-0 d-none" data-bs-toggle="collapse" data-bs-target="#navcol-2">
<span class="visually-hidden">Toggle navigation</span>
<span class="navbar-toggler-icon m-1"></span></button>
<div id="navcol-2" class="collapse navbar-collapse">
<button class="navbar-toggler mx-2" type="button" data-bs-toggle="collapse" data-bs-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarSupportedContent">
<ul class="navbar-nav mx-2">
<li class="nav-item"><a class="nav-link {{ events_tab }}" href="{% url 'event list' %}">Events</a></li>
<li class="nav-item"><a class="nav-link {{ members_tab }}" href="{% url 'player list' %}">Members</a></li>
<li class="nav-item"><a class="nav-link {{ opponents_tab }}" href="{% url 'team list' %}">Opponents</a></li>
<li class="nav-item"><a class="nav-link {{ venues_tab }}" href="{% url 'venue list' %}">Venues</a></li>
<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>
<span class="">
Home
</span>
</a>
</li>
<li class="nav-item">
<a class="nav-link{% if request.resolver_match.url_name == 'teamsnap_home' %} active{% endif %} text-decoration-none" href="{% url 'teamsnap_home'%}">
<i class="bi bi-asterisk"></i>
<span class="">
Teamsnap
</span>
</a>
</li>
<li class="nav-item">
<a class="nav-link{% if request.resolver_match.url_name == 'teamsnap_schedule' %} active{% endif %} text-decoration-none" href="{% url 'teamsnap_schedule' team_id=request.user.profile.teamsnapsettings.managed_team.id%}">
<i class="bi bi-calendar-fill"></i>
<span class="">
Schedule
</span>
</a>
</li>
<li class="nav-item">
<a class="nav-link{% if request.resolver_match.url_name == 'teamsnap_choose_multiple_lineups' %} active{% endif %} text-decoration-none" href="{% url 'teamsnap_choose_multiple_lineups' team_id=request.user.profile.teamsnapsettings.managed_team.id%}?num=3">
<i class="bi bi-layout-three-columns"></i>
<span class="">
Multi-Lineup
</span>
</a>
</li>
</ul>
<span class="mx-auto"></span>
<span class="navbar-text"></span>
</div>
</div>
</nav>

View File

@@ -1,53 +1,14 @@
<div class="bg-dark h-100">
<ul class="nav nav-pills flex-column mb-auto">
<li class="nav-item">
<a class="nav-link {{ events_tab }} text-white" href="{% url 'event list' %}">
<a class="nav-link {{ events_tab }} text-white" href="{% url 'teamsnap_schedule' team_id=request.user.profile.teamsnapsettings.managed_team.id%}">
<div class="d-flex flex-nowrap">
<i class="bi bi-calendar3"></i>
<span class="d-none d-print-inline-block d-sm-inline-block d-md-inline-block d-lg-inline-block d-xl-inline-block d-xxl-inline-block mx-1 my-auto text-white">
Events
Schedule
</span>
</div>
</a>
</li>
<li class="nav-item">
<a class="nav-link {{ members_tab }} text-white" href="{% url 'player list' %}">
<div class="d-flex flex-nowrap">
<i class="bi bi-person-fill"></i>
<span class="d-none d-print-inline-block d-sm-inline-block d-md-inline-block d-lg-inline-block d-xl-inline-block d-xxl-inline-block mx-1 my-auto text-white">
Players
</span>
</div>
</a>
</li>
<li class="nav-item">
<a class="nav-link {{ opponents_tab }} text-white" href="{% url 'team list' %}">
<div class="d-flex flex-nowrap">
<i class="bi bi-people-fill"></i>
<span class="d-none d-print-inline-block d-sm-inline-block d-md-inline-block d-lg-inline-block d-xl-inline-block d-xxl-inline-block mx-1 my-auto text-white">
Teams
</span>
</div>
</a>
</li>
<li class="nav-item">
<a class="nav-link {{ venues_tab }} text-white" href="{% url 'venue list' %}">
<div class="d-flex flex-nowrap"><i class="bi bi-geo"></i>
<span class="d-none d-print-inline-block d-sm-inline-block d-md-inline-block d-lg-inline-block d-xl-inline-block d-xxl-inline-block mx-1 my-auto text-white">
Venues
</span></div>
</a>
</li>
<li class="nav-item">
<a class="nav-link text-white" href="{% url 'teamsnap home' %}">
<div class="d-flex flex-nowrap"><i class="bi bi-asterisk"></i>
<span class="d-none d-print-inline-block d-sm-inline-block d-md-inline-block d-lg-inline-block d-xl-inline-block d-xxl-inline-block mx-1 my-auto text-white">
Sync
</span></div>
</a>
</li>
</ul>
</div>