aggiunta firma circolari
This commit is contained in:
@ -6,6 +6,8 @@ use Joomla\CMS\Language\Text;
|
||||
|
||||
/** @var \Pcrt\Component\Circolari\Site\View\Circolare\HtmlView $this */
|
||||
$item = $this->item;
|
||||
|
||||
$buttons = $this->getModel()->getBottoniFirma((int)$item->tipologia_firma_id);
|
||||
?>
|
||||
|
||||
<div class="container my-5 mega-container">
|
||||
@ -18,6 +20,18 @@ $item = $this->item;
|
||||
<div class="col-md-3 col-12 text-md-end mt-2 mt-md-0">
|
||||
<a href="#" class="small text-decoration-none text-uppercase fw-bold">Condividi</a>
|
||||
</div>
|
||||
|
||||
<?php if ($item->firma_obbligatoria && $this->getModel()->userCanFirmare($item->id, $this->getModel()->currentUser->id) && !empty($buttons)) : ?>
|
||||
<div class="mt-4">
|
||||
<div class="d-flex flex-wrap gap-2">
|
||||
<?php foreach ($buttons as $btn) : ?>
|
||||
<button type="button" class="btn btn-primary btn-sm">
|
||||
<?php echo htmlspecialchars($btn->label, ENT_QUOTES, 'UTF-8'); ?>
|
||||
</button>
|
||||
<?php endforeach; ?>
|
||||
</div>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<div class="article-body mt-3">
|
||||
<?php echo $item->description ?: $item->testo ?: $item->descrizione ?: '<em>(Nessun testo)</em>'; ?>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user