blob: 90ebe6f97f58fa0b7fbb7ef68686673f0d2227ca (
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
|
<?
/**
* Template documentation:
* This template expects the following parameters to be present:
*
* - $defined_properties: An array of ResourcePropertyDefinition objects.
* - $property_data: An array with the property states where the array keys
* represent the property-IDs and the array items represent the corresponding
* property values.
*/
?>
<? if ($grouped_defined_properties): ?>
<? foreach ($grouped_defined_properties as $group_name => $properties): ?>
<fieldset>
<legend>
<?= htmlReady($group_name) ?>
</legend>
<? foreach ($properties as $property): ?>
<?= $property->toHtmlInput(
$property_data[$property->id] ?? '',
'',
true,
true
) ?>
<? endforeach ?>
</fieldset>
<? endforeach ?>
<? endif ?>
|