Improve dropdown for task description templates
This commit is contained in:
@@ -66,8 +66,8 @@ class TaskHelper extends Base
|
|||||||
$templates = $this->predefinedTaskDescriptionModel->getAll($projectId);
|
$templates = $this->predefinedTaskDescriptionModel->getAll($projectId);
|
||||||
|
|
||||||
if (! empty($templates)) {
|
if (! empty($templates)) {
|
||||||
$html = '<div class="dropdown">';
|
$html = '<div class="dropdown dropdown-smaller">';
|
||||||
$html .= '<a href="#" class="dropdown-menu dropdown-menu-link-icon"><i class="fa fa-floppy-o fa-fw" aria-hidden="true"></i>'.t('Description Templates').' <i class="fa fa-caret-down" aria-hidden="true"></i></a>';
|
$html .= '<a href="#" class="dropdown-menu dropdown-menu-link-icon"><i class="fa fa-floppy-o fa-fw" aria-hidden="true"></i>'.t('Template for the task description').' <i class="fa fa-caret-down" aria-hidden="true"></i></a>';
|
||||||
$html .= '<ul>';
|
$html .= '<ul>';
|
||||||
|
|
||||||
foreach ($templates as $template) {
|
foreach ($templates as $template) {
|
||||||
|
|||||||
@@ -1355,6 +1355,5 @@ return array(
|
|||||||
// 'Unable to update this template.' => '',
|
// 'Unable to update this template.' => '',
|
||||||
// 'Template removed successfully.' => '',
|
// 'Template removed successfully.' => '',
|
||||||
// 'Unable to remove this template.' => '',
|
// 'Unable to remove this template.' => '',
|
||||||
// 'Description Templates' => '',
|
|
||||||
// 'Template for the task description' => '',
|
// 'Template for the task description' => '',
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -1355,6 +1355,5 @@ return array(
|
|||||||
// 'Unable to update this template.' => '',
|
// 'Unable to update this template.' => '',
|
||||||
// 'Template removed successfully.' => '',
|
// 'Template removed successfully.' => '',
|
||||||
// 'Unable to remove this template.' => '',
|
// 'Unable to remove this template.' => '',
|
||||||
// 'Description Templates' => '',
|
|
||||||
// 'Template for the task description' => '',
|
// 'Template for the task description' => '',
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -1355,6 +1355,5 @@ return array(
|
|||||||
// 'Unable to update this template.' => '',
|
// 'Unable to update this template.' => '',
|
||||||
// 'Template removed successfully.' => '',
|
// 'Template removed successfully.' => '',
|
||||||
// 'Unable to remove this template.' => '',
|
// 'Unable to remove this template.' => '',
|
||||||
// 'Description Templates' => '',
|
|
||||||
// 'Template for the task description' => '',
|
// 'Template for the task description' => '',
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -1355,6 +1355,5 @@ return array(
|
|||||||
// 'Unable to update this template.' => '',
|
// 'Unable to update this template.' => '',
|
||||||
// 'Template removed successfully.' => '',
|
// 'Template removed successfully.' => '',
|
||||||
// 'Unable to remove this template.' => '',
|
// 'Unable to remove this template.' => '',
|
||||||
// 'Description Templates' => '',
|
|
||||||
// 'Template for the task description' => '',
|
// 'Template for the task description' => '',
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -1355,6 +1355,5 @@ return array(
|
|||||||
// 'Unable to update this template.' => '',
|
// 'Unable to update this template.' => '',
|
||||||
// 'Template removed successfully.' => '',
|
// 'Template removed successfully.' => '',
|
||||||
// 'Unable to remove this template.' => '',
|
// 'Unable to remove this template.' => '',
|
||||||
// 'Description Templates' => '',
|
|
||||||
// 'Template for the task description' => '',
|
// 'Template for the task description' => '',
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -1355,6 +1355,5 @@ return array(
|
|||||||
// 'Unable to update this template.' => '',
|
// 'Unable to update this template.' => '',
|
||||||
// 'Template removed successfully.' => '',
|
// 'Template removed successfully.' => '',
|
||||||
// 'Unable to remove this template.' => '',
|
// 'Unable to remove this template.' => '',
|
||||||
// 'Description Templates' => '',
|
|
||||||
// 'Template for the task description' => '',
|
// 'Template for the task description' => '',
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -1355,6 +1355,5 @@ return array(
|
|||||||
// 'Unable to update this template.' => '',
|
// 'Unable to update this template.' => '',
|
||||||
// 'Template removed successfully.' => '',
|
// 'Template removed successfully.' => '',
|
||||||
// 'Unable to remove this template.' => '',
|
// 'Unable to remove this template.' => '',
|
||||||
// 'Description Templates' => '',
|
|
||||||
// 'Template for the task description' => '',
|
// 'Template for the task description' => '',
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -1355,6 +1355,5 @@ return array(
|
|||||||
// 'Unable to update this template.' => '',
|
// 'Unable to update this template.' => '',
|
||||||
// 'Template removed successfully.' => '',
|
// 'Template removed successfully.' => '',
|
||||||
// 'Unable to remove this template.' => '',
|
// 'Unable to remove this template.' => '',
|
||||||
// 'Description Templates' => '',
|
|
||||||
// 'Template for the task description' => '',
|
// 'Template for the task description' => '',
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -1355,6 +1355,5 @@ return array(
|
|||||||
'Unable to update this template.' => 'Impossible de mettre à jour ce modèle.',
|
'Unable to update this template.' => 'Impossible de mettre à jour ce modèle.',
|
||||||
'Template removed successfully.' => 'Modèle supprimé avec succès.',
|
'Template removed successfully.' => 'Modèle supprimé avec succès.',
|
||||||
'Unable to remove this template.' => 'Impossible de supprimer ce modèle.',
|
'Unable to remove this template.' => 'Impossible de supprimer ce modèle.',
|
||||||
'Description Templates' => 'Modèles de description',
|
|
||||||
'Template for the task description' => 'Modèle pour la description des tâches',
|
'Template for the task description' => 'Modèle pour la description des tâches',
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -1355,6 +1355,5 @@ return array(
|
|||||||
// 'Unable to update this template.' => '',
|
// 'Unable to update this template.' => '',
|
||||||
// 'Template removed successfully.' => '',
|
// 'Template removed successfully.' => '',
|
||||||
// 'Unable to remove this template.' => '',
|
// 'Unable to remove this template.' => '',
|
||||||
// 'Description Templates' => '',
|
|
||||||
// 'Template for the task description' => '',
|
// 'Template for the task description' => '',
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -1355,6 +1355,5 @@ return array(
|
|||||||
// 'Unable to update this template.' => '',
|
// 'Unable to update this template.' => '',
|
||||||
// 'Template removed successfully.' => '',
|
// 'Template removed successfully.' => '',
|
||||||
// 'Unable to remove this template.' => '',
|
// 'Unable to remove this template.' => '',
|
||||||
// 'Description Templates' => '',
|
|
||||||
// 'Template for the task description' => '',
|
// 'Template for the task description' => '',
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -1355,6 +1355,5 @@ return array(
|
|||||||
// 'Unable to update this template.' => '',
|
// 'Unable to update this template.' => '',
|
||||||
// 'Template removed successfully.' => '',
|
// 'Template removed successfully.' => '',
|
||||||
// 'Unable to remove this template.' => '',
|
// 'Unable to remove this template.' => '',
|
||||||
// 'Description Templates' => '',
|
|
||||||
// 'Template for the task description' => '',
|
// 'Template for the task description' => '',
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -1355,6 +1355,5 @@ return array(
|
|||||||
// 'Unable to update this template.' => '',
|
// 'Unable to update this template.' => '',
|
||||||
// 'Template removed successfully.' => '',
|
// 'Template removed successfully.' => '',
|
||||||
// 'Unable to remove this template.' => '',
|
// 'Unable to remove this template.' => '',
|
||||||
// 'Description Templates' => '',
|
|
||||||
// 'Template for the task description' => '',
|
// 'Template for the task description' => '',
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -1355,6 +1355,5 @@ return array(
|
|||||||
// 'Unable to update this template.' => '',
|
// 'Unable to update this template.' => '',
|
||||||
// 'Template removed successfully.' => '',
|
// 'Template removed successfully.' => '',
|
||||||
// 'Unable to remove this template.' => '',
|
// 'Unable to remove this template.' => '',
|
||||||
// 'Description Templates' => '',
|
|
||||||
// 'Template for the task description' => '',
|
// 'Template for the task description' => '',
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -1355,6 +1355,5 @@ return array(
|
|||||||
// 'Unable to update this template.' => '',
|
// 'Unable to update this template.' => '',
|
||||||
// 'Template removed successfully.' => '',
|
// 'Template removed successfully.' => '',
|
||||||
// 'Unable to remove this template.' => '',
|
// 'Unable to remove this template.' => '',
|
||||||
// 'Description Templates' => '',
|
|
||||||
// 'Template for the task description' => '',
|
// 'Template for the task description' => '',
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -1355,6 +1355,5 @@ return array(
|
|||||||
// 'Unable to update this template.' => '',
|
// 'Unable to update this template.' => '',
|
||||||
// 'Template removed successfully.' => '',
|
// 'Template removed successfully.' => '',
|
||||||
// 'Unable to remove this template.' => '',
|
// 'Unable to remove this template.' => '',
|
||||||
// 'Description Templates' => '',
|
|
||||||
// 'Template for the task description' => '',
|
// 'Template for the task description' => '',
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -1355,6 +1355,5 @@ return array(
|
|||||||
// 'Unable to update this template.' => '',
|
// 'Unable to update this template.' => '',
|
||||||
// 'Template removed successfully.' => '',
|
// 'Template removed successfully.' => '',
|
||||||
// 'Unable to remove this template.' => '',
|
// 'Unable to remove this template.' => '',
|
||||||
// 'Description Templates' => '',
|
|
||||||
// 'Template for the task description' => '',
|
// 'Template for the task description' => '',
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -1355,6 +1355,5 @@ return array(
|
|||||||
// 'Unable to update this template.' => '',
|
// 'Unable to update this template.' => '',
|
||||||
// 'Template removed successfully.' => '',
|
// 'Template removed successfully.' => '',
|
||||||
// 'Unable to remove this template.' => '',
|
// 'Unable to remove this template.' => '',
|
||||||
// 'Description Templates' => '',
|
|
||||||
// 'Template for the task description' => '',
|
// 'Template for the task description' => '',
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -1355,6 +1355,5 @@ return array(
|
|||||||
// 'Unable to update this template.' => '',
|
// 'Unable to update this template.' => '',
|
||||||
// 'Template removed successfully.' => '',
|
// 'Template removed successfully.' => '',
|
||||||
// 'Unable to remove this template.' => '',
|
// 'Unable to remove this template.' => '',
|
||||||
// 'Description Templates' => '',
|
|
||||||
// 'Template for the task description' => '',
|
// 'Template for the task description' => '',
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -1355,6 +1355,5 @@ return array(
|
|||||||
// 'Unable to update this template.' => '',
|
// 'Unable to update this template.' => '',
|
||||||
// 'Template removed successfully.' => '',
|
// 'Template removed successfully.' => '',
|
||||||
// 'Unable to remove this template.' => '',
|
// 'Unable to remove this template.' => '',
|
||||||
// 'Description Templates' => '',
|
|
||||||
// 'Template for the task description' => '',
|
// 'Template for the task description' => '',
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -1355,6 +1355,5 @@ return array(
|
|||||||
// 'Unable to update this template.' => '',
|
// 'Unable to update this template.' => '',
|
||||||
// 'Template removed successfully.' => '',
|
// 'Template removed successfully.' => '',
|
||||||
// 'Unable to remove this template.' => '',
|
// 'Unable to remove this template.' => '',
|
||||||
// 'Description Templates' => '',
|
|
||||||
// 'Template for the task description' => '',
|
// 'Template for the task description' => '',
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -1355,6 +1355,5 @@ return array(
|
|||||||
// 'Unable to update this template.' => '',
|
// 'Unable to update this template.' => '',
|
||||||
// 'Template removed successfully.' => '',
|
// 'Template removed successfully.' => '',
|
||||||
// 'Unable to remove this template.' => '',
|
// 'Unable to remove this template.' => '',
|
||||||
// 'Description Templates' => '',
|
|
||||||
// 'Template for the task description' => '',
|
// 'Template for the task description' => '',
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -1355,6 +1355,5 @@ return array(
|
|||||||
// 'Unable to update this template.' => '',
|
// 'Unable to update this template.' => '',
|
||||||
// 'Template removed successfully.' => '',
|
// 'Template removed successfully.' => '',
|
||||||
// 'Unable to remove this template.' => '',
|
// 'Unable to remove this template.' => '',
|
||||||
// 'Description Templates' => '',
|
|
||||||
// 'Template for the task description' => '',
|
// 'Template for the task description' => '',
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -1355,6 +1355,5 @@ return array(
|
|||||||
// 'Unable to update this template.' => '',
|
// 'Unable to update this template.' => '',
|
||||||
// 'Template removed successfully.' => '',
|
// 'Template removed successfully.' => '',
|
||||||
// 'Unable to remove this template.' => '',
|
// 'Unable to remove this template.' => '',
|
||||||
// 'Description Templates' => '',
|
|
||||||
// 'Template for the task description' => '',
|
// 'Template for the task description' => '',
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -1355,6 +1355,5 @@ return array(
|
|||||||
// 'Unable to update this template.' => '',
|
// 'Unable to update this template.' => '',
|
||||||
// 'Template removed successfully.' => '',
|
// 'Template removed successfully.' => '',
|
||||||
// 'Unable to remove this template.' => '',
|
// 'Unable to remove this template.' => '',
|
||||||
// 'Description Templates' => '',
|
|
||||||
// 'Template for the task description' => '',
|
// 'Template for the task description' => '',
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -1355,6 +1355,5 @@ return array(
|
|||||||
// 'Unable to update this template.' => '',
|
// 'Unable to update this template.' => '',
|
||||||
// 'Template removed successfully.' => '',
|
// 'Template removed successfully.' => '',
|
||||||
// 'Unable to remove this template.' => '',
|
// 'Unable to remove this template.' => '',
|
||||||
// 'Description Templates' => '',
|
|
||||||
// 'Template for the task description' => '',
|
// 'Template for the task description' => '',
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -1361,6 +1361,5 @@ return array(
|
|||||||
// 'Unable to update this template.' => '',
|
// 'Unable to update this template.' => '',
|
||||||
// 'Template removed successfully.' => '',
|
// 'Template removed successfully.' => '',
|
||||||
// 'Unable to remove this template.' => '',
|
// 'Unable to remove this template.' => '',
|
||||||
// 'Description Templates' => '',
|
|
||||||
// 'Template for the task description' => '',
|
// 'Template for the task description' => '',
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -1355,6 +1355,5 @@ return array(
|
|||||||
// 'Unable to update this template.' => '',
|
// 'Unable to update this template.' => '',
|
||||||
// 'Template removed successfully.' => '',
|
// 'Template removed successfully.' => '',
|
||||||
// 'Unable to remove this template.' => '',
|
// 'Unable to remove this template.' => '',
|
||||||
// 'Description Templates' => '',
|
|
||||||
// 'Template for the task description' => '',
|
// 'Template for the task description' => '',
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -8,6 +8,7 @@
|
|||||||
<div class="task-form-main-column">
|
<div class="task-form-main-column">
|
||||||
<?= $this->task->renderTitleField($values, $errors) ?>
|
<?= $this->task->renderTitleField($values, $errors) ?>
|
||||||
<?= $this->task->renderDescriptionField($values, $errors) ?>
|
<?= $this->task->renderDescriptionField($values, $errors) ?>
|
||||||
|
<?= $this->task->renderDescriptionTemplateDropdown($project['id']) ?>
|
||||||
<?= $this->task->renderTagField($project, $tags) ?>
|
<?= $this->task->renderTagField($project, $tags) ?>
|
||||||
|
|
||||||
<?= $this->hook->render('template:task:form:first-column', array('values' => $values, 'errors' => $errors)) ?>
|
<?= $this->hook->render('template:task:form:first-column', array('values' => $values, 'errors' => $errors)) ?>
|
||||||
|
|||||||
2
assets/css/app.min.css
vendored
2
assets/css/app.min.css
vendored
File diff suppressed because one or more lines are too long
@@ -11,6 +11,9 @@ h2
|
|||||||
ul
|
ul
|
||||||
display: none
|
display: none
|
||||||
|
|
||||||
|
.dropdown-smaller
|
||||||
|
font-size: 0.85em
|
||||||
|
|
||||||
ul.dropdown-submenu-open
|
ul.dropdown-submenu-open
|
||||||
display: block
|
display: block
|
||||||
position: absolute
|
position: absolute
|
||||||
|
|||||||
Reference in New Issue
Block a user