first standalone plugin commit
This commit is contained in:
54
templates/Subregions/index.php
Normal file
54
templates/Subregions/index.php
Normal file
@@ -0,0 +1,54 @@
|
||||
<?php
|
||||
/**
|
||||
* @var \App\View\AppView $this
|
||||
* @var iterable<\Cake\Datasource\EntityInterface> $subregions
|
||||
*/
|
||||
?>
|
||||
<div class="subregions index content">
|
||||
<?= $this->Html->link(__('New Subregion'), ['action' => 'add'], ['class' => 'button float-right']) ?>
|
||||
<h3><?= __('Subregions') ?></h3>
|
||||
<div class="table-responsive">
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<th><?= $this->Paginator->sort('id') ?></th>
|
||||
<th><?= $this->Paginator->sort('name') ?></th>
|
||||
<th><?= $this->Paginator->sort('region_id') ?></th>
|
||||
<th><?= $this->Paginator->sort('created_at') ?></th>
|
||||
<th><?= $this->Paginator->sort('updated_at') ?></th>
|
||||
<th><?= $this->Paginator->sort('flag') ?></th>
|
||||
<th><?= $this->Paginator->sort('wikiDataId') ?></th>
|
||||
<th class="actions"><?= __('Actions') ?></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php foreach ($subregions as $subregion): ?>
|
||||
<tr>
|
||||
<td><?= $this->Number->format($subregion->id) ?></td>
|
||||
<td><?= h($subregion->name) ?></td>
|
||||
<td><?= $subregion->hasValue('region') ? $this->Html->link($subregion->region->name, ['controller' => 'Regions', 'action' => 'view', $subregion->region->id]) : '' ?></td>
|
||||
<td><?= h($subregion->created_at) ?></td>
|
||||
<td><?= h($subregion->updated_at) ?></td>
|
||||
<td><?= h($subregion->flag) ?></td>
|
||||
<td><?= h($subregion->wikiDataId) ?></td>
|
||||
<td class="actions">
|
||||
<?= $this->Html->link(__('View'), ['action' => 'view', $subregion->id]) ?>
|
||||
<?= $this->Html->link(__('Edit'), ['action' => 'edit', $subregion->id]) ?>
|
||||
<?= $this->Form->postLink(__('Delete'), ['action' => 'delete', $subregion->id], ['confirm' => __('Are you sure you want to delete # {0}?', $subregion->id)]) ?>
|
||||
</td>
|
||||
</tr>
|
||||
<?php endforeach; ?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<div class="paginator">
|
||||
<ul class="pagination">
|
||||
<?= $this->Paginator->first('<< ' . __('first')) ?>
|
||||
<?= $this->Paginator->prev('< ' . __('previous')) ?>
|
||||
<?= $this->Paginator->numbers() ?>
|
||||
<?= $this->Paginator->next(__('next') . ' >') ?>
|
||||
<?= $this->Paginator->last(__('last') . ' >>') ?>
|
||||
</ul>
|
||||
<p><?= $this->Paginator->counter(__('Page {{page}} of {{pages}}, showing {{current}} record(s) out of {{count}} total')) ?></p>
|
||||
</div>
|
||||
</div>
|
||||
Reference in New Issue
Block a user