Lex file creation

This commit is contained in:
2024-04-10 08:41:31 +01:00
parent 2ff5681988
commit 2d3fabcc5b
6 changed files with 128 additions and 36 deletions

View File

@@ -1,7 +1,7 @@
<root>
<Text><![CDATA[
<p><span class=label>
%=l('${Label}'), class => 'label'
%=l('${prefix}_${Label}'), class => 'label'
</span><span class=data>
%= ${Value}, class => 'data'
</span></p>
@@ -9,7 +9,7 @@
<Selection><![CDATA[
<p><span class=label>
%=l('${Label}')
%=l('${prefix}_${Label}')
</span><span class=data>
% my @${Name}_options = ${Value};
% param '${Name}' => $$${prefix}_data->{${Name}} unless param '${Name}';
@@ -19,7 +19,7 @@
<Textarea><![CDATA[
<span class=label>
%=l('${Label}')
%=l('${prefix}_${Label}')
</span><span class=data>
% param '${Name}' => $$${prefix}_data->{${Name}} unless param '${Name}';
%= text_area '${Name}', cols=>${cols | 40}, rows=>${rows | 10}
@@ -28,7 +28,7 @@
<Date><![CDATA[
<span class=label>
%=$%=l('${Label}')
%=$%=l('${prefix}_${Label}')
</span><span class=data>
%=date_field '${Name}' =>$$${Name}, pattern=>${regexp | .*}
</span><br>
@@ -36,7 +36,7 @@
<Textinput><![CDATA[
<p><span class=label>
%=l('${Label}')
%=l('${prefix}_${Label}')
</span><span class=data>
% param '${Name}' => $$${prefix}_data->{${Name}} unless param '${Name}';
%= text_field '${Name}', size => '${size | 50}', class => 'input' , pattern=>'${regexp | ".*"}' , placeholder=>'${placeholder | Name}'
@@ -54,7 +54,7 @@
<search><![CDATA[
<p><span class=label>
%=l('${Label}')
%=l('${prefix}_${Label}')
</span><span class=data>
</span>span></p>
]]>
@@ -62,7 +62,7 @@
<url><![CDATA[
<p><span class=label>
%=l('${Label}')
%=l('${prefix}_${Label}')
</span><span class=data>
</span>span></p>
]]>
@@ -70,7 +70,7 @@
<tel><![CDATA[
<p><span class=label>
%=l('${Label}')
%=l('${prefix}_${Label}')
</span><span class=data>
</span>span></p>
]]>
@@ -78,7 +78,7 @@
<email><![CDATA[
<p><span class=label>
%=l('${Label}')
%=l('${prefix}_${Label}')
</span><span class=data>
</span>span></p>
]]>
@@ -86,7 +86,7 @@
<password><![CDATA[
<p><span class=label>
%=l('${Label}')
%=l('${prefix}_${Label}')
</span><span class=data>
</span>span></p>
]]>