summaryrefslogtreecommitdiff
path: root/app/Template/project_overview
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2016-03-19 18:04:22 -0400
committerFrederic Guillot <fred@kanboard.net>2016-03-19 18:04:22 -0400
commit1ad57c74732e4463cfa5051e975c54f4e65d7e09 (patch)
tree80870017404b15da538353bd5dd52d76b8482ca2 /app/Template/project_overview
parent42376aec4ad78ad880d3e42219ccec07bf09339a (diff)
Add buttons in project overview sections
Diffstat (limited to 'app/Template/project_overview')
-rw-r--r--app/Template/project_overview/attachments.php7
-rw-r--r--app/Template/project_overview/description.php5
2 files changed, 8 insertions, 4 deletions
diff --git a/app/Template/project_overview/attachments.php b/app/Template/project_overview/attachments.php
index eb0c5be7..eaabfd5f 100644
--- a/app/Template/project_overview/attachments.php
+++ b/app/Template/project_overview/attachments.php
@@ -4,10 +4,9 @@
</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>
+ <div class="buttons-header">
+ <?= $this->url->button('fa-plus', t('Upload a file'), 'ProjectFile', 'create', array('project_id' => $project['id']), 'popover') ?>
+ </div>
<?php endif ?>
<?= $this->render('project_overview/images', array('project' => $project, 'images' => $images)) ?>
diff --git a/app/Template/project_overview/description.php b/app/Template/project_overview/description.php
index c89cb710..9895aede 100644
--- a/app/Template/project_overview/description.php
+++ b/app/Template/project_overview/description.php
@@ -3,6 +3,11 @@
<h3><a href="#" class="fa accordion-toggle"></a> <?= t('Description') ?></h3>
</div>
<div class="accordion-content">
+ <?php if ($this->user->hasProjectAccess('ProjectEdit', 'description', $project['id'])): ?>
+ <div class="buttons-header">
+ <?= $this->url->button('fa-edit', t('Edit Description'), 'ProjectEdit', 'description', array('project_id' => $project['id']), 'popover') ?>
+ </div>
+ <?php endif ?>
<article class="markdown">
<?= $this->text->markdown($project['description']) ?>
</article>