From 830c0090661fbdea203378a80da619b32e46187b Mon Sep 17 00:00:00 2001 From: Cadence Ember Date: Sat, 26 Sep 2020 01:03:20 +1200 Subject: [PATCH] Input type url for instance field --- pug/settings.pug | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pug/settings.pug b/pug/settings.pug index ec5c5c0..0f1bbaa 100644 --- a/pug/settings.pug +++ b/pug/settings.pug @@ -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",