2021-09-02 16:34:25 +00:00
|
|
|
<?= $this->extend('_layout') ?>
|
2021-02-10 16:20:01 +00:00
|
|
|
|
|
|
|
<?= $this->section('title') ?>
|
|
|
|
<?= lang('Person.all_persons') ?>
|
|
|
|
<?= $this->endSection() ?>
|
|
|
|
|
|
|
|
<?= $this->section('pageTitle') ?>
|
|
|
|
<?= lang('Person.all_persons') ?> (<?= count($persons) ?>)
|
|
|
|
<?= $this->endSection() ?>
|
|
|
|
|
|
|
|
<?= $this->section('headerRight') ?>
|
2021-09-20 15:45:38 +00:00
|
|
|
<Button uri="<?= route_to('person-create') ?>" variant="primary" iconLeft="add"><?= lang('Person.create') ?></Button>
|
2021-02-10 16:20:01 +00:00
|
|
|
<?= $this->endSection() ?>
|
|
|
|
|
|
|
|
<?= $this->section('content') ?>
|
|
|
|
|
|
|
|
<div class="flex flex-wrap">
|
2021-05-18 17:16:36 +00:00
|
|
|
<?php if ($persons !== null): ?>
|
2021-02-10 16:20:01 +00:00
|
|
|
<?php foreach ($persons as $person): ?>
|
|
|
|
<article class="w-48 h-full mb-4 mr-4 overflow-hidden bg-white border rounded shadow">
|
|
|
|
<img
|
|
|
|
alt="<?= $person->full_name ?>"
|
|
|
|
src="<?= $person->image
|
2021-09-08 15:51:33 +00:00
|
|
|
->thumbnail_url ?>" class="object-cover w-full" />
|
2021-02-10 16:20:01 +00:00
|
|
|
<div class="p-2">
|
|
|
|
<a href="<?= route_to(
|
2021-09-08 15:51:33 +00:00
|
|
|
'person-view',
|
|
|
|
$person->id,
|
|
|
|
) ?>" class="hover:underline">
|
2021-02-10 16:20:01 +00:00
|
|
|
<h2 class="font-semibold"><?= $person->full_name ?></h2>
|
|
|
|
</a>
|
|
|
|
</div>
|
|
|
|
<footer class="flex items-center justify-end p-2">
|
|
|
|
<a class="inline-flex p-2 mr-2 text-teal-700 bg-teal-100 rounded-full shadow-xs hover:bg-teal-200" href="<?= route_to(
|
2021-09-08 15:51:33 +00:00
|
|
|
'person-edit',
|
|
|
|
$person->id,
|
|
|
|
) ?>" data-toggle="tooltip" data-placement="bottom" title="<?= lang(
|
|
|
|
'Person.edit',
|
|
|
|
) ?>"><?= icon('edit') ?></a>
|
2021-02-10 16:20:01 +00:00
|
|
|
<a class="inline-flex p-2 mr-2 text-gray-700 bg-red-100 rounded-full shadow-xs hover:bg-gray-200" href="<?= route_to(
|
2021-09-08 15:51:33 +00:00
|
|
|
'person-delete',
|
|
|
|
$person->id,
|
|
|
|
) ?>" data-toggle="tooltip" data-placement="bottom" title="<?= lang(
|
|
|
|
'Person.delete',
|
|
|
|
) ?>"><?= icon('delete-bin') ?></a>
|
2021-02-10 16:20:01 +00:00
|
|
|
<a class="inline-flex p-2 text-gray-700 bg-gray-100 rounded-full shadow-xs hover:bg-gray-200" href="<?= route_to(
|
2021-09-08 15:51:33 +00:00
|
|
|
'person-view',
|
|
|
|
$person->id,
|
|
|
|
) ?>" data-toggle="tooltip" data-placement="bottom" title="<?= lang(
|
|
|
|
'Person.view',
|
|
|
|
) ?>"><?= icon('eye') ?></a>
|
2021-02-10 16:20:01 +00:00
|
|
|
</footer>
|
|
|
|
</article>
|
|
|
|
<?php endforeach; ?>
|
|
|
|
<?php else: ?>
|
|
|
|
<p class="italic"><?= lang('Person.no_person') ?></p>
|
|
|
|
<?php endif; ?>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<?= $this->endSection() ?>
|