diff options
author | Frederic Guillot <fred@kanboard.net> | 2016-03-05 17:40:49 -0500 |
---|---|---|
committer | Frederic Guillot <fred@kanboard.net> | 2016-03-05 17:40:49 -0500 |
commit | 22c5e32def94560881ad9ec032158cd570be44f4 (patch) | |
tree | 7cfe346a2b7d384c9cdcd143693bc8189ac18259 /app/Template/action_project/project.php | |
parent | a19dc88567e6869b9082064e70db380f84032cef (diff) |
Improve automatic action creation
Diffstat (limited to 'app/Template/action_project/project.php')
-rw-r--r-- | app/Template/action_project/project.php | 36 |
1 files changed, 17 insertions, 19 deletions
diff --git a/app/Template/action_project/project.php b/app/Template/action_project/project.php index d056239b..226f3b19 100644 --- a/app/Template/action_project/project.php +++ b/app/Template/action_project/project.php @@ -1,22 +1,20 @@ -<section id="main"> - <div class="page-header"> - <h2><?= t('Import actions from another project') ?></h2> - </div> - <?php if (empty($projects_list)): ?> - <p class="alert"><?= t('There is no available project.') ?></p> - <?php else: ?> - <form class="popover-form" method="post" action="<?= $this->url->href('ActionProject', 'save', array('project_id' => $project['id'])) ?>" autocomplete="off"> +<div class="page-header"> + <h2><?= t('Import actions from another project') ?></h2> +</div> +<?php if (empty($projects_list)): ?> + <p class="alert"><?= t('There is no available project.') ?></p> +<?php else: ?> + <form class="popover-form" method="post" action="<?= $this->url->href('ActionProject', 'save', array('project_id' => $project['id'])) ?>" autocomplete="off"> - <?= $this->form->csrf() ?> + <?= $this->form->csrf() ?> - <?= $this->form->label(t('Create from another project'), 'src_project_id') ?> - <?= $this->form->select('src_project_id', $projects_list) ?> + <?= $this->form->label(t('Create from another project'), 'src_project_id') ?> + <?= $this->form->select('src_project_id', $projects_list) ?> - <div class="form-actions"> - <button type="submit" class="btn btn-blue"><?= t('Save') ?></button> - <?= t('or') ?> - <?= $this->url->link(t('cancel'), 'Action', 'index', array(), false, 'close-popover') ?> - </div> - </form> - <?php endif ?> -</section>
\ No newline at end of file + <div class="form-actions"> + <button type="submit" class="btn btn-blue"><?= t('Save') ?></button> + <?= t('or') ?> + <?= $this->url->link(t('cancel'), 'Action', 'index', array(), false, 'close-popover') ?> + </div> + </form> +<?php endif ?>
\ No newline at end of file |