CakeAddresses/templates/Cities/add.php

40 lines
1.6 KiB
PHP
Raw Permalink Normal View History

2025-11-18 08:43:34 +00:00
<?php
/**
* @var \App\View\AppView $this
* @var \Cake\Datasource\EntityInterface $city
* @var \Cake\Collection\CollectionInterface|string[] $states
* @var \Cake\Collection\CollectionInterface|string[] $countries
*/
?>
<div class="row">
<aside class="column">
<div class="side-nav">
<h4 class="heading"><?= __('Actions') ?></h4>
<?= $this->Html->link(__('List Cities'), ['action' => 'index'], ['class' => 'side-nav-item']) ?>
</div>
</aside>
<div class="column column-80">
<div class="cities form content">
<?= $this->Form->create($city) ?>
<fieldset>
<legend><?= __('Add City') ?></legend>
<?php
echo $this->Form->control('name');
echo $this->Form->control('state_id', ['options' => $states]);
echo $this->Form->control('state_code');
echo $this->Form->control('country_id', ['options' => $countries]);
echo $this->Form->control('country_code');
echo $this->Form->control('latitude');
echo $this->Form->control('longitude');
echo $this->Form->control('created_at');
echo $this->Form->control('updated_at');
echo $this->Form->control('flag');
echo $this->Form->control('wikiDataId');
?>
</fieldset>
<?= $this->Form->button(__('Submit')) ?>
<?= $this->Form->end() ?>
</div>
</div>
</div>