summaryrefslogtreecommitdiff
path: root/app/Template/project_overview/attachments.php
diff options
context:
space:
mode:
Diffstat (limited to 'app/Template/project_overview/attachments.php')
-rw-r--r--app/Template/project_overview/attachments.php16
1 files changed, 16 insertions, 0 deletions
diff --git a/app/Template/project_overview/attachments.php b/app/Template/project_overview/attachments.php
new file mode 100644
index 00000000..eb0c5be7
--- /dev/null
+++ b/app/Template/project_overview/attachments.php
@@ -0,0 +1,16 @@
+<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('ProjectFile', 'create', $project['id'])): ?>
+ <p style="margin-bottom: 15px;">
+ <i class="fa fa-plus fa-fw"></i>
+ <?= $this->url->link(t('Upload a file'), 'ProjectFile', 'create', array('project_id' => $project['id']), false, 'popover') ?>
+ </p>
+ <?php endif ?>
+
+ <?= $this->render('project_overview/images', array('project' => $project, 'images' => $images)) ?>
+ <?= $this->render('project_overview/files', array('project' => $project, 'files' => $files)) ?>
+ </div>
+</section>