digitaleagenturnc/users/templates/users/dashboard.html

56 lines
2.1 KiB
HTML

{% extends "users/base.html" %}
{% block content %}
<div class="content-section col-12">
<h3>Willkommen, {{request.user.first_name}} {{request.user.last_name}}!</h3>
<small>Letzter Login: {{ request.user.last_login }}</small>
<hr>
<h5>Agentur: <b>{{ request.user.profile.agency.name }}</b></h5>
<hr>
<div class="row">
<div class="col-9">
<h4>News</h4>
<table class="table">
<thead>
<tr>
<th scope="col">Titel</th>
<th scope="col">Veröffentlicht von</th>
<th scope="col">Veröffentlicht am</th>
</tr>
</thead>
{% for news_single in news %}
<tr>
<td><a href="{% url 'news-single' news_single.pk %}">{{news_single.name }}</a></td>
<td>{{ news_single.created_by.first_name }} {{ news_single.created_by.last_name }}</td>
<td>{{ news_single.created_date|date:"d.m.Y, H:i" }}</td>
</tr>
{% endfor %}
</table>
<h4 class="mt-5">Neueste Standards</h4>
<table class="table">
<thead>
<tr>
<th scope="col">Titel</th>
<th scope="col">Erstellt am</th>
<th scope="col">Erstellt von</th>
<th scope="col">Geändert am</th>
<th scope="col">Geändert von</th>
</tr>
</thead>
{% for standard in standards_of_agency %}
<tr>
<td><a href="{% url 'standard-single' standard.pk %}">{{standard.name}}</a></td>
<td>{{standard.created_standard_date|date:"d.m.Y, H:i"}}</td>
<td>{{standard.created_standard_by.first_name}} {{standard.created_standard_by.last_name}}</td>
<td><small>{{standard.last_modified_on|date:"d.m.Y, H:i"}}</small></td>
<td><small>{{standard.last_modified_by.first_name}} {{standard.last_modified_by.last_name}}</small></td>
</tr>
{% endfor %}
</table>
</div>
<div class="col-3 text-right" >
<img class="img-profile" width="100%" src="{{ request.user.profile.agency.agencypic.url }}">
</div>
</div>
{% endblock content %}