2015-01-16 14:23:05 +01:00
|
|
|
<?php if (! empty($active_swimlanes)): ?>
|
|
|
|
<div class="page-header">
|
|
|
|
<h2><?= t('Active swimlanes') ?></h2>
|
|
|
|
</div>
|
|
|
|
<?= $this->render('swimlane/table', array('swimlanes' => $active_swimlanes, 'project' => $project)) ?>
|
|
|
|
<?php endif ?>
|
|
|
|
|
|
|
|
<div class="page-header">
|
|
|
|
<h2><?= t('Add a new swimlane') ?></h2>
|
|
|
|
</div>
|
2015-08-16 17:04:56 +02:00
|
|
|
<form method="post" action="<?= $this->url->href('swimlane', 'save', array('project_id' => $project['id'])) ?>" autocomplete="off">
|
2015-01-16 14:23:05 +01:00
|
|
|
|
2015-08-16 17:04:56 +02:00
|
|
|
<?= $this->form->csrf() ?>
|
|
|
|
<?= $this->form->hidden('project_id', $values) ?>
|
2015-01-16 14:23:05 +01:00
|
|
|
|
2015-08-16 17:04:56 +02:00
|
|
|
<?= $this->form->label(t('Name'), 'name') ?>
|
|
|
|
<?= $this->form->text('name', $values, $errors, array('autofocus', 'required', 'maxlength="50"')) ?>
|
2015-01-16 14:23:05 +01:00
|
|
|
|
|
|
|
<div class="form-actions">
|
|
|
|
<input type="submit" value="<?= t('Save') ?>" class="btn btn-blue"/>
|
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
|
|
|
|
<div class="page-header">
|
|
|
|
<h2><?= t('Change default swimlane') ?></h2>
|
|
|
|
</div>
|
2015-08-16 17:04:56 +02:00
|
|
|
<form method="post" action="<?= $this->url->href('swimlane', 'change', array('project_id' => $project['id'])) ?>" autocomplete="off">
|
2015-01-16 14:23:05 +01:00
|
|
|
|
2015-08-16 17:04:56 +02:00
|
|
|
<?= $this->form->csrf() ?>
|
|
|
|
<?= $this->form->hidden('id', $default_swimlane) ?>
|
2015-01-16 14:23:05 +01:00
|
|
|
|
2015-08-16 17:04:56 +02:00
|
|
|
<?= $this->form->label(t('Rename'), 'default_swimlane') ?>
|
|
|
|
<?= $this->form->text('default_swimlane', $default_swimlane, array(), array('autofocus', 'required', 'maxlength="50"')) ?><br/>
|
2015-01-16 14:23:05 +01:00
|
|
|
|
2015-08-16 17:04:56 +02:00
|
|
|
<?= $this->form->checkbox('show_default_swimlane', t('Show default swimlane'), 1, isset($default_swimlane['show_default_swimlane']) && $default_swimlane['show_default_swimlane'] == 1) ?>
|
2015-01-16 14:23:05 +01:00
|
|
|
|
|
|
|
<div class="form-actions">
|
|
|
|
<input type="submit" value="<?= t('Save') ?>" class="btn btn-blue"/>
|
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
|
|
|
|
<?php if (! empty($inactive_swimlanes)): ?>
|
|
|
|
<div class="page-header">
|
|
|
|
<h2><?= t('Inactive swimlanes') ?></h2>
|
|
|
|
</div>
|
|
|
|
<?= $this->render('swimlane/table', array('swimlanes' => $inactive_swimlanes, 'project' => $project, 'hide_position' => true)) ?>
|
|
|
|
<?php endif ?>
|