<?php
$this->htmlElement('body')->appendAttribute('class', 'edit item-set');
$escape = $this->plugin('escapeHtml');
$deleteButton = '<a href="#" class="delete button">' . $escape('Delete') . '</a>';
?>

<script type='text/javascript'>
var valuesJson = <?php echo json_encode($itemSet->values()); ?>;
</script>

<?php echo $this->pageTitle(sprintf($this->translate('Edit Item Set: “%s”'), $itemSet->displayTitle())); ?>
<?php $this->trigger('view.edit.before'); ?>
<?php
echo $this->partial('omeka/admin/item-set/form.phtml', [
    'form' => $form,
    'itemSet' => $itemSet,
    'submitLabel' => $this->translate('Save'),
    'deleteButton' => $deleteButton,
    'sectionNavEvent' => 'view.edit.section_nav',
    'action' => 'edit',
]);
?>

<?php echo $this->deleteConfirm($itemSet, 'item set'); ?>

<?php $this->trigger('view.edit.after'); ?>
