blob: d71b16f728075c6f28c9ea3cd7189ac44edb51b4 (
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
59
60
61
62
63
64
65
66
67
68
69
|
<?php echo $open; ?>
<table class="<?php echo $class ?>">
<?php if ($title != ''): ?>
<caption><?php echo $title ?></caption>
<?php endif ?>
<?php
foreach ($inputs as $input):
$sub_inputs = array();
if ($input->type == 'group'):
$sub_inputs = $input->inputs;
?>
<tr>
<th colspan="2"><?php echo $input->label() ?></th>
</tr>
<?php
if ($message = $input->message()):
?>
<tr>
<td colspan="2"><p class="group_message"><?php echo $message ?></p></td>
</tr>
<?php
endif;
else:
$sub_inputs = array($input);
endif;
foreach ($sub_inputs as $input):
?>
<tr>
<th><?php echo $input->label() ?></th>
<td>
<?php
echo $input->render();
if ($message = $input->message()):
?>
<p class="message"><?php echo $message ?></p>
<?php
endif;
foreach ($input->error_messages() as $error):
?>
<p class="error"><?php echo $error ?></p>
<?php
endforeach;
?>
</td>
</tr>
<?php
endforeach;
endforeach;
?>
</table>
<?php echo $close ?>
|