40 lines
1.5 KiB
PHP
40 lines
1.5 KiB
PHP
|
|
<?php
|
||
|
|
/**
|
||
|
|
* @var \App\View\AppView $this
|
||
|
|
* @var \Cake\Datasource\EntityInterface $subregion
|
||
|
|
* @var string[]|\Cake\Collection\CollectionInterface $regions
|
||
|
|
*/
|
||
|
|
?>
|
||
|
|
<div class="row">
|
||
|
|
<aside class="column">
|
||
|
|
<div class="side-nav">
|
||
|
|
<h4 class="heading"><?= __('Actions') ?></h4>
|
||
|
|
<?= $this->Form->postLink(
|
||
|
|
__('Delete'),
|
||
|
|
['action' => 'delete', $subregion->id],
|
||
|
|
['confirm' => __('Are you sure you want to delete # {0}?', $subregion->id), 'class' => 'side-nav-item']
|
||
|
|
) ?>
|
||
|
|
<?= $this->Html->link(__('List Subregions'), ['action' => 'index'], ['class' => 'side-nav-item']) ?>
|
||
|
|
</div>
|
||
|
|
</aside>
|
||
|
|
<div class="column column-80">
|
||
|
|
<div class="subregions form content">
|
||
|
|
<?= $this->Form->create($subregion) ?>
|
||
|
|
<fieldset>
|
||
|
|
<legend><?= __('Edit Subregion') ?></legend>
|
||
|
|
<?php
|
||
|
|
echo $this->Form->control('name');
|
||
|
|
echo $this->Form->control('translations');
|
||
|
|
echo $this->Form->control('region_id', ['options' => $regions]);
|
||
|
|
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>
|