From 9aca556fc6db6c23c4c95a0e30425fe966003f0e Mon Sep 17 00:00:00 2001 From: Frederic Guillot Date: Fri, 23 Oct 2015 20:48:02 -0400 Subject: Avoid to disable the default swimlane during renaming when there is no other activated swimlane --- app/Template/swimlane/index.php | 56 +++++++++++++++++++++-------------------- 1 file changed, 29 insertions(+), 27 deletions(-) (limited to 'app/Template/swimlane') diff --git a/app/Template/swimlane/index.php b/app/Template/swimlane/index.php index 95b462d8..9502cffd 100644 --- a/app/Template/swimlane/index.php +++ b/app/Template/swimlane/index.php @@ -1,3 +1,25 @@ + +
+ + form->csrf() ?> + form->hidden('id', $default_swimlane) ?> + + form->label(t('Rename'), 'default_swimlane') ?> + form->text('default_swimlane', $default_swimlane, array(), array('required', 'maxlength="50"')) ?>
+ + + form->checkbox('show_default_swimlane', t('Show default swimlane'), 1, $default_swimlane['show_default_swimlane'] == 1) ?> + + form->hidden('show_default_swimlane', $default_swimlane) ?> + + +
+ +
+
+ - - -
- - form->csrf() ?> - form->hidden('id', $default_swimlane) ?> - - form->label(t('Rename'), 'default_swimlane') ?> - form->text('default_swimlane', $default_swimlane, array(), array('required', 'maxlength="50"')) ?>
- - - form->checkbox('show_default_swimlane', t('Show default swimlane'), 1, isset($default_swimlane['show_default_swimlane']) && $default_swimlane['show_default_swimlane'] == 1) ?> - - -
- -
-
- - - -render('swimlane/table', array('swimlanes' => $inactive_swimlanes, 'project' => $project, 'hide_position' => true)) ?> - \ No newline at end of file -- cgit v1.2.3