From ec8d8dc928cf32b9bdd3b1a389789ca902210d61 Mon Sep 17 00:00:00 2001 From: Gosse Minnema Date: Thu, 27 Feb 2025 13:51:53 +0100 Subject: [PATCH] Grey out URL field in annotate & report to avoid non-existent URLs being processed --- app/templates/base/_formhelpers.html | 4 ++-- app/templates/orchard/annotate.html | 2 +- app/templates/orchard/report.html | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/app/templates/base/_formhelpers.html b/app/templates/base/_formhelpers.html index 7f492f6..d59aafc 100644 --- a/app/templates/base/_formhelpers.html +++ b/app/templates/base/_formhelpers.html @@ -11,10 +11,10 @@ {% endmacro %} -{% macro render_field(field) %} +{% macro render_field(field, disabled=False) %}
{{ field.label }} - {{ field(class_="form-control input-s", size=32) }} + {{ field(class_="form-control input-s", disabled=disabled, size=32) }}
{% if field.errors %}