You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
36 lines
1.8 KiB
36 lines
1.8 KiB
2 years ago
|
extends ../../layouts/main
|
||
|
block content
|
||
|
h1 VenueChannel Editor
|
||
|
|
||
|
- var formAction = channel ? `/admin/venue/channel/${channel._id}` : '/admin/venue/channel';
|
||
|
|
||
|
form(method="POST", action= formAction).uk-form
|
||
|
.uk-card.uk-card-secondary.uk-card-small
|
||
|
.uk-card-header
|
||
|
h1.uk-card-title= channel ? 'Update Channel' : 'Create Channel'
|
||
|
|
||
|
.uk-card-body
|
||
|
.uk-margin
|
||
|
label(for="slug").uk-form-label Channel URL
|
||
|
input(type="url", name="url", placeholder="Paste Shing.tv channel URL").uk-input
|
||
|
|
||
|
.uk-margin
|
||
|
label(for="owner").uk-form-label Owner
|
||
|
input(type="text", name="owner", placeholder=`Enter channel owner's local username (here on ${site.name})`, value= channel ? channel.owner.username : undefined).uk-input
|
||
|
.uk-text-small.uk-text-muted Enter the user's username here on #{site.name}, not from Shing.tv.
|
||
|
|
||
|
div(uk-grid)
|
||
|
div(class="uk-width-1-1 uk-width-2-3@m")
|
||
|
label(for="stream-key").uk-form-label Stream Key
|
||
|
input(id="stream-key", type="text", name="credentials.streamKey", placeholder="Paste Shing.tv stream key", value= channel ? channel.credentials.streamKey : undefined).uk-input
|
||
|
|
||
|
div(class="uk-width-1-1 uk-width-1-3@m")
|
||
|
label(for="widget-key").uk-form-label Widget Key
|
||
|
input(id="widget-key", type="text", name="credentials.widgetKey", placeholder="Paste Shing.tv widget key", value= channel ? channel.credentials.widgetKey : undefined).uk-input
|
||
|
|
||
|
.uk-card-footer.uk-flex.uk-flex-between
|
||
|
.uk-width-auto
|
||
|
+renderBackButton({ includeLabel: true, label: 'Cancel' })
|
||
|
|
||
|
.uk-width-auto
|
||
|
button(type="submit").uk-button.dtp-button-primary.uk-border-rounded= channel ? 'Update Channel' : 'Create Channel'
|