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
1 changed files with 3 additions and 3 deletions

View File

@ -6,10 +6,10 @@ mixin fieldset(name)
.fieldset-contents .fieldset-contents
block block
mixin input(id, description, placeholder, disabled, list) mixin input(id, description, type, placeholder, disabled, list)
.field-row .field-row
label.description(for=id)= description 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 if list
datalist(id=`${id}-list`) datalist(id=`${id}-list`)
each item in list each item in list
@ -30,7 +30,7 @@ block content
form(method="post" action="/settings") form(method="post" action="/settings")
+fieldset("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.snopyta.org",
"https://invidious.13ad.de", "https://invidious.13ad.de",
"https://watch.nettohikari.com", "https://watch.nettohikari.com",