Simplify automatic actions table
This commit is contained in:
@@ -7,6 +7,7 @@ New features:
|
|||||||
|
|
||||||
Improvements:
|
Improvements:
|
||||||
|
|
||||||
|
* Simplify automatic actions table
|
||||||
* Show category description in tooltip
|
* Show category description in tooltip
|
||||||
* Show category creation form in modal dialog
|
* Show category creation form in modal dialog
|
||||||
* Prevent people to remove swimlanes that contains tasks
|
* Prevent people to remove swimlanes that contains tasks
|
||||||
|
|||||||
@@ -14,13 +14,21 @@
|
|||||||
<p class="alert"><?= t('There is no action at the moment.') ?></p>
|
<p class="alert"><?= t('There is no action at the moment.') ?></p>
|
||||||
<?php else: ?>
|
<?php else: ?>
|
||||||
<table class="table-scrolling">
|
<table class="table-scrolling">
|
||||||
<tr>
|
|
||||||
<th class="column-60"><?= t('Automatic actions') ?></th>
|
|
||||||
<th class="column-25"><?= t('Action parameters') ?></th>
|
|
||||||
<th><?= t('Action') ?></th>
|
|
||||||
</tr>
|
|
||||||
|
|
||||||
<?php foreach ($actions as $action): ?>
|
<?php foreach ($actions as $action): ?>
|
||||||
|
<tr>
|
||||||
|
<th>
|
||||||
|
<div class="dropdown">
|
||||||
|
<a href="#" class="dropdown-menu dropdown-menu-link-icon"><i class="fa fa-cog"></i><i class="fa fa-caret-down"></i></a>
|
||||||
|
<ul>
|
||||||
|
<li>
|
||||||
|
<?= $this->modal->confirm('trash-o', t('Remove'), 'ActionController', 'confirm', array('project_id' => $project['id'], 'action_id' => $action['id'])) ?>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<?= $this->text->in($action['action_name'], $available_actions) ?>
|
||||||
|
</th>
|
||||||
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>
|
<td>
|
||||||
<ul>
|
<ul>
|
||||||
@@ -28,43 +36,32 @@
|
|||||||
<?= t('Event name') ?> =
|
<?= t('Event name') ?> =
|
||||||
<strong><?= $this->text->in($action['event_name'], $available_events) ?></strong>
|
<strong><?= $this->text->in($action['event_name'], $available_events) ?></strong>
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<?php foreach ($action['params'] as $param_name => $param_value): ?>
|
||||||
<?= t('Action name') ?> =
|
<li>
|
||||||
<strong><?= $this->text->in($action['action_name'], $available_actions) ?></strong>
|
<?= $this->text->in($param_name, $available_params[$action['action_name']]) ?> =
|
||||||
</li>
|
<strong>
|
||||||
<ul>
|
<?php if ($this->text->contains($param_name, 'column_id')): ?>
|
||||||
</td>
|
<?= $this->text->in($param_value, $columns_list) ?>
|
||||||
<td>
|
<?php elseif ($this->text->contains($param_name, 'user_id')): ?>
|
||||||
<ul>
|
<?= $this->text->in($param_value, $users_list) ?>
|
||||||
<?php foreach ($action['params'] as $param_name => $param_value): ?>
|
<?php elseif ($this->text->contains($param_name, 'project_id')): ?>
|
||||||
<li>
|
<?= $this->text->in($param_value, $projects_list) ?>
|
||||||
<?= $this->text->in($param_name, $available_params[$action['action_name']]) ?> =
|
<?php elseif ($this->text->contains($param_name, 'color_id')): ?>
|
||||||
<strong>
|
<?= $this->text->in($param_value, $colors_list) ?>
|
||||||
<?php if ($this->text->contains($param_name, 'column_id')): ?>
|
<?php elseif ($this->text->contains($param_name, 'category_id')): ?>
|
||||||
<?= $this->text->in($param_value, $columns_list) ?>
|
<?= $this->text->in($param_value, $categories_list) ?>
|
||||||
<?php elseif ($this->text->contains($param_name, 'user_id')): ?>
|
<?php elseif ($this->text->contains($param_name, 'link_id')): ?>
|
||||||
<?= $this->text->in($param_value, $users_list) ?>
|
<?= $this->text->in($param_value, $links_list) ?>
|
||||||
<?php elseif ($this->text->contains($param_name, 'project_id')): ?>
|
<?php elseif ($this->text->contains($param_name, 'swimlane_id')): ?>
|
||||||
<?= $this->text->in($param_value, $projects_list) ?>
|
<?= $this->text->in($param_value, $swimlane_list) ?>
|
||||||
<?php elseif ($this->text->contains($param_name, 'color_id')): ?>
|
<?php else: ?>
|
||||||
<?= $this->text->in($param_value, $colors_list) ?>
|
<?= $this->text->e($param_value) ?>
|
||||||
<?php elseif ($this->text->contains($param_name, 'category_id')): ?>
|
<?php endif ?>
|
||||||
<?= $this->text->in($param_value, $categories_list) ?>
|
</strong>
|
||||||
<?php elseif ($this->text->contains($param_name, 'link_id')): ?>
|
</li>
|
||||||
<?= $this->text->in($param_value, $links_list) ?>
|
<?php endforeach ?>
|
||||||
<?php elseif ($this->text->contains($param_name, 'swimlane_id')): ?>
|
|
||||||
<?= $this->text->in($param_value, $swimlane_list) ?>
|
|
||||||
<?php else: ?>
|
|
||||||
<?= $this->text->e($param_value) ?>
|
|
||||||
<?php endif ?>
|
|
||||||
</strong>
|
|
||||||
</li>
|
|
||||||
<?php endforeach ?>
|
|
||||||
</ul>
|
</ul>
|
||||||
</td>
|
</td>
|
||||||
<td>
|
|
||||||
<?= $this->modal->confirm('trash-o', t('Remove'), 'ActionController', 'confirm', array('project_id' => $project['id'], 'action_id' => $action['id'])) ?>
|
|
||||||
</td>
|
|
||||||
</tr>
|
</tr>
|
||||||
<?php endforeach ?>
|
<?php endforeach ?>
|
||||||
</table>
|
</table>
|
||||||
|
|||||||
Reference in New Issue
Block a user