summaryrefslogtreecommitdiff
path: root/app/Template/project_overview/attachments.php
diff options
context:
space:
mode:
authorFrédéric Guillot <fred@kanboard.net>2019-02-19 14:45:01 -0800
committerFrédéric Guillot <fred@kanboard.net>2019-02-19 14:45:01 -0800
commit23417da7638868962e23667791b4b3c43c76195f (patch)
treea189c9650da4683e7a94e3310c76ebf674d80e04 /app/Template/project_overview/attachments.php
parent1b6f98604a2e7891d2b7fb76aebd0bfb09b02d6b (diff)
Replace accordion Javascript component by <details> HTML element
Diffstat (limited to 'app/Template/project_overview/attachments.php')
-rw-r--r--app/Template/project_overview/attachments.php8
1 files changed, 3 insertions, 5 deletions
diff --git a/app/Template/project_overview/attachments.php b/app/Template/project_overview/attachments.php
index b8baadd0..745b0a70 100644
--- a/app/Template/project_overview/attachments.php
+++ b/app/Template/project_overview/attachments.php
@@ -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>