1
0
mirror of https://git.sr.ht/~cadence/cloudtube synced 2024-12-22 13:07:00 +00:00

Input type url for instance field

This commit is contained in:
Cadence Ember 2020-09-26 01:03:20 +12:00
parent d3e7e2938f
commit 830c009066
No known key found for this signature in database
GPG Key ID: BC1C2C61CF521B17

View File

@ -6,10 +6,10 @@ mixin fieldset(name)
.fieldset-contents
block
mixin input(id, description, placeholder, disabled, list)
mixin input(id, description, type, placeholder, disabled, list)
.field-row
label.description(for=id)= description
input(type="text" id=id name=id value=settings[id] placeholder=placeholder disabled=disabled list=`${id}-list`).border-look
input(type=type id=id name=id value=settings[id] placeholder=placeholder disabled=disabled list=`${id}-list`).border-look
if list
datalist(id=`${id}-list`)
each item in list
@ -30,7 +30,7 @@ block content
form(method="post" action="/settings")
+fieldset("Settings")
+input("instance", "Instance", constants.user_settings.instance.default, false, [
+input("instance", "Instance", "url", constants.user_settings.instance.default, false, [
"https://invidious.snopyta.org",
"https://invidious.13ad.de",
"https://watch.nettohikari.com",