Spiel & Aufwärmen gruppiert
This commit is contained in:
parent
0aef28be60
commit
abc693de3f
|
@ -38,23 +38,6 @@
|
||||||
</form>
|
</form>
|
||||||
<% } %>
|
<% } %>
|
||||||
</li>
|
</li>
|
||||||
<li>
|
|
||||||
Spielleiter:
|
|
||||||
<% if (training.spielleiter_name) { %>
|
|
||||||
<%= training.spielleiter_name %>
|
|
||||||
<% } else { %>
|
|
||||||
<form method="POST" action="/update-leader">
|
|
||||||
<input type="hidden" name="trainingId" value="<%= training.id %>">
|
|
||||||
<input type="hidden" name="type" value="spielleiter">
|
|
||||||
<select name="leaderId">
|
|
||||||
<% spielleiterCandidates.forEach(candidate => { %>
|
|
||||||
<option value="<%= candidate.id %>"><%= candidate.name %> (<%= Math.floor(candidate.weeks_since_last) %> Wochen)</option>
|
|
||||||
<% }) %>
|
|
||||||
</select>
|
|
||||||
<button type="submit">Speichern</button>
|
|
||||||
</form>
|
|
||||||
<% } %>
|
|
||||||
</li>
|
|
||||||
|
|
||||||
<li>
|
<li>
|
||||||
Aufwärmen:
|
Aufwärmen:
|
||||||
|
@ -80,6 +63,25 @@
|
||||||
</form>
|
</form>
|
||||||
</li>
|
</li>
|
||||||
|
|
||||||
|
<li>
|
||||||
|
Spielleiter:
|
||||||
|
<% if (training.spielleiter_name) { %>
|
||||||
|
<%= training.spielleiter_name %>
|
||||||
|
<% } else { %>
|
||||||
|
<form method="POST" action="/update-leader">
|
||||||
|
<input type="hidden" name="trainingId" value="<%= training.id %>">
|
||||||
|
<input type="hidden" name="type" value="spielleiter">
|
||||||
|
<select name="leaderId">
|
||||||
|
<% spielleiterCandidates.forEach(candidate => { %>
|
||||||
|
<option value="<%= candidate.id %>"><%= candidate.name %> (<%= Math.floor(candidate.weeks_since_last) %> Wochen)</option>
|
||||||
|
<% }) %>
|
||||||
|
</select>
|
||||||
|
<button type="submit">Speichern</button>
|
||||||
|
</form>
|
||||||
|
<% } %>
|
||||||
|
</li>
|
||||||
|
|
||||||
|
|
||||||
<!-- Für Spiel -->
|
<!-- Für Spiel -->
|
||||||
<li>
|
<li>
|
||||||
Spiel:
|
Spiel:
|
||||||
|
|
Loading…
Reference in New Issue