Dashboard mit Kacheln IHR LAPPEN!

This commit is contained in:
holger.trampe 2019-12-12 20:47:51 +01:00
parent 9eb57443f9
commit 47dcf94f51
2 changed files with 66 additions and 45 deletions

View File

@ -77,6 +77,9 @@ function connectorDefaults(connector) {
connector.targetDecorator.shape = 'None'; connector.targetDecorator.shape = 'None';
connector.type = 'Orthogonal'; connector.type = 'Orthogonal';
connector.style.strokeColor = 'gray'; connector.style.strokeColor = 'gray';
console.log(connector);
return connector; return connector;
} }

View File

@ -7,9 +7,12 @@
<h5>Agentur: <b>{{ request.user.profile.agency.name }}</b></h5> <h5>Agentur: <b>{{ request.user.profile.agency.name }}</b></h5>
<hr> <hr>
<div class="row"> <div class="row" style="float: left;">
<div class="col-9">
<h4>News</h4>
<div class="card mb-3 col-9">
<div class="card-body">
<h5 class="card-title">News</h5>
<table class="table"> <table class="table">
<thead> <thead>
<tr> <tr>
@ -26,31 +29,46 @@
</tr> </tr>
{% endfor %} {% endfor %}
</table> </table>
</div>
</div>
<h4 class="mt-5">Neueste Standards</h4> <div class="col-3 text-right" >
<img class="img-profile" width="100%" src="{{ request.user.profile.agency.agencypic.url }}">
</div>
<div class="card mb-3 col-9">
<div class="card-body">
<h5 class="card-title">Neueste Standards</h5>
<table class="table"> <table class="table">
<thead> <thead>
<tr> <tr>
<th scope="col">Titel</th> <th scope="col">Titel</th>
<th scope="col">Erstellt am</th>
<th scope="col">Erstellt von</th> <th scope="col">Erstellt von</th>
<th scope="col">Geändert am</th> <th scope="col">Erstellt am</th>
<th scope="col">Geändert von</th>
</tr> </tr>
</thead> </thead>
{% for standard in standards_of_agency %} {% for standard in standards_of_agency %}
<tr> <tr>
<td><a href="{% url 'standard-single' standard.pk %}">{{standard.name}}</a></td> <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>{{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>{{standard.created_standard_date|date:"d.m.Y, H:i"}}</td>
<td><small>{{standard.last_modified_by.first_name}} {{standard.last_modified_by.last_name}}</small></td>
</tr> </tr>
{% endfor %} {% endfor %}
</table> </table>
</div> </div>
<div class="col-3 text-right" >
<img class="img-profile" width="100%" src="{{ request.user.profile.agency.agencypic.url }}">
</div> </div>
</div> </div>
{% endblock content %} {% endblock content %}
{% for standard in standards_of_agency %}
{% if standard.task == task and standard.area == area %}
<p class="card-text"><a href="{% url 'standard-single' standard.pk %}">{{standard.name}}</a></p>
{% endif %}
{% endfor %}