70 lines
2.4 KiB
HTML
70 lines
2.4 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" style="float: left;">
|
|
|
|
<div class="card d-block mb-2 mr-2 " style="width: 60%" >
|
|
<div class="card-body" >
|
|
<h5 class="card-title">News</h5>
|
|
<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.go_online_on|date:"d.m.Y, H:i" }}</td>
|
|
</tr>
|
|
{% endfor %}
|
|
</table>
|
|
</div>
|
|
</div>
|
|
<div class="card d-block mb-2" style="width: 35%">
|
|
<div class="card-body">
|
|
<img width="100%" src="{{ request.user.profile.agency.get_photo_url }}">
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<div class="card d-block mb-2" style="width: 96%">
|
|
<div class="card-body">
|
|
<h5 class="card-title">Neueste Standards</h5>
|
|
<table class="table">
|
|
<thead>
|
|
<tr>
|
|
<th scope="col">Titel</th>
|
|
<th scope="col">Erstellt von</th>
|
|
<th scope="col">Erstellt am</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_by.first_name}} {{standard.created_standard_by.last_name}}</td>
|
|
<td>{{standard.created_standard_date|date:"d.m.Y, H:i"}}</td>
|
|
</tr>
|
|
{% endfor %}
|
|
</table>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
</div>
|
|
{% endblock content %}
|
|
|
|
|
|
|
|
|
|
|
|
|