Add pre-built bulma
This commit is contained in:
parent
ff481a41c1
commit
0e3db29154
|
@ -1,13 +1,24 @@
|
||||||
{% extends "base.html" %}
|
{% extends "base.html" %}
|
||||||
|
|
||||||
{% block title %}Help!{% endblock %}
|
{% block title %}Help!{% endblock %}
|
||||||
|
|
||||||
|
{% block navbar %}
|
||||||
|
<a class="navbar-item" href="{% url 'register' %}">Anmelden</a>
|
||||||
|
{% endblock %}
|
||||||
|
|
||||||
{% block body %}
|
{% block body %}
|
||||||
{% if helper %}
|
{% if helper %}
|
||||||
Hallo {{ helper.name }}
|
<section class="hero">
|
||||||
{% else %}
|
<div class="container">
|
||||||
<a href="{% url 'register' %}">Anmelden</a>
|
<div class="hero-body">
|
||||||
|
<h1 class="title">Hallo {{ helper.name }}!</h1>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
<div id="content">
|
<section class="section">
|
||||||
{% block content %}{% endblock %}
|
<div class="container">
|
||||||
</div>
|
{% block content %}{% endblock %}
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
|
@ -127,6 +127,10 @@ USE_TZ = True
|
||||||
STATIC_ROOT = "/opt/shiftregister/static"
|
STATIC_ROOT = "/opt/shiftregister/static"
|
||||||
STATIC_URL = "static/"
|
STATIC_URL = "static/"
|
||||||
|
|
||||||
|
STATICFILES_DIRS = [
|
||||||
|
Path(BASE_DIR, Path("static")),
|
||||||
|
]
|
||||||
|
|
||||||
# Default primary key field type
|
# Default primary key field type
|
||||||
# https://docs.djangoproject.com/en/4.0/ref/settings/#default-auto-field
|
# https://docs.djangoproject.com/en/4.0/ref/settings/#default-auto-field
|
||||||
|
|
||||||
|
|
|
@ -1,13 +1,16 @@
|
||||||
{% extends "base.html" %}
|
{% extends "base.html" %}
|
||||||
|
|
||||||
{% block title %}Team{% endblock %}
|
{% block title %}Team{% endblock %}
|
||||||
{% block body %}
|
|
||||||
<nav>
|
{% block navbar %}
|
||||||
<a href="{% url 'team:shift_overview' %}">Schichtuebersicht</a>
|
<a class="navbar-item" href="{% url 'team:shift_overview' %}">Schichtübersicht</a>
|
||||||
<a href="{% url 'team:shift_all' %}">Alle Schichten</a>
|
<a class="navbar-item" href="{% url 'team:shift_all' %}">Alle Schichten</a>
|
||||||
</nav>
|
{% endblock %}
|
||||||
<hr>
|
|
||||||
<div id="content">
|
{% block body %}
|
||||||
{% block content %}{% endblock %}
|
<section class="section">
|
||||||
</div>
|
<div class="container">
|
||||||
|
{% block content %}{% endblock %}
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
File diff suppressed because one or more lines are too long
|
@ -1,3 +1,4 @@
|
||||||
|
{% load static %}
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html lang="de">
|
<html lang="de">
|
||||||
<head>
|
<head>
|
||||||
|
@ -5,8 +6,18 @@
|
||||||
<meta name="viewport" content="width=device-width,initial-scale=1">
|
<meta name="viewport" content="width=device-width,initial-scale=1">
|
||||||
<title>{% block title %}Help!{% endblock %}</title>
|
<title>{% block title %}Help!{% endblock %}</title>
|
||||||
<link rel="icon" href="data:;base64,iVBORw0KGgo=">
|
<link rel="icon" href="data:;base64,iVBORw0KGgo=">
|
||||||
|
<link rel="stylesheet" href="{% static 'bulma.min.css' %}">
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
|
<nav class="navbar">
|
||||||
|
<div class="container">
|
||||||
|
<div class="navbar-brand">
|
||||||
|
<a class="navbar-item has-text-weight-bold" href="{% url 'index' %}">Helfer*innen</a>
|
||||||
|
{% block navbar %}
|
||||||
|
{% endblock navbar %}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</nav>
|
||||||
{% block body %}
|
{% block body %}
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
</body>
|
</body>
|
||||||
|
|
Loading…
Reference in New Issue