Merge branch 'release-2.140.115'
[feisty_meow.git] / production / example_apps / zippy_maps / src / Template / Locations / add.ctp
diff --git a/production/example_apps/zippy_maps/src/Template/Locations/add.ctp b/production/example_apps/zippy_maps/src/Template/Locations/add.ctp
new file mode 100644 (file)
index 0000000..e50d32c
--- /dev/null
@@ -0,0 +1,30 @@
+<?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->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><?= __('Add Location') ?></legend>
+        <?php
+            echo $this->Form->control('name');
+            echo $this->Form->control('location');
+
+                       echo $this->Form->control('categories._ids', [
+               'type' => 'select',
+                   'multiple' => true,
+               'options' => $categoriesList,
+                       ]);            
+            
+        ?>
+    </fieldset>
+    <?= $this->Form->button(__('Submit')) ?>
+    <?= $this->Form->end() ?>
+</div>