Improve PR about task links table
This commit is contained in:
@@ -29,6 +29,6 @@
|
|||||||
<div class="form-actions">
|
<div class="form-actions">
|
||||||
<button type="submit" class="btn btn-blue"><?= t('Save') ?></button>
|
<button type="submit" class="btn btn-blue"><?= t('Save') ?></button>
|
||||||
<?= t('or') ?>
|
<?= t('or') ?>
|
||||||
<?= $this->url->link(t('cancel'), 'task', 'show', array('task_id' => $task['id'], 'project_id' => $task['project_id'])) ?>
|
<?= $this->url->link(t('cancel'), 'task', 'show', array('task_id' => $task['id'], 'project_id' => $task['project_id']), false, 'close-popover') ?>
|
||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
@@ -10,6 +10,6 @@
|
|||||||
<div class="form-actions">
|
<div class="form-actions">
|
||||||
<?= $this->url->link(t('Yes'), 'tasklink', 'remove', array('link_id' => $link['id'], 'task_id' => $task['id'], 'project_id' => $task['project_id']), true, 'btn btn-red') ?>
|
<?= $this->url->link(t('Yes'), 'tasklink', 'remove', array('link_id' => $link['id'], 'task_id' => $task['id'], 'project_id' => $task['project_id']), true, 'btn btn-red') ?>
|
||||||
<?= t('or') ?>
|
<?= t('or') ?>
|
||||||
<?= $this->url->link(t('cancel'), 'task', 'show', array('task_id' => $task['id'], 'project_id' => $task['project_id'])) ?>
|
<?= $this->url->link(t('cancel'), 'task', 'show', array('task_id' => $task['id'], 'project_id' => $task['project_id']), false, 'close-popover') ?>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -1,7 +1,7 @@
|
|||||||
<?php if (empty($links)): ?>
|
<?php if (empty($links)): ?>
|
||||||
<p class="alert"><?= t('There is no internal link for the moment.') ?></p>
|
<p class="alert"><?= t('There is no internal link for the moment.') ?></p>
|
||||||
<?php else: ?>
|
<?php else: ?>
|
||||||
<table class="tasklinks-table table-stripped">
|
<table class="task-links-table table-stripped">
|
||||||
<?php foreach ($links as $label => $grouped_links): ?>
|
<?php foreach ($links as $label => $grouped_links): ?>
|
||||||
<?php $hide_td = false ?>
|
<?php $hide_td = false ?>
|
||||||
<?php foreach ($grouped_links as $link): ?>
|
<?php foreach ($grouped_links as $link): ?>
|
||||||
@@ -10,7 +10,7 @@
|
|||||||
<td class="column-40" colspan="2">
|
<td class="column-40" colspan="2">
|
||||||
<?= t('This task') ?>
|
<?= t('This task') ?>
|
||||||
<strong><?= t($label) ?></strong>
|
<strong><?= t($label) ?></strong>
|
||||||
<span class="board-column-header-task-count">(<?= count($grouped_links) ?>)</span>
|
<span class="task-links-task-count">(<?= count($grouped_links) ?>)</span>
|
||||||
</td>
|
</td>
|
||||||
<th><?= t('Assignee') ?></th>
|
<th><?= t('Assignee') ?></th>
|
||||||
<th><?= t('Time tracking') ?></th>
|
<th><?= t('Time tracking') ?></th>
|
||||||
@@ -45,11 +45,12 @@
|
|||||||
|
|
||||||
<?php if ($link['project_id'] != $project['id']): ?>
|
<?php if ($link['project_id'] != $project['id']): ?>
|
||||||
<br>
|
<br>
|
||||||
<?= t('Project') ?>
|
|
||||||
<?= $this->text->e($link['project_name']) ?>
|
<?= $this->text->e($link['project_name']) ?>
|
||||||
<?php endif ?>
|
<?php endif ?>
|
||||||
</td>
|
</td>
|
||||||
<td><?= $this->text->e($link['column_title']) ?></td>
|
<td>
|
||||||
|
<?= $this->text->e($link['column_title']) ?>
|
||||||
|
</td>
|
||||||
<td>
|
<td>
|
||||||
<?php if (! empty($link['task_assignee_username'])): ?>
|
<?php if (! empty($link['task_assignee_username'])): ?>
|
||||||
<?php if ($editable): ?>
|
<?php if ($editable): ?>
|
||||||
@@ -73,8 +74,8 @@
|
|||||||
<div class="dropdown">
|
<div class="dropdown">
|
||||||
<a href="#" class="dropdown-menu dropdown-menu-link-icon"><i class="fa fa-cog fa-fw"></i><i class="fa fa-caret-down"></i></a>
|
<a href="#" class="dropdown-menu dropdown-menu-link-icon"><i class="fa fa-cog fa-fw"></i><i class="fa fa-caret-down"></i></a>
|
||||||
<ul>
|
<ul>
|
||||||
<li><?= $this->url->link(t('Edit'), 'tasklink', 'edit', array('link_id' => $link['id'], 'task_id' => $task['id'], 'project_id' => $task['project_id'])) ?></li>
|
<li><?= $this->url->link(t('Edit'), 'tasklink', 'edit', array('link_id' => $link['id'], 'task_id' => $task['id'], 'project_id' => $task['project_id']), false, 'popover') ?></li>
|
||||||
<li><?= $this->url->link(t('Remove'), 'tasklink', 'confirm', array('link_id' => $link['id'], 'task_id' => $task['id'], 'project_id' => $task['project_id'])) ?></li>
|
<li><?= $this->url->link(t('Remove'), 'tasklink', 'confirm', array('link_id' => $link['id'], 'task_id' => $task['id'], 'project_id' => $task['project_id']), false, 'popover') ?></li>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
</td>
|
</td>
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -1,8 +1,12 @@
|
|||||||
/* tasklinks */
|
/* tasklinks */
|
||||||
.tasklinks-table {
|
.task-links-table {
|
||||||
font-size: 0.85em;
|
font-size: 0.85em;
|
||||||
}
|
}
|
||||||
|
|
||||||
.tasklinks-table td {
|
.task-links-table td {
|
||||||
vertical-align: middle;
|
vertical-align: middle;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.task-links-task-count {
|
||||||
|
color: #999;
|
||||||
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user