diff --git a/include/staff/templates/task-view.tmpl.php b/include/staff/templates/task-view.tmpl.php index fda5d66ef682fc62fd50d9621652365c594b2877..47acc7a7cab3cb527026fcd8705953e737f42a01 100644 --- a/include/staff/templates/task-view.tmpl.php +++ b/include/staff/templates/task-view.tmpl.php @@ -53,7 +53,7 @@ if ($role->hasPerm(Task::PERM_DELETE)) { 'delete' => array( 'href' => sprintf('#tasks/%d/delete', $task->getId()), 'icon' => 'icon-trash', - 'class' => 'red button task-action', + 'class' => 'danger', 'label' => __('Delete'), 'redirect' => 'tasks.php' )); @@ -130,10 +130,8 @@ if ($task->isOverdue()) class="action-dropdown anchor-right"> <ul> <?php foreach ($actions as $a => $action) { ?> - <li> - <a class="no-pjax <?php - echo $action['class'] ?: 'task-action'; ?>" - <?php + <li <?php if ($action['class']) echo sprintf("class='%s'", $action['class']); ?> > + <a class="no-pjax task-action" <?php if ($action['dialog']) echo sprintf("data-dialog-config='%s'", $action['dialog']); if ($action['redirect'])