228 lines
4.4 KiB
XML
228 lines
4.4 KiB
XML
<root>
|
|
<Text><![CDATA[
|
|
<p><span class=label>
|
|
%=l('${prefix}_${Label}')
|
|
</span><span class=data>
|
|
% text_field ${Value}
|
|
</span></p>
|
|
]]></Text>
|
|
|
|
<Selection><![CDATA[
|
|
<p><span class=label>
|
|
%=l('${prefix}_${Label}')
|
|
</span><span class=data>
|
|
% my @${Name}_options = ${Value};
|
|
% param '${Name}' => $$${prefix}_data->{${Name}} unless param '${Name}';
|
|
%= select_field '${Name}' => @${Name}_options, class => 'input'
|
|
<br></span> </p>
|
|
]]></Selection>
|
|
|
|
|
|
|
|
<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>
|
|
|
|
|
|
<Textinput><![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 => 'input' , pattern=>'${regexp | ".*"}' , placeholder=>'${placeholder | Name}'
|
|
<br></span></p>
|
|
]]></Textinput>
|
|
|
|
<SubHeader><![CDATA[
|
|
<h2><%=l('${value}')%></h2>]]>
|
|
</SubHeader>
|
|
|
|
<Paragraph><![CDATA[
|
|
<p>
|
|
%=l('${value}')
|
|
</p>
|
|
]]></Paragraph>
|
|
|
|
<Submit><![CDATA[
|
|
<span class='data'>
|
|
%= submit_button l('${Value}'), class => 'action'
|
|
</span>]]>
|
|
</Submit>
|
|
|
|
<search><![CDATA[
|
|
<p><span class=label>
|
|
%=l('${prefix}_${Label}')
|
|
</span><span class=data>
|
|
%=Search field
|
|
%=search field
|
|
</span>span></p>
|
|
]]>
|
|
</search>
|
|
|
|
<url><![CDATA[
|
|
<p><span class=label>
|
|
%=l('${Label}')
|
|
</span><span class=data>
|
|
%=URL field
|
|
</span>span></p>
|
|
]]>
|
|
</url>
|
|
|
|
<tel><![CDATA[
|
|
<p><span class=label>
|
|
%=l('${Label}')
|
|
</span><span class=data>
|
|
%=tel field
|
|
</span>span></p>
|
|
]]>
|
|
</tel>
|
|
|
|
<email><![CDATA[
|
|
<p><span class=label>
|
|
%=l('${Label}')
|
|
</span><span class=data>
|
|
%=email field
|
|
</span>span></p>
|
|
]]>
|
|
</email>
|
|
|
|
<password><![CDATA[
|
|
<p><span class='label'>
|
|
%=l('${Label}')
|
|
</span><span class=data>
|
|
%=password field
|
|
</span>span></p>
|
|
]]>
|
|
</password>
|
|
|
|
<timedate><![CDATA[
|
|
<p><span class='label'>
|
|
%=l('${Label}')
|
|
</span><span class=data>
|
|
%=timedate field
|
|
</span>span></p>
|
|
]]>
|
|
</timedate>
|
|
|
|
<week><![CDATA[
|
|
<p><span class='label'>
|
|
%=l('${Label}')
|
|
</span><span class=data>
|
|
%=week field
|
|
</span>span></p>
|
|
]]>
|
|
</week>
|
|
|
|
<month><![CDATA[
|
|
<p><span class='label'>
|
|
%=l('${Label}')
|
|
</span><span class=data>
|
|
%=month field
|
|
</span>span></p>
|
|
]]>
|
|
</month>
|
|
|
|
<range><![CDATA[
|
|
<p><span class='label'>
|
|
%=l('${Label}')
|
|
</span><span class=data>
|
|
%=range field
|
|
</span>span></p>
|
|
]]>
|
|
</range>
|
|
|
|
<radio><![CDATA[
|
|
<p><span class='label'>
|
|
%=l('${Label}')
|
|
</span><span class=data>
|
|
%=radio field
|
|
</span>span></p>
|
|
]]>
|
|
</radio>
|
|
|
|
<number><![CDATA[
|
|
<p><span class='label'>
|
|
%=l('${Label}')
|
|
</span><span class=data>
|
|
%=number field
|
|
</span>span></p>
|
|
]]>
|
|
</number>
|
|
|
|
<file><![CDATA[
|
|
<p><span class='label'>
|
|
%=l('${Label}')
|
|
</span><span class=data>
|
|
%=file field
|
|
</span>span></p>
|
|
]]>
|
|
</file>
|
|
|
|
<color><![CDATA[
|
|
<p><span class='label'>
|
|
%=l('${Label}')
|
|
</span><span class=data>
|
|
%=color field
|
|
</span>span></p>
|
|
]]>
|
|
</color>
|
|
|
|
<checkbox><![CDATA[
|
|
<p><span class='label'>
|
|
%=l('${Label}')
|
|
</span><span class=data>
|
|
%=checkbox field
|
|
</span>span></p>
|
|
]]>
|
|
</checkbox>
|
|
|
|
<Table><![CDATA[
|
|
<br /><table class="sme-border TableSort sme-table">
|
|
<thead>
|
|
<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>
|
|
% 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>
|
|
${value}'
|
|
</pre>
|
|
]]>
|
|
</Preformatted>
|
|
|
|
|
|
</root>
|