first standalone plugin commit
This commit is contained in:
54
templates/Countries/add.php
Normal file
54
templates/Countries/add.php
Normal file
@@ -0,0 +1,54 @@
|
||||
<?php
|
||||
/**
|
||||
* @var \App\View\AppView $this
|
||||
* @var \Cake\Datasource\EntityInterface $country
|
||||
* @var \Cake\Collection\CollectionInterface|string[] $regions
|
||||
* @var \Cake\Collection\CollectionInterface|string[] $subregions
|
||||
*/
|
||||
?>
|
||||
<div class="row">
|
||||
<aside class="column">
|
||||
<div class="side-nav">
|
||||
<h4 class="heading"><?= __('Actions') ?></h4>
|
||||
<?= $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><?= __('Add 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