Skip to content

Commit

Permalink
Displayed the template property settings in the resource template page.
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel-KM committed Aug 17, 2020
1 parent 47b0986 commit 1cf0f04
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions application/view/omeka/admin/resource-template/show.phtml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ $this->htmlElement('body')->appendAttribute('class', 'resource-templates show');
<th><?php echo $translate('Alternate comment'); ?></th>
<th><?php echo $translate('Required?'); ?></th>
<th><?php echo $translate('Private?'); ?></th>
<th><?php echo $translate('Other settings'); ?></th>
</tr>
</thead>
<tbody>
Expand Down Expand Up @@ -56,6 +57,18 @@ $this->htmlElement('body')->appendAttribute('class', 'resource-templates show');
<td><?php echo $escape($resourceTemplateProperty->alternateComment()); ?></td>
<td><?php echo $resourceTemplateProperty->isRequired() ? $translate('Yes') : $translate('No'); ?></td>
<td><?php echo $resourceTemplateProperty->isPrivate() ? $translate('Yes') : $translate('No'); ?></td>
<td><dl><?php foreach ($resourceTemplateProperty->settings() as $key => $value): ?>
<?php if (!$value) continue; ?>
<dt><?php echo str_replace('_', ' ', $key); ?></dt>
<?php if (is_array($value)): ?>
<?php foreach ($value as $val): ?>
<dd><?php echo $escape($val); ?></dd>
<?php endforeach; ?>
<?php else: ?>
<dd><?php echo $escape($value); ?></dd>
<?php endif; ?>
<?php endforeach;
?></dl></td>
</tr>
<?php endforeach; ?>
</tbody>
Expand Down

0 comments on commit 1cf0f04

Please sign in to comment.