castopod/themes/cp_admin/person/list.php
Yassine Doghri a505a1de56 feat: restyle episode and person cards + add focus style to interactive elements for a11y
fix components in follow and remote action pages by calling new instances directly
2021-12-29 12:02:53 +00:00

30 lines
842 B
PHP

<?= $this->extend('_layout') ?>
<?= $this->section('title') ?>
<?= lang('Person.all_persons') ?>
<?= $this->endSection() ?>
<?= $this->section('pageTitle') ?>
<?= lang('Person.all_persons') ?> (<?= count($persons) ?>)
<?= $this->endSection() ?>
<?= $this->section('headerRight') ?>
<Button uri="<?= route_to('person-create') ?>" variant="primary" iconLeft="add"><?= lang('Person.create') ?></Button>
<?= $this->endSection() ?>
<?= $this->section('content') ?>
<?php if ($persons !== null): ?>
<div class="grid gap-4 grid-cols-cards">
<?php foreach ($persons as $person): ?>
<?= view('person/_card', [
'person' => $person,
]) ?>
<?php endforeach; ?>
</div>
<?php else: ?>
<p class="italic"><?= lang('Person.no_person') ?></p>
<?php endif; ?>
<?= $this->endSection() ?>