Welcome to mirror list, hosted at ThFree Co, Russian Federation.

genericForm.tpl « default « themes - github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: f8f00d39cbbc3a18f9eb285628d13b77434ec04a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58

{if $form_data.errors}
	<div class="warning">
		<img src="themes/default/images/warning_medium.png">
	<strong>Please fix the following errors:</strong>
	<ul>
	{foreach from=$form_data.errors item=data}
	<li>{$data}</li>
	{/foreach}
	</ul>	
	</div>
{/if}

{*
{if isset($form_text)}
<p>{$form_text}</p>
{/if}
*}

<form {$form_data.attributes}>
<!-- Output hidden fields -->

<!-- Display the fields -->
{foreach from=$element_list key=title item=data}
	<h3>{$title}</h3>
	<div class="centrer">
	<table class="centrer">
	{foreach from=$data item=fieldname}
		{* normal form *}
		{if $form_data.$fieldname.type== 'checkbox'}
		<tr>
			<td colspan=2>{$form_data.$fieldname.html}</td>
		</tr>
		{elseif $form_data.$fieldname.label}
		<tr>
			<td>{$form_data.$fieldname.label}</td>
			<td>{$form_data.$fieldname.html}</td>
		</tr>
		{elseif  $form_data.$fieldname.type == 'hidden'}
			<tr><td colspan=2>{$form_data.$fieldname.html}</td></tr>
		{* radio form 
		{else}
			{foreach from=$form_data.$fieldname key=key item=radio}
			<tr>
				<td>{$radio.label}</td>
				<td>{$radio.html}</td>
			</tr>
			{/foreach}*}
		{/if}
	{/foreach}
	</table>
	</div>
{/foreach}
<div class="submit">

{$form_data.submit.html}
</div>
</form>