Refactoring/rewrite of modal boxes handling
This commit is contained in:
@@ -1,18 +1,12 @@
|
||||
<section id="main">
|
||||
<div class="page-header">
|
||||
<h2><?= t('Do you really want to close all tasks of this column?') ?></h2>
|
||||
</div>
|
||||
<form method="post" action="<?= $this->url->href('BoardPopoverController', 'closeColumnTasks', array('project_id' => $project['id'])) ?>">
|
||||
<?= $this->form->csrf() ?>
|
||||
<?= $this->form->hidden('column_id', $values) ?>
|
||||
<?= $this->form->hidden('swimlane_id', $values) ?>
|
||||
<div class="page-header">
|
||||
<h2><?= t('Do you really want to close all tasks of this column?') ?></h2>
|
||||
</div>
|
||||
<form method="post" action="<?= $this->url->href('BoardPopoverController', 'closeColumnTasks', array('project_id' => $project['id'])) ?>">
|
||||
<?= $this->form->csrf() ?>
|
||||
<?= $this->form->hidden('column_id', $values) ?>
|
||||
<?= $this->form->hidden('swimlane_id', $values) ?>
|
||||
|
||||
<p class="alert"><?= t('%d task(s) in the column "%s" and the swimlane "%s" will be closed.', $nb_tasks, $column, $swimlane) ?></p>
|
||||
<p class="alert"><?= t('%d task(s) in the column "%s" and the swimlane "%s" will be closed.', $nb_tasks, $column, $swimlane) ?></p>
|
||||
|
||||
<div class="form-actions">
|
||||
<button type="submit" class="btn btn-red"><?= t('Save') ?></button>
|
||||
<?= t('or') ?>
|
||||
<?= $this->url->link(t('cancel'), 'BoardViewController', 'show', array('project_id' => $project['id']), false, 'close-popover') ?>
|
||||
</div>
|
||||
</form>
|
||||
</section>
|
||||
<?= $this->modal->submitButtons(t('Yes'), 'red') ?>
|
||||
</form>
|
||||
|
||||
Reference in New Issue
Block a user