--- /dev/null
+<?php
+/**
+ * @var \App\View\AppView $this
+ */
+?>
+<nav class="large-3 medium-4 columns" id="actions-sidebar">
+ <ul class="side-nav">
+ <li class="heading"><?= __('Actions') ?></li>
+ <li><?= $this->Form->postLink(
+ __('Delete'),
+ ['action' => 'delete', $location->id],
+ ['confirm' => __('Are you sure you want to delete # {0}?', $location->id)]
+ )
+ ?></li>
+ <li><?= $this->Html->link(__('List Locations'), ['action' => 'index']) ?></li>
+ </ul>
+</nav>
+<div class="locations form large-9 medium-8 columns content">
+ <?= $this->Form->create($location) ?>
+ <fieldset>
+ <legend><?= __('Edit Location') ?></legend>
+ <?php
+ echo $this->Form->control('name');
+ echo $this->Form->control('location');
+
+ echo $this->Form->control('categories._ids', [
+ 'type' => 'select',
+ 'multiple' => true,
+ 'val' => $selectedList,
+ 'options' => $categoriesList,
+ ]);
+
+ ?>
+ </fieldset>
+ <?= $this->Form->button(__('Submit')) ?>
+ <?= $this->Form->end() ?>
+</div>