summaryrefslogtreecommitdiff
path: root/plugins/Group_assign/Template/board
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/Group_assign/Template/board')
-rw-r--r--plugins/Group_assign/Template/board/filter.php12
-rw-r--r--plugins/Group_assign/Template/board/group.php7
-rw-r--r--plugins/Group_assign/Template/board/multi.php5
3 files changed, 24 insertions, 0 deletions
diff --git a/plugins/Group_assign/Template/board/filter.php b/plugins/Group_assign/Template/board/filter.php
new file mode 100644
index 00000000..322c483f
--- /dev/null
+++ b/plugins/Group_assign/Template/board/filter.php
@@ -0,0 +1,12 @@
+<?php if (isset($grouplist) && !empty($grouplist)) : ?>
+</div>
+<div class="input-addon-item">
+ <div class="dropdown">
+ <a href="#" class="dropdown-menu dropdown-menu-link-icon" title="<?= t('Group filters') ?>"><i class="fa fa-users fa-fw"></i><i class="fa fa-caret-down"></i></a>
+ <ul>
+ <?php foreach ($grouplist as $group) : ?>
+ <li><a href="#" class="filter-helper" data-unique-filter='allassignees:"<?= $this->text->e($group) ?>"'><?= $this->text->e($group) ?></a></li>
+ <?php endforeach ?>
+ </ul>
+ </div>
+<?php endif ?> \ No newline at end of file
diff --git a/plugins/Group_assign/Template/board/group.php b/plugins/Group_assign/Template/board/group.php
new file mode 100644
index 00000000..6ac95c1f
--- /dev/null
+++ b/plugins/Group_assign/Template/board/group.php
@@ -0,0 +1,7 @@
+<span>
+<?php if ($task['assigned_groupname']): ?>
+ <strong class="assigned-group-label"><?= t('Assigned Group:') ?></strong>
+ <span class="assigned-group" style="background-color: #<?= $this->task->groupColorExtension->getGroupColor($task['assigned_groupname']) ?>; color:<?= $this->task->groupColorExtension->getFontColor($this->task->groupColorExtension->getGroupColor($task['assigned_groupname'])) ?>;"><?= $this->text->e($task['assigned_groupname'] ?: $task['owner_gp']) ?></span>
+ <br>
+<?php endif ?>
+</span>
diff --git a/plugins/Group_assign/Template/board/multi.php b/plugins/Group_assign/Template/board/multi.php
new file mode 100644
index 00000000..46084b5f
--- /dev/null
+++ b/plugins/Group_assign/Template/board/multi.php
@@ -0,0 +1,5 @@
+<?php if ($task['owner_ms'] > 0 && count($this->task->multiselectMemberModel->getMembers($task['owner_ms'])) > 0) : ?>
+<strong class="assigned-other-label"><small><?= t('Other Assignees:') ?></small></strong>
+ <?= $this->helper->smallAvatarHelperExtend->miniMultiple($task['owner_ms'], 'avatar-inline') ?>
+<br>
+<?php endif ?>