Style team pages
parent
08848863ca
commit
6ca0958909
@ -1,13 +1,15 @@
|
|||||||
{% extends "team_base.html" %}
|
{% extends "team_base.html" %}
|
||||||
|
|
||||||
{% block title %}Schichtdetails{% endblock %}
|
{% block title %}Helferdetails{% endblock %}
|
||||||
{% block content %}
|
{% block content %}
|
||||||
<h2>{{ helper.name }}</h2>
|
<h3 class="title">{{ helper.name }}</h3>
|
||||||
Telefon: <a href="tel:{{ helper.phone }}">{{ helper.phone }}</a>
|
<div class="content">
|
||||||
<h2>Schichten:</h2>
|
Telefon: <a href="tel:{{ helper.phone }}">{{ helper.phone }}</a>
|
||||||
<ul>
|
</div>
|
||||||
{% for reg in helper.shiftregistration_set.all %}
|
<h5 class="subtitle">Schichten</h5>
|
||||||
<li>{{ reg.shift.room.name }} {{ reg.shift.start_at }}({{ reg.shift.shiftregistration_set.count }}/{{ reg.shift.room.required_helpers }})<a href="{% url 'team:shift' reg.shift.id %}">Details</a></li>
|
<div class="columns is-multiline">
|
||||||
{% endfor %}
|
{% for reg in helper.shiftregistration_set.all %}
|
||||||
</ul>
|
{% include 'partials/shift_list_item.html' with shift=reg.shift %}
|
||||||
|
{% endfor %}
|
||||||
|
</div>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
@ -0,0 +1,14 @@
|
|||||||
|
<div class="box">
|
||||||
|
<div class="content">
|
||||||
|
{% if shift.deleted %}
|
||||||
|
<em>gelöscht</em><br>
|
||||||
|
{% endif %}
|
||||||
|
<strong>Ort:</strong> {{ shift.room.name }}<br>
|
||||||
|
<strong>Beginn:</strong> {{ shift.start_at }}<br>
|
||||||
|
<strong>Dauer:</strong> {{ shift.duration }}<br>
|
||||||
|
<strong>Belegung:</strong> {{ shift.shiftregistration_set.count }}/{{ shift.room.required_helpers }}
|
||||||
|
</div>
|
||||||
|
<div class="is-flex is-justify-content-end">
|
||||||
|
<a class="button is-info is-small" href="{% url 'team:shift' shift.id %}">Details</a>
|
||||||
|
</div>
|
||||||
|
</div>
|
@ -1,3 +1,3 @@
|
|||||||
<li class="box"><b>{{ shift.room.name }}</b> {{ shift.start_at }} ({{ shift.shiftregistration_set.count }}/{{ shift.room.required_helpers }})
|
<div class="column is-one-quarter">
|
||||||
<a class="button is-info is-small" href="{% url 'team:shift' shift.id %}">Details</a>
|
{% include 'partials/shift_box.html' %}
|
||||||
</li>
|
</div>
|
||||||
|
@ -1,11 +1,12 @@
|
|||||||
{% extends "team_base.html" %}
|
{% extends "team_base.html" %}
|
||||||
|
|
||||||
{% block title %}{{title}}{% endblock %}
|
{% block title %}{{ title }}{% endblock %}
|
||||||
|
|
||||||
{% block content %}
|
{% block content %}
|
||||||
<h3 class="title is-3">{{title}}</h3>
|
<h3 class="title">{{ title }}</h3>
|
||||||
<ul>
|
<div class="columns is-multiline">
|
||||||
{% for shift in object_list %}
|
{% for shift in object_list %}
|
||||||
{% include "partials/shift_list_item.html" %}
|
{% include "partials/shift_list_item.html" %}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</ul>
|
</div>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
@ -1,20 +1,24 @@
|
|||||||
{% extends "team_base.html" %}
|
{% extends "team_base.html" %}
|
||||||
|
|
||||||
{% block title %}Schichtübersicht{% endblock %}
|
{% block title %}Schichtübersicht{% endblock %}
|
||||||
|
|
||||||
{% block content %}
|
{% block content %}
|
||||||
{% if running_shifts %}
|
{% if running_shifts %}
|
||||||
<h3 class="title is-3">Laufende Schichten</h3>
|
<h3 class="title">Laufende Schichten</h3>
|
||||||
<ul>
|
<div class="columns is-multiline">
|
||||||
{% for shift in running_shifts %}
|
{% for shift in running_shifts %}
|
||||||
{% include "partials/shift_list_item.html" %}
|
{% include "partials/shift_list_item.html" %}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</ul>
|
</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
<hr/>
|
<hr>
|
||||||
<h3 class="title is-3">Nächste Schichten pro Raum</h3>
|
<h3 class="title is-spaced">Nächste Schichten pro Raum</h3>
|
||||||
<ul>
|
<div class="columns">
|
||||||
{% for shift in next_shifts %}
|
{% for shift in next_shifts %}
|
||||||
{% include "partials/shift_list_item.html" %}
|
<div class="column is-one-quarter">
|
||||||
{% endfor %}
|
<h5 class="subtitle">{{ shift.room.name }}</h5>
|
||||||
</ul>
|
{% include "partials/shift_box.html" %}
|
||||||
|
</div>
|
||||||
|
{% endfor %}
|
||||||
|
</div>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
Loading…
Reference in New Issue