first standalone plugin commit
This commit is contained in:
59
templates/Countries/edit.php
Normal file
59
templates/Countries/edit.php
Normal file
@@ -0,0 +1,59 @@
|
||||
<?php
|
||||
/**
|
||||
* @var \App\View\AppView $this
|
||||
* @var \Cake\Datasource\EntityInterface $country
|
||||
* @var string[]|\Cake\Collection\CollectionInterface $regions
|
||||
* @var string[]|\Cake\Collection\CollectionInterface $subregions
|
||||
*/
|
||||
?>
|
||||
<div class="row">
|
||||
<aside class="column">
|
||||
<div class="side-nav">
|
||||
<h4 class="heading"><?= __('Actions') ?></h4>
|
||||
<?= $this->Form->postLink(
|
||||
__('Delete'),
|
||||
['action' => 'delete', $country->id],
|
||||
['confirm' => __('Are you sure you want to delete # {0}?', $country->id), 'class' => 'side-nav-item']
|
||||
) ?>
|
||||
<?= $this->Html->link(__('List Countries'), ['action' => 'index'], ['class' => 'side-nav-item']) ?>
|
||||
</div>
|
||||
</aside>
|
||||
<div class="column column-80">
|
||||
<div class="countries form content">
|
||||
<?= $this->Form->create($country) ?>
|
||||
<fieldset>
|
||||
<legend><?= __('Edit Country') ?></legend>
|
||||
<?php
|
||||
echo $this->Form->control('name');
|
||||
echo $this->Form->control('iso3');
|
||||
echo $this->Form->control('numeric_code');
|
||||
echo $this->Form->control('iso2');
|
||||
echo $this->Form->control('phonecode');
|
||||
echo $this->Form->control('capital');
|
||||
echo $this->Form->control('currency');
|
||||
echo $this->Form->control('currency_name');
|
||||
echo $this->Form->control('currency_symbol');
|
||||
echo $this->Form->control('tld');
|
||||
echo $this->Form->control('native');
|
||||
echo $this->Form->control('region');
|
||||
echo $this->Form->control('region_id', ['options' => $regions, 'empty' => true]);
|
||||
echo $this->Form->control('subregion');
|
||||
echo $this->Form->control('subregion_id', ['options' => $subregions, 'empty' => true]);
|
||||
echo $this->Form->control('nationality');
|
||||
echo $this->Form->control('timezones');
|
||||
echo $this->Form->control('translations');
|
||||
echo $this->Form->control('latitude');
|
||||
echo $this->Form->control('longitude');
|
||||
echo $this->Form->control('emoji');
|
||||
echo $this->Form->control('emojiU');
|
||||
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>
|
||||
Reference in New Issue
Block a user