From 3e5f245121ea2baa775ec1e803b467324c72dd0d Mon Sep 17 00:00:00 2001 From: Alice Gaudon Date: Thu, 22 Apr 2021 18:35:36 +0200 Subject: [PATCH] Put checkboxes before their field in file upload and url shrink forms --- views/file-uploader.njk | 4 ++-- views/url-shrinker.njk | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/views/file-uploader.njk b/views/file-uploader.njk index 8e89f99..d58a148 100644 --- a/views/file-uploader.njk +++ b/views/file-uploader.njk @@ -18,11 +18,11 @@ id="upload-form"> {{ macros.field(_locals, 'file', 'upload', '', 'Choose wisely', 'The maximum upload size is ' + max_upload_size + 'MiB', validation_attributes='required') }} - {{ macros.field(_locals, 'number', 'expire_after_days', '30', 'How many days to delete this file after', null, validation_attributes='max="1825"') }} {{ macros.field(_locals, 'checkbox', 'never_expire', '', 'Never delete this file') }} + {{ macros.field(_locals, 'number', 'expire_after_days', '30', 'How many days to delete this file after', null, validation_attributes='max="1825"') }} - {{ macros.field(_locals, 'text', 'slug', '', 'Custom url slug', 'Example: beautiful_image.jpg sets url to https://'+default_domain+'/beautiful_image.jpg', validation_attributes='disabled') }} {{ macros.field(_locals, 'checkbox', 'autogen_url', '', 'Generate url automatically', null, validation_attributes='checked') }} + {{ macros.field(_locals, 'text', 'slug', '', 'Custom url slug', 'Example: beautiful_image.jpg sets url to https://'+default_domain+'/beautiful_image.jpg', validation_attributes='disabled') }} {{ macros.csrf(getCsrfToken) }} diff --git a/views/url-shrinker.njk b/views/url-shrinker.njk index 3e31585..62e5969 100644 --- a/views/url-shrinker.njk +++ b/views/url-shrinker.njk @@ -17,8 +17,8 @@
{{ macros.field(_locals, 'text', 'target_url', '', 'Target URL', 'Only valid URLs starting with http:// or https://', validation_attributes='required') }} - {{ macros.field(_locals, 'text', 'slug', '', 'Custom url slug', 'Example: bear sets url to https://'+default_domain+'/bear', validation_attributes='disabled') }} {{ macros.field(_locals, 'checkbox', 'autogen_url', '', 'Generate url automatically', null, validation_attributes='checked') }} + {{ macros.field(_locals, 'text', 'slug', '', 'Custom url slug', 'Example: bear sets url to https://'+default_domain+'/bear', validation_attributes='disabled') }} {{ macros.csrf(getCsrfToken) }}