fwtrash/views/doppelklinge.twig
2024-03-29 15:47:35 +01:00

41 lines
1.1 KiB
Twig

{% extends layout.twig %}
{% block title %}irgendwas mit Doppelklinge{% endblock %}
{% block content %}
<form action="/doppelklinge" method="post">
<p>Gesamten Mainframe von Position X: 80 Y: 126 einfügen (strg-a, strg-c):</p>
<textarea name="progress" rows="4" cols="60">{{ $progress }}</textarea>
<br />
<input type="submit" value="abschnalzen" />
</form>
{% if(isset($list)): %}
<hr />
<table class="table table-sm table-striped">
<thead>
<tr>
<th>Aufgabe</th>
<th>Fortschritt</th>
<th>Ziel</th>
<th>&uuml;brig</th>
<th>Prozent</th>
</tr>
</thead>
<tbody>
{% for($i = 0; $i < count($list); $i++): %}
<tr style="background-color: {{ $i >= 5 ? 'red' : 'white' }}">
<td>{{ $list[$i]->task }}</td>
<td>{{ number_format($list[$i]->act, 0, '', '.') }}</td>
<td>{{ number_format($list[$i]->max, 0, '', '.') }}</td>
<td>{{ number_format($list[$i]->left, 0, '', '.') }}</td>
<td>{{ $list[$i]->percent }}</td>
</tr>
{% endfor; %}
</tbody>
</table>
<p>insgesamt {{ $percent }}% erledigt (&oslash; {{ $avg }}%).</p>
<p>Stand: {{ $dt }}</p>
{% endif; %}
{% endblock %}