fix of the missing endpoints
This commit is contained in:
@@ -254,95 +254,6 @@
|
|||||||
<input type="hidden" name="action" value="create" />
|
<input type="hidden" name="action" value="create" />
|
||||||
<button type="submit" class="submit-btn">Veröffentlichen</button>
|
<button type="submit" class="submit-btn">Veröffentlichen</button>
|
||||||
</form>
|
</form>
|
||||||
|
|
||||||
<hr class="section-separator" />
|
|
||||||
|
|
||||||
<h2>Tutorial-Video hinzufügen</h2>
|
|
||||||
<form method="POST" action="{{ url_for('append_video') }}">
|
|
||||||
<div class="field">
|
|
||||||
<label for="tutorial_title">Titel</label>
|
|
||||||
<input
|
|
||||||
id="tutorial_title"
|
|
||||||
name="title"
|
|
||||||
type="text"
|
|
||||||
placeholder="z. B. Erste Schritte"
|
|
||||||
required
|
|
||||||
/>
|
|
||||||
</div>
|
|
||||||
<div class="field">
|
|
||||||
<label for="tutorial_video_url">Video-URL</label>
|
|
||||||
<input
|
|
||||||
id="tutorial_video_url"
|
|
||||||
name="video_url"
|
|
||||||
type="url"
|
|
||||||
placeholder="https://www.youtube.com/watch?v=..."
|
|
||||||
required
|
|
||||||
/>
|
|
||||||
<div class="field-hint">
|
|
||||||
Erlaubte Formate:
|
|
||||||
<ul class="hint-list">
|
|
||||||
<li>https://www.youtube.com/watch?v=VIDEO_ID</li>
|
|
||||||
<li>https://youtu.be/VIDEO_ID</li>
|
|
||||||
<li>https://www.youtube.com/shorts/VIDEO_ID</li>
|
|
||||||
<li>https://www.youtube.com/embed/VIDEO_ID</li>
|
|
||||||
</ul>
|
|
||||||
</div>
|
|
||||||
<div id="preview-status" class="preview-status" aria-live="polite">
|
|
||||||
Vorschau wird angezeigt, sobald eine gueltige YouTube-URL erkannt wird.
|
|
||||||
</div>
|
|
||||||
<div class="preview-panel">
|
|
||||||
<div class="preview-frame-wrap" id="preview-frame-wrap" hidden>
|
|
||||||
<iframe
|
|
||||||
id="tutorial-video-preview"
|
|
||||||
src=""
|
|
||||||
title="Live Vorschau Tutorial-Video"
|
|
||||||
allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share"
|
|
||||||
referrerpolicy="strict-origin-when-cross-origin"
|
|
||||||
allowfullscreen
|
|
||||||
></iframe>
|
|
||||||
</div>
|
|
||||||
<div id="preview-empty" class="preview-empty">
|
|
||||||
Noch keine Vorschau verfuegbar.
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="field">
|
|
||||||
<label for="tutorial_description">Beschreibung</label>
|
|
||||||
<textarea
|
|
||||||
id="tutorial_description"
|
|
||||||
name="description"
|
|
||||||
placeholder="Kurze Beschreibung des Videos"
|
|
||||||
></textarea>
|
|
||||||
</div>
|
|
||||||
<div class="field">
|
|
||||||
<label for="tutorial_thumbnail">Thumbnail-URL (optional)</label>
|
|
||||||
<input
|
|
||||||
id="tutorial_thumbnail"
|
|
||||||
name="thumbnail_url"
|
|
||||||
type="url"
|
|
||||||
placeholder="https://..."
|
|
||||||
/>
|
|
||||||
</div>
|
|
||||||
<div class="field">
|
|
||||||
<label for="tutorial_duration">Dauer (optional)</label>
|
|
||||||
<input
|
|
||||||
id="tutorial_duration"
|
|
||||||
name="duration"
|
|
||||||
type="text"
|
|
||||||
placeholder="z. B. 12:34"
|
|
||||||
/>
|
|
||||||
</div>
|
|
||||||
<div class="field">
|
|
||||||
<label for="tutorial_category">Kategorie (optional)</label>
|
|
||||||
<input
|
|
||||||
id="tutorial_category"
|
|
||||||
name="category"
|
|
||||||
type="text"
|
|
||||||
placeholder="z. B. Anfänger"
|
|
||||||
/>
|
|
||||||
</div>
|
|
||||||
<button type="submit" class="submit-btn">Video hinzufügen</button>
|
|
||||||
</form>
|
|
||||||
</aside>
|
</aside>
|
||||||
|
|
||||||
<article>
|
<article>
|
||||||
|
|||||||
Reference in New Issue
Block a user