Add migration fixes

This commit is contained in:
2020-10-09 16:06:31 +02:00
parent 011619d3c3
commit aea74bef27
8 changed files with 23 additions and 7 deletions

View File

@@ -15,7 +15,6 @@
<tr>
<th>Person</th>
<th>Datum</th>
<th>Gewaschen?</th>
<th>Waschperson</th>
</tr>
</thead>
@@ -26,15 +25,18 @@
<tr>
<td>{{$item.Person}}</td>
<td>{{$item.Date}}</td>
<td>{{$item.Washed}}</td>
<td>
<div class="center">
<form class="ui form" action="/uploadname" method="POST">
<input type="hidden" id="washid" name="washid" value="{{ $item.Id}}">
<select name="names" id="names">
<option value="-1" selected></option>
<!--<option value="-1" selected disabled hidden>Choose here</option>-->
{{range $person := $persons}}
<option value="{{$person.Id}}">{{$person.Name}}</option>
{{if eq $item.Washed $person.Id}}
<option value="{{$person.Id}}" selected>{{$person.Name}}</option>
{{else}}
<option value="{{$person.Id}}">{{$person.Name}}</option>
{{end}}
{{end}}
</select>
<input type="submit" value="Speichern">