40 lines
1.6 KiB
Twig
40 lines
1.6 KiB
Twig
{% extends 'base.html.twig' %}
|
|
|
|
{% block page_title %}Timesheet{% endblock %}
|
|
{% block page_subtitle %}manage your times{% endblock %}
|
|
|
|
{% block main %}
|
|
{% if entries %}
|
|
<table class="table table-striped">
|
|
<thead>
|
|
<tr>
|
|
<th><i class="fa fa-calendar"></i> {{ 'label.date'|trans }}</th>
|
|
<th><i class="fa fa-hourglass-start"></i> {{ 'label.starttime'|trans }}</th>
|
|
<th><i class="fa fa-hourglass-end"></i> {{ 'label.endtime'|trans }}</th>
|
|
<th><i class="fa fa-clock-o"></i> {{ 'label.duration'|trans }}</th>
|
|
<th><i class="fa fa-user"></i> {{ 'label.username'|trans }}</th>
|
|
<th><i class="fa fa-pencil-square-o"></i> {{ 'label.description'|trans }}</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
{% for entry in entries %}
|
|
<tr>
|
|
<td>{{ entry.start|date(kimai_context.date_1) }}</td>
|
|
<td>{{ entry.start|date("H:i") }}</td>
|
|
<td>{{ entry.end|date("H:i") }}</td>
|
|
<td>{{ entry.duration|gmdate }}</td>
|
|
<td>{{ entry.user.username }}</td>
|
|
<td>{{ entry.description }}</td>
|
|
</tr>
|
|
{% endfor %}
|
|
</tbody>
|
|
</table>
|
|
{% else %}
|
|
<div class="well">{{ 'post.no_posts_found'|trans }}</div>
|
|
{% endif %}
|
|
|
|
<div class="navigation text-center">
|
|
{{ pagerfanta(entries, 'twitter_bootstrap3_translated', { routeName: 'timesheet_paginated' }) }}
|
|
</div>
|
|
{% endblock %}
|