summaryrefslogtreecommitdiff
path: root/app/Template/project_overview/attachments.php
blob: ab8cf2adff86c35e751fba6a7be764103632ca2b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
<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>
    <div class="accordion-content">
        <?php if ($this->user->hasProjectAccess('ProjectFileController', 'create', $project['id'])): ?>
        <div class="buttons-header">
            <?= $this->url->button('fa-plus', t('Upload a file'), 'ProjectFileController', 'create', array('project_id' => $project['id']), 'popover') ?>
        </div>
        <?php endif ?>

        <?= $this->render('project_overview/images', array('project' => $project, 'images' => $images)) ?>
        <?= $this->render('project_overview/files', array('project' => $project, 'files' => $files)) ?>
    </div>
</section>