Add title to tags with pattern regex

This commit is contained in:
Brian Read 2025-01-21 12:11:07 +00:00
parent ba982816c0
commit 20175cf5cf

View File

@ -25,7 +25,7 @@
<span class=label>
%=l('${prefix}_${Label}')
</span><span class=data>
%=date_field '${Name}' =>$$${Name}, pattern=>${regexp | .*}
%=date_field '${Name}' =>$$${Name}, pattern=>${regexp | .*}, title = 'Pattern regex mismatch'
</span><br>
]]></Date>
@ -33,7 +33,7 @@
<span class=label>
%=l('${prefix}_${Label}')
</span><span class=data>
%=time_field '${Name}' =>$$${Name}, pattern=>${regexp | .*}
%=time_field '${Name}' =>$$${Name}, pattern=>${regexp | .*}, title = 'Pattern regex mismatch'
</span><br>
]]></Time>
@ -43,7 +43,7 @@
%=l('${prefix}_${Label}')
</span><span class=data>
% 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'
<br></span></p>
]]></Text>
@ -52,7 +52,7 @@
%=l('${prefix}_${Label}')
</span><span class=data>
% 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'
<br></span></p>
]]></ReadonlyText>