added "add media" buttons to prevent media picker opening automatically and added status captions
Sonarqube Scanner / Build and analyze (push) Successful in 1m2s

This commit is contained in:
Florian Zumpe
2026-09-27 17:38:24 +02:00
parent 18bb4682a0
commit 6b3f228ad8
4 changed files with 135 additions and 13 deletions
+20 -4
View File
@@ -401,10 +401,26 @@
<input id="editor-poi-radius" type="number" inputmode="numeric" min="1" step="1" value="25">
</div>
<label for="editor-poi-audio">Audiodatei verknüpfen</label>
<input id="editor-poi-audio" type="file" accept="audio/*">
<label for="editor-poi-images">Bilder verknüpfen</label>
<input id="editor-poi-images" type="file" accept="image/*" multiple>
<div class="editor-media-actions" aria-label="Medien zur Station hinzufügen">
<button id="editor-poi-audio-add" class="editor-media-button" type="button" title="Audio hinzufügen">
<svg class="editor-media-icon" viewBox="0 0 32 32" aria-hidden="true" focusable="false">
<path d="M18 5v15.2a5 5 0 1 1-2-4V9l10-2v9.2a5 5 0 1 1-2-4V4.6z"/>
<path d="M6 4v6M3 7h6"/>
</svg>
<span>Audio hinzufügen</span>
</button>
<button id="editor-poi-images-add" class="editor-media-button" type="button" title="Bild hinzufügen">
<svg class="editor-media-icon" viewBox="0 0 32 32" aria-hidden="true" focusable="false">
<path d="M6 10h4l2-3h8l2 3h4a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V12a2 2 0 0 1 2-2z"/>
<circle cx="16" cy="18" r="5"/>
<path d="M6 3v6M3 6h6"/>
</svg>
<span>Bild hinzufügen</span>
</button>
</div>
<input id="editor-poi-audio" type="file" accept="audio/*" hidden>
<input id="editor-poi-images" type="file" accept="image/*" multiple hidden>
<p id="editor-poi-media-status" class="editor-muted" aria-live="polite"></p>
<button id="editor-poi-save" class="editor-primary-button" type="submit">Station speichern</button>
</form>