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