diff options
author | Frédéric Guillot <fred@kanboard.net> | 2019-02-19 14:45:01 -0800 |
---|---|---|
committer | Frédéric Guillot <fred@kanboard.net> | 2019-02-19 14:45:01 -0800 |
commit | 23417da7638868962e23667791b4b3c43c76195f (patch) | |
tree | a189c9650da4683e7a94e3310c76ebf674d80e04 /app/Template/task_file/show.php | |
parent | 1b6f98604a2e7891d2b7fb76aebd0bfb09b02d6b (diff) |
Replace accordion Javascript component by <details> HTML element
Diffstat (limited to 'app/Template/task_file/show.php')
-rw-r--r-- | app/Template/task_file/show.php | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/app/Template/task_file/show.php b/app/Template/task_file/show.php index df69605d..e9723f0d 100644 --- a/app/Template/task_file/show.php +++ b/app/Template/task_file/show.php @@ -1,9 +1,7 @@ -<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"> <?= $this->render('task_file/images', array('task' => $task, 'images' => $images)) ?> <?= $this->render('task_file/files', array('task' => $task, 'files' => $files)) ?> </div> -</section> +</details> |