mirror of
https://git.sr.ht/~cadence/cloudtube
synced 2024-11-12 19:37:29 +00:00
Input type url for instance field
This commit is contained in:
parent
d3e7e2938f
commit
830c009066
@ -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",
|
||||
|
Loading…
Reference in New Issue
Block a user