From 1b6fa222461694de3412383c423b4f7a613a18be Mon Sep 17 00:00:00 2001 From: Aron Carroll Date: Wed, 1 Aug 2012 11:32:48 +0100 Subject: [PATCH] [#2765] Allow error=true to be passed to a form macro This highlights the error field without a message. Also fixed the error_summary display to exclude the key if missing. --- ckan/templates/macros/form.html | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/ckan/templates/macros/form.html b/ckan/templates/macros/form.html index c81b61095cf..6cb6e226a6f 100644 --- a/ckan/templates/macros/form.html +++ b/ckan/templates/macros/form.html @@ -8,7 +8,7 @@ value - The value of the input. placeholder - Some placeholder text. type - The type of input eg. email, url, date (default: text). -error - A list of error strings for the field. +error - A list of error strings for the field or just true to highlight the field. classes - An array of classes to apply to the control-group. Examples: @@ -34,7 +34,7 @@ label - The human readable label. value - The value of the input. checked - If true the checkbox will be checked -error - An error string for the field. +error - An error string for the field or just true to highlight the field. classes - An array of classes to apply to the control-group. Example: @@ -49,7 +49,7 @@ @@ -68,7 +68,7 @@ label - The human readable label. options - A list/tuple of fields to be used as . selected - The value of the selected