korrektur button-type
This commit is contained in:
parent
f18615ecdf
commit
019ccd51a7
|
@ -38,22 +38,16 @@
|
|||
<div class="tab-pane fade <%= activeTab === 'spiel' ? 'show active' : '' %>" id="spiel" role="tabpanel" aria-labelledby="tab-spiel">
|
||||
<div id="aufwaermen">
|
||||
<h3>Aufwärmen:</h3>
|
||||
|
||||
<% if (training.aufwaermleiter_name) { %>
|
||||
<div id="viewAufwaermenLeiter" class="mt-5">
|
||||
<p><strong>Leitung:</strong>
|
||||
<div id="viewAufwaermenLeiter" class="mt-5" style="margin: 0; padding: 0;">
|
||||
<strong>Leitung:</strong>
|
||||
<%= training.aufwaermleiter_name %>
|
||||
|
||||
<% if (session && session.role === 'admin') { %>
|
||||
<button class="btn btn-primary" onclick="toggleDivsAufwaermenLeiter()">Edit</button>
|
||||
<% } %>
|
||||
</p>
|
||||
<% if (session && session.role === 'admin') { %><button class="btn btn-primary" onclick="toggleDivsAufwaermenLeiter()">Edit</button><% } %>
|
||||
</div>
|
||||
|
||||
<% if (session && session.role === 'admin') { %>
|
||||
<div id="editAufwaermenLeiter" class="mt-5 d-none">
|
||||
<div id="editAufwaermenLeiter" class="mt-5 d-none" style="margin: 0; padding: 0;">
|
||||
<form method="POST" action="/update-leader">
|
||||
<p><strong>Leitung:</strong>
|
||||
<strong>Leitung:</strong>
|
||||
<input type="hidden" name="trainingId" value="<%= training.id %>">
|
||||
<input type="hidden" name="type" value="aufwaermleiter">
|
||||
<select name="leaderId">
|
||||
|
@ -62,9 +56,9 @@
|
|||
<% }) %>
|
||||
</select>
|
||||
<button class="btn btn-primary" type="submit">Speichern</button>
|
||||
<button class="btn btn-danger" onclick="toggleDivsAufwaermenLeiter()">cancel</button>
|
||||
</form></p>
|
||||
|
||||
<button class="btn btn-danger" type="button" onclick="toggleDivsAufwaermenLeiter()">cancel</button>
|
||||
</form>
|
||||
|
||||
</div>
|
||||
<% } %>
|
||||
|
||||
|
@ -93,18 +87,15 @@
|
|||
<% } %>
|
||||
|
||||
<% if (training.aufwaermen_name) { %>
|
||||
<div id="viewAufwaermen" class="mt-5">
|
||||
<p><strong>Spiel:</strong>
|
||||
<div id="viewAufwaermen" class="mt-5" style="margin: 0; padding: 0;">
|
||||
<strong>Spiel:</strong>
|
||||
<%= training.aufwaermen_name %>
|
||||
|
||||
<% if (session && session.role === 'admin') { %>
|
||||
<button class="btn btn-primary" onclick="toggleDivsAufwaermen()">edit</button>
|
||||
<% } %>
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<% if (session && session.role === 'admin') { %>
|
||||
<div id="editAufwaermen" class="mt-5 d-none">
|
||||
<div id="editAufwaermen" class="mt-5 d-none" style="margin: 0; padding: 0;">
|
||||
<form method="POST" action="/update-training">
|
||||
<p><strong>Spiel:</strong>
|
||||
<input type="hidden" name="trainingId" value="<%= training.id %>">
|
||||
|
@ -116,9 +107,8 @@
|
|||
</datalist>
|
||||
<input list="spiele" value="<%= training.aufwaermen_name %>" id="spielName" name="spielName">
|
||||
<button class="btn btn-primary" type="submit">Speichern</button>
|
||||
<button class="btn btn-danger" onclick="toggleDivsAufwaermen()">cancel</button>
|
||||
<button class="btn btn-danger" type="button" onclick="toggleDivsAufwaermen()">cancel</button>
|
||||
</form>
|
||||
|
||||
</p></div>
|
||||
<% } %>
|
||||
|
||||
|
@ -149,7 +139,7 @@
|
|||
<h3>Spiel: </h3>
|
||||
|
||||
<% if (training.spielleiter_name) { %>
|
||||
<div id="viewSpielLeiter" class="mt-5">
|
||||
<div id="viewSpielLeiter" class="mt-5" style="margin: 0; padding: 0;">
|
||||
<p><strong>Leitung:</strong>
|
||||
<%= training.spielleiter_name %>
|
||||
|
||||
|
@ -160,7 +150,7 @@
|
|||
</div>
|
||||
|
||||
<% if (session && session.role === 'admin') { %>
|
||||
<div id="editSpielLeiter" class="mt-5 d-none">
|
||||
<div id="editSpielLeiter" class="mt-5 d-none" style="margin: 0; padding: 0;">
|
||||
<form method="POST" action="/update-leader">
|
||||
<p><strong>Leitung:</strong>
|
||||
<input type="hidden" name="trainingId" value="<%= training.id %>">
|
||||
|
@ -171,7 +161,7 @@
|
|||
<% }) %>
|
||||
</select>
|
||||
<button class="btn btn-primary" type="submit">Speichern</button>
|
||||
<button class="btn btn-danger" onclick="toggleDivsSpielLeiter()">cancel</button>
|
||||
<button class="btn btn-danger" type="button" onclick="toggleDivsSpielLeiter()">cancel</button>
|
||||
</form></p>
|
||||
|
||||
|
||||
|
@ -204,7 +194,7 @@
|
|||
|
||||
|
||||
<% if (training.spiel_name) { %>
|
||||
<div id="viewSpiel" class="mt-5">
|
||||
<div id="viewSpiel" class="mt-5" style="margin: 0; padding: 0;">
|
||||
<p><strong>Spiel:</strong>
|
||||
<%= training.spiel_name %>
|
||||
|
||||
|
@ -214,7 +204,7 @@
|
|||
</div>
|
||||
|
||||
<% if (session && session.role === 'admin') { %>
|
||||
<div id="editSpiel" class="mt-5 d-none">
|
||||
<div id="editSpiel" class="mt-5 d-none" style="margin: 0; padding: 0;">
|
||||
<form method="POST" action="/update-training">
|
||||
<p><strong>Spiel:</strong>
|
||||
<input type="hidden" name="trainingId" value="<%= training.id %>">
|
||||
|
@ -226,7 +216,7 @@
|
|||
</datalist>
|
||||
<input list="spiele" id="spielName" name="spielName" value=" <%= training.spiel_name %>">
|
||||
<button class="btn btn-primary" type="submit">Speichern</button>
|
||||
<button class="btn btn-danger" onclick="toggleDivsSpiel()">cancel</button>
|
||||
<button class="btn btn-danger" type="button" onclick="toggleDivsSpiel()">cancel</button>
|
||||
</form>
|
||||
|
||||
</div>
|
||||
|
|
Loading…
Reference in New Issue