fwtrash/tpl/doppelklinge.html

38 lines
992 B
HTML
Raw Normal View History

2022-12-20 11:21:31 +00:00
{% extends tpl/layout.html %}
{% 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>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>{{ $list[$i]->act }}</td>
<td>{{ $list[$i]->max }}</td>
<td>{{ $list[$i]->percent }}</td>
</tr>
{% endfor; %}
</tbody>
</table>
insgesamt {{ $percent }}% erledigt (&oslash; {{ $avg }}%).
{% endif; %}
{% endblock %}