25 lines
1.3 KiB
HTML
25 lines
1.3 KiB
HTML
{% extends 'base.html' %}
|
|
{% block content %}
|
|
<div class="card">
|
|
<h1>{{ 'Rediger stream' if stream else 'Ny stream' }}</h1>
|
|
<form method="post" class="form-grid">
|
|
<label>Navn<input type="text" name="name" value="{{ stream.name if stream else '' }}" required></label>
|
|
<label>Slug<input type="text" name="slug" value="{{ stream.slug if stream else '' }}" required></label>
|
|
<label>Chat type
|
|
<select name="chat_type">
|
|
{% set chat_type = stream.chat_type if stream else 'none' %}
|
|
<option value="none" {{ 'selected' if chat_type == 'none' else '' }}>Ingen</option>
|
|
<option value="twitch" {{ 'selected' if chat_type == 'twitch' else '' }}>Twitch</option>
|
|
<option value="youtube" {{ 'selected' if chat_type == 'youtube' else '' }}>YouTube</option>
|
|
</select>
|
|
</label>
|
|
<label>Chat URL / embed URL<input type="text" name="chat_url" value="{{ stream.chat_url if stream else '' }}"></label>
|
|
<label class="full">Noter<textarea name="notes" rows="5">{{ stream.notes if stream else '' }}</textarea></label>
|
|
{% if stream %}
|
|
<label class="check"><input type="checkbox" name="active" value="1" {{ 'checked' if stream.active else '' }}> Tillad publish</label>
|
|
{% endif %}
|
|
<button type="submit">Gem</button>
|
|
</form>
|
|
</div>
|
|
{% endblock %}
|