Skip to content

Commit

Permalink
feat: add base template
Browse files Browse the repository at this point in the history
  • Loading branch information
lalver1 committed Aug 26, 2024
1 parent cd782b7 commit 43ff114
Show file tree
Hide file tree
Showing 2 changed files with 53 additions and 22 deletions.
52 changes: 52 additions & 0 deletions benefits/in_person/templates/in_person/base.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
{% extends "admin/base.html" %}
{% load i18n static %}

{% block extrastyle %}
<link href="{% static "css/admin/styles.css" %}" rel="stylesheet">
<link href="{% static "img/favicon.ico" %}" rel="icon" type="image/x-icon" />
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css"
rel="stylesheet"
integrity="sha384-1BmE4kWBq78iYhFldvKuhfTAU6auU8tT94WrHftjDbrCEXSU1oBoqyl2QvZ6jIW3"
crossorigin="anonymous">
{% endblock extrastyle %}

{% block title %}
{% endblock title %}

{% block branding %}
<div id="header-container" class="navbar navbar-expand-sm navbar-dark justify-content-between">
<div class="container">
<span class="navbar-brand p-0">
<img class="sm d-lg-none" src="{% static "img/logo-sm.svg" %}" width="90" height="51.3" alt="{% translate "California Integrated Travel Project: Benefits logo (small)" context "image alt text" %}" />
<img class="lg d-none d-lg-block" src="{% static "img/logo-lg.svg" %}" width="220" height="50" alt="{% translate "California Integrated Travel Project: Benefits logo (large)" context "image alt text" %}" />
</span>
</div>
<h1 class="p-0 m-0 text-white">Administrator</h1>
</div>
{% endblock branding %}

{% block usertools %}
{% endblock usertools %}

{% block coltype %}
w-100
{% endblock coltype %}

{% block bodyclass %}
{{ block.super }} dashboard
{% endblock bodyclass %}

{% block nav-breadcrumbs %}
{% endblock nav-breadcrumbs %}

{% block nav-sidebar %}
{% endblock nav-sidebar %}

{% block content_title %}
{% endblock content_title %}

{% block content %}
{% endblock content %}

{% block sidebar %}
{% endblock sidebar %}
23 changes: 1 addition & 22 deletions benefits/templates/admin/agency-dashboard-index.html
Original file line number Diff line number Diff line change
@@ -1,31 +1,10 @@
{% extends "admin/base.html" %}
{% extends "in_person/base.html" %}
{% load i18n static %}

{% block extrastyle %}
<link href="{% static "css/admin/styles.css" %}" rel="stylesheet">
<link href="{% static "img/favicon.ico" %}" rel="icon" type="image/x-icon" />
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css"
rel="stylesheet"
integrity="sha384-1BmE4kWBq78iYhFldvKuhfTAU6auU8tT94WrHftjDbrCEXSU1oBoqyl2QvZ6jIW3"
crossorigin="anonymous">
{% endblock extrastyle %}

{% block title %}
Agency dashboard
{% endblock title %}

{% block branding %}
<div id="header-container" class="navbar navbar-expand-sm navbar-dark justify-content-between">
<div class="container">
<span class="navbar-brand p-0">
<img class="sm d-lg-none" src="{% static "img/logo-sm.svg" %}" width="90" height="51.3" alt="{% translate "California Integrated Travel Project: Benefits logo (small)" context "image alt text" %}" />
<img class="lg d-none d-lg-block" src="{% static "img/logo-lg.svg" %}" width="220" height="50" alt="{% translate "California Integrated Travel Project: Benefits logo (large)" context "image alt text" %}" />
</span>
</div>
<h1 class="p-0 m-0 text-white">Administrator</h1>
</div>
{% endblock branding %}

{% block usertools %}
{% endblock usertools %}

Expand Down

0 comments on commit 43ff114

Please sign in to comment.