Merge branch 'release-2.140.115'
[feisty_meow.git] / production / example_apps / zippy_maps / src / Template / Locations / edit.ctp
diff --git a/production/example_apps/zippy_maps/src/Template/Locations/edit.ctp b/production/example_apps/zippy_maps/src/Template/Locations/edit.ctp
new file mode 100644 (file)
index 0000000..2a1e258
--- /dev/null
@@ -0,0 +1,37 @@
+<?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>