Replace accordion Javascript component by <details> HTML element
This commit is contained in:
@@ -1,7 +1,5 @@
|
||||
<section class="accordion-section <?= empty($files) && empty($images) ? 'accordion-collapsed' : '' ?>">
|
||||
<div class="accordion-title">
|
||||
<h3><a href="#" class="fa accordion-toggle"></a> <?= t('Attachments') ?></h3>
|
||||
</div>
|
||||
<details class="accordion-section" <?= empty($files) && empty($images) ? '' : 'open' ?>>
|
||||
<summary class="accordion-title"><?= t('Attachments') ?></summary>
|
||||
<div class="accordion-content">
|
||||
<?php if ($this->user->hasProjectAccess('ProjectFileController', 'create', $project['id'])): ?>
|
||||
<div class="buttons-header">
|
||||
@@ -12,4 +10,4 @@
|
||||
<?= $this->render('project_overview/images', array('project' => $project, 'images' => $images)) ?>
|
||||
<?= $this->render('project_overview/files', array('project' => $project, 'files' => $files)) ?>
|
||||
</div>
|
||||
</section>
|
||||
</details>
|
||||
|
||||
Reference in New Issue
Block a user