Feature: Support both Free-Text and Multiple-Choice question types
This commit is contained in:
@@ -24,9 +24,25 @@
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="antwort">Richtige Antwort: <span class="required">*</span></label>
|
||||
<label for="q_type">Art der Frage:</label>
|
||||
<select id="q_type" name="q_type" class="input-text" onchange="toggleVorschlagType(this.value)">
|
||||
<option value="text" selected>🔤 Freitext-Antwort (Tippen mit Fehlertoleranz)</option>
|
||||
<option value="multiple_choice">🔘 Multiple Choice (Auswahl aus 4 Antwortmöglichkeiten)</option>
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="antwort"><span id="antwortLabel">Richtige Antwort:</span> <span class="required">*</span></label>
|
||||
<input type="text" id="antwort" name="antwort" class="input-text" placeholder="z. B. Albus Dumbledore" required>
|
||||
<small class="field-help">Unser System gleicht Tippfehler und Groß-/Kleinschreibung automatisch ab.</small>
|
||||
<small class="field-help" id="antwortHelp">Unser System gleicht Tippfehler und Groß-/Kleinschreibung automatisch ab.</small>
|
||||
</div>
|
||||
|
||||
<!-- Zusätzliche Optionen für Multiple Choice -->
|
||||
<div id="mcOptionsGroup" class="form-group hidden" style="background: rgba(255,255,255,0.03); padding: 15px; border-radius: 8px; border: 1px dashed var(--border-gold);">
|
||||
<label style="color: var(--gold);">Falsche Antwortmöglichkeiten (zur Auswahl für die Spieler):</label>
|
||||
<input type="text" id="wrong1" class="input-text" placeholder="Falsche Option 1 (z. B. Severus Snape)" style="margin-bottom: 8px;">
|
||||
<input type="text" id="wrong2" class="input-text" placeholder="Falsche Option 2 (z. B. Minerva McGonagall)" style="margin-bottom: 8px;">
|
||||
<input type="text" id="wrong3" class="input-text" placeholder="Falsche Option 3 (z. B. Rubeus Hagrid)">
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
|
||||
Reference in New Issue
Block a user