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