SM2Gen/Templates/html_controls.html.ep.xml

232 lines
5.3 KiB
XML

<root>
<Select><![CDATA[
<p><span class=label>
%=l('${prefix}_${Label}')
</span><span class=data>
% my @${Name}_options = ${structure:OptionsInPerl};
% param '${Name}' => $$${prefix}_data->{${Name}} unless param '${Name}';
%= select_field '${Name}' => @${Name}_options, class => 'input'
<br></span> </p>
]]></Select>
<Textarea><![CDATA[
<span class=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}
</span><br>
]]></Textarea>
<Date><![CDATA[
<span class=label>
%=l('${prefix}_${Label}')
</span><span class=data>
%=date_field '${Name}' =>$$${Name}, pattern=>${regexp | .*}
</span><br>
]]></Date>
<Time><![CDATA[
<span class=label>
%=l('${prefix}_${Label}')
</span><span class=data>
%=time_field '${Name}' =>$$${Name}, pattern=>${regexp | .*}
</span><br>
]]></Time>
<Text><![CDATA[
<p><span class=label>
%=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}'
<br></span></p>
]]></Text>
<ReadonlyText><![CDATA[
<p><span class=label>
%=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'
<br></span></p>
]]></ReadonlyText>
<SubHeader><![CDATA[
<h2 class='subh${type_serial}'><%=l('${Value}')%></h2>]]>
</SubHeader>
<Header><![CDATA[
<h1 class='head${type_serial}'><%=l('${Value}')%></h1>]]>
</Header>
<Paragraph><![CDATA[
<p class='paragraph para${type_serial}'>
%=l('${Value}')
</p>
]]></Paragraph>
<Submit><![CDATA[
<span class='data'>
%= submit_button l('${Value}'), class => 'action subm${type_serial}'
</span>]]>
</Submit>
<search><![CDATA[
<p><span class=label>
%=l('${prefix}_${Label}')
</span><span class=data>
%=Search field
%=search_field , class => 'searc${type_serial}'
</span>span></p>
]]>
</search>
<url><![CDATA[
<p><span class=label>
%=l('${Label}')
</span><span class=data>
%=URL_field , class => 'url${type_serial}'
</span>span></p>
]]>
</url>
<tel><![CDATA[
<p><span class=label>
%=l('${Label}')
</span><span class=data>
%=tel_field, class => 'tel${type_serial}'
</span>span></p>
]]>
</tel>
<email><![CDATA[
<p><span class=label>
%=l('${Label}')
</span><span class=data>
%=email_field, class => 'emai${type_serial}'
</span>span></p>
]]>
</email>
<password><![CDATA[
<p><span class='label'>
%=l('${Label}')
</span><span class=data>
%=password_field, class => 'pass${type_serial}'
</span>span></p>
]]>
</password>
<timedate><![CDATA[
<p><span class='label'>
%=l('${Label}')
</span><span class=data>
%=timedate_field, class => 'time${type_serial}'
</span>span></p>
]]>
</timedate>
<week><![CDATA[
<p><span class='label'>
%=l('${Label}')
</span><span class=data>
%=week_field, class => 'week${type_serial}'
</span>span></p>
]]>
</week>
<month><![CDATA[
<p><span class='label'>
%=l('${Label}')
</span><span class=data>
%=month_field, class => 'mont${type_serial}'
</span>span></p>
]]>
</month>
<range><![CDATA[
<p><span class='label'>
%=l('${Label}')
</span><span class=data>
%=range_field, class => 'rang${type_serial}'
</span>span></p>
]]>
</range>
<radio><![CDATA[
<p><span class='label'>
%=l('${Label}')
</span><span class=data>
%=radio_field, class => 'radi${type_serial}'
</span>span></p>
]]>
</radio>
<number><![CDATA[
<p><span class='label'>
%=l('${Label}')
</span><span class=data>
%=number_field, class => 'numb${type_serial}'
</span>span></p>
]]>
</number>
<file><![CDATA[
<p><span class='label'>
%=l('${Label}')
</span><span class=data>
%=file_field, class => 'file${type_serial}'
</span>span></p>
]]>
</file>
<color><![CDATA[
<p><span class='label'>
%=l('${Label}')
</span><span class=data>
%=color_field, class => 'colo${type_serial}'
</span>span></p>
]]>
</color>
<checkbox><![CDATA[
<p><span class='label'>
%=l('${Label}')
</span><span class=data>
%=checkbox_field, class => 'chec${type_serial}'
</span>span></p>
]]>
</checkbox>
<Table><![CDATA[
<br /><table class="sme-border TableSort sme-table ${classname} ">
<thead class='${classname}'>
<tr table-head-row><tal:block tal:repeat="ColHead TopHeadings">
<th class='sme-border table-head-col table-head-col-${ColHead} '><%=l('${ColHead}')%></th></tal:block>
</tr>
</thead>
<tbody class='${classname}'>
% my $control_data = $self->stash('${TableControl}');
% foreach my $row (@$control_data) {
<tr class='table-row'><tal:block tal:repeat="ColContent Columns">
<td class='sme-border table-col table-col-${ColContent}'><%=$c->render_to_string(inline=>$row->{'${ColContent}'})%></td></tal:block>
</tr>
%}
</tbody>
</table>
]]>
</Table>
<Preformatted><![CDATA[
<pre class='preformatted pref${type_serial}'>
${Value}'
</pre>
]]>
</Preformatted>
</root>