first standalone plugin commit
This commit is contained in:
49
templates/Regions/index.php
Normal file
49
templates/Regions/index.php
Normal file
@@ -0,0 +1,49 @@
|
||||
<?php
|
||||
/**
|
||||
* @var \App\View\AppView $this
|
||||
* @var iterable<\Cake\Datasource\EntityInterface> $regions
|
||||
*/
|
||||
?>
|
||||
<div class="regions index content">
|
||||
<h3><?= __('Regions') ?></h3>
|
||||
<div class="table-responsive">
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<th><?= $this->Paginator->sort('id') ?></th>
|
||||
<th><?= $this->Paginator->sort('name') ?></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 ($regions as $region): ?>
|
||||
<tr>
|
||||
<td><?= $this->Number->format($region->id) ?></td>
|
||||
<td><?= h($region->name) ?></td>
|
||||
<td><?= h($region->created_at) ?></td>
|
||||
<td><?= h($region->updated_at) ?></td>
|
||||
<td><?= h($region->flag) ?></td>
|
||||
<td><?= h($region->wikiDataId) ?></td>
|
||||
<td class="actions">
|
||||
<?= $this->Html->link(__('View'), ['action' => 'view', $region->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