From 20175cf5cf55d7363fffff4f393cce0446f2fa67 Mon Sep 17 00:00:00 2001
From: Brian Read
Date: Tue, 21 Jan 2025 12:11:07 +0000
Subject: [PATCH] Add title to tags with pattern regex
---
Templates/html_controls.html.ep.xml | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/Templates/html_controls.html.ep.xml b/Templates/html_controls.html.ep.xml
index 9b140c5..b612984 100644
--- a/Templates/html_controls.html.ep.xml
+++ b/Templates/html_controls.html.ep.xml
@@ -25,7 +25,7 @@
%=l('${prefix}_${Label}')
- %=date_field '${Name}' =>$$${Name}, pattern=>${regexp | .*}
+ %=date_field '${Name}' =>$$${Name}, pattern=>${regexp | .*}, title = 'Pattern regex mismatch'
]]>
@@ -33,7 +33,7 @@
%=l('${prefix}_${Label}')
- %=time_field '${Name}' =>$$${Name}, pattern=>${regexp | .*}
+ %=time_field '${Name}' =>$$${Name}, pattern=>${regexp | .*}, title = 'Pattern regex mismatch'
]]>
@@ -43,7 +43,7 @@
%=l('${prefix}_${Label}')
% param '${Name}' => $$${prefix}_data->{${Name}} unless param '${Name}';
- %= text_field '${Name}', size => '${size | 50}', class => 'textinput ${Name}' , pattern=>'${regexp | ".*"}' , placeholder=>'${placeholder | Name}'
+ %= text_field '${Name}', size => '${size | 50}', class => 'textinput ${Name}' , pattern=>'${regexp | ".*"}' , placeholder=>'${placeholder | Name}', title = 'Pattern regex mismatch'
]]>
@@ -52,7 +52,7 @@
%=l('${prefix}_${Label}')
% param '${Name}' => $$${prefix}_data->{${Name}} unless param '${Name}';
- %= text_field '${Name}', size => '${size | 50}', class => 'textinput ${Name}' , pattern=>'${regexp | ".*"}' , placeholder=>'${placeholder | Name}', Readonly=>'true'
+ %= text_field '${Name}', size => '${size | 50}', class => 'textinput ${Name}' , pattern=>'${regexp | ".*"}' , placeholder=>'${placeholder | Name}', Readonly=>'true' , title = 'Pattern regex mismatch'
]]>