From cf821e117ce8b937cff7f386a107aaa81ba6bf9b Mon Sep 17 00:00:00 2001 From: Frédéric Guillot Date: Fri, 26 Dec 2014 17:43:13 -0500 Subject: Add swimlanes --- app/Template/board/edit.php | 2 +- app/Template/board/index.php | 18 ++++------ app/Template/board/public.php | 43 +++++------------------ app/Template/board/show.php | 73 ++++++++++++++-------------------------- app/Template/board/swimlane.php | 59 ++++++++++++++++++++++++++++++++ app/Template/board/task.php | 16 ++++++++- app/Template/category/index.php | 7 ++-- app/Template/project/sidebar.php | 3 ++ app/Template/project/users.php | 4 +-- app/Template/swimlane/edit.php | 18 ++++++++++ app/Template/swimlane/index.php | 47 ++++++++++++++++++++++++++ app/Template/swimlane/remove.php | 17 ++++++++++ app/Template/swimlane/table.php | 44 ++++++++++++++++++++++++ app/Template/task/new.php | 1 + 14 files changed, 251 insertions(+), 101 deletions(-) create mode 100644 app/Template/board/swimlane.php create mode 100644 app/Template/swimlane/edit.php create mode 100644 app/Template/swimlane/index.php create mode 100644 app/Template/swimlane/remove.php create mode 100644 app/Template/swimlane/table.php (limited to 'app/Template') diff --git a/app/Template/board/edit.php b/app/Template/board/edit.php index d7086504..a44abcc8 100644 --- a/app/Template/board/edit.php +++ b/app/Template/board/edit.php @@ -16,7 +16,7 @@ - + diff --git a/app/Template/board/index.php b/app/Template/board/index.php index 21040373..53c662a0 100644 --- a/app/Template/board/index.php +++ b/app/Template/board/index.php @@ -6,16 +6,12 @@ 'project' => $project, )) ?> - -

- - $project, - 'board' => $board, - 'categories' => $categories, - 'board_private_refresh_interval' => $board_private_refresh_interval, - 'board_highlight_period' => $board_highlight_period, - )) ?> - + $project, + 'swimlanes' => $swimlanes, + 'categories' => $categories, + 'board_private_refresh_interval' => $board_private_refresh_interval, + 'board_highlight_period' => $board_highlight_period, + )) ?> diff --git a/app/Template/board/public.php b/app/Template/board/public.php index 090d617b..0544f392 100644 --- a/app/Template/board/public.php +++ b/app/Template/board/public.php @@ -1,39 +1,12 @@
- -

- - - - - - - - - - - - - -
- - - () - -
- -
- - $task, - 'categories' => $categories, - 'not_editable' => true, - 'project' => $project - )) ?> - -
- -
- + $project, + 'swimlanes' => $swimlanes, + 'categories' => $categories, + 'board_private_refresh_interval' => $board_private_refresh_interval, + 'board_highlight_period' => $board_highlight_period, + 'not_editable' => true, + )) ?>
\ No newline at end of file diff --git a/app/Template/board/show.php b/app/Template/board/show.php index 142969c9..7df19bc1 100644 --- a/app/Template/board/show.php +++ b/app/Template/board/show.php @@ -1,51 +1,28 @@ - - - - - - - - - - + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/app/Template/board/task.php b/app/Template/board/task.php index 64448acc..d077c773 100644 --- a/app/Template/board/task.php +++ b/app/Template/board/task.php @@ -1,4 +1,8 @@ - + + + + +
$task['id'], 'token' => $project['token'])) ?> @@ -28,6 +32,14 @@ +
+ $task['id']), false, 'task-edit-popover', t('Edit this task')) ?> @@ -114,3 +126,5 @@
+ + \ No newline at end of file diff --git a/app/Template/category/index.php b/app/Template/category/index.php index 8a3eb4f1..bd275a67 100644 --- a/app/Template/category/index.php +++ b/app/Template/category/index.php @@ -1,8 +1,7 @@ + - -
-
- $column['project_id'], 'column_id' => $column['id']), false, 'task-creation-popover', t('Add a new task')) ?> -
- - - - (/) - - - - () - - -
- -
- $task, 'categories' => $categories)) ?> + + + +
+ - - - - - + + +

+ + + $project, + 'swimlane' => $swimlane, + 'board_highlight_period' => $board_highlight_period, + 'categories' => $categories, + 'hide_swimlane' => count($swimlanes) === 1, + 'not_editable' => isset($not_editable), + )) ?> + +
diff --git a/app/Template/board/swimlane.php b/app/Template/board/swimlane.php new file mode 100644 index 00000000..e48eb6f1 --- /dev/null +++ b/app/Template/board/swimlane.php @@ -0,0 +1,59 @@ +
+ +
+ $column['project_id'], 'column_id' => $column['id'], 'swimlane_id' => $swimlane['id']), false, 'task-creation-popover', t('Add a new task')) ?> +
+ + + + + + + (/) + + + + () + + +
+ + + + + + + + $project, + 'task' => $task, + 'categories' => $categories, + 'board_highlight_period' => $board_highlight_period, + 'not_editable' => $not_editable, + )) ?> + +
@@ -26,7 +25,9 @@
-

+
diff --git a/app/Template/project/sidebar.php b/app/Template/project/sidebar.php index dc9a811b..5107451a 100644 --- a/app/Template/project/sidebar.php +++ b/app/Template/project/sidebar.php @@ -20,6 +20,9 @@
  • $project['id'])) ?>
  • +
  • + $project['id'])) ?> +
  • $project['id'])) ?> diff --git a/app/Template/project/users.php b/app/Template/project/users.php index 3a59df7a..691fe9fd 100644 --- a/app/Template/project/users.php +++ b/app/Template/project/users.php @@ -19,9 +19,9 @@ if ($is_owner): ?> [owner] - ( $project['id'], 'user_id' => $user_id, 'is_owner' => 0), true) ?> > + ( $project['id'], 'user_id' => $user_id, 'is_owner' => 0), true) ?> > - ( $project['id'], 'user_id' => $user_id, 'is_owner' => 1), true) ?> > + ( $project['id'], 'user_id' => $user_id, 'is_owner' => 1), true) ?> > or $project['id'], 'user_id' => $user_id), true) ?>) diff --git a/app/Template/swimlane/edit.php b/app/Template/swimlane/edit.php new file mode 100644 index 00000000..fca555f7 --- /dev/null +++ b/app/Template/swimlane/edit.php @@ -0,0 +1,18 @@ + + + + + + + + + + + + +
    + +
    +
  • \ No newline at end of file diff --git a/app/Template/swimlane/index.php b/app/Template/swimlane/index.php new file mode 100644 index 00000000..ec822c15 --- /dev/null +++ b/app/Template/swimlane/index.php @@ -0,0 +1,47 @@ + + + $active_swimlanes, 'project' => $project)) ?> + + + +
    + + + + + + + +
    + +
    +
    + + +
    + + + + + +
    + + + +
    + +
    +
    + + + + $inactive_swimlanes, 'project' => $project, 'hide_position' => true)) ?> + \ No newline at end of file diff --git a/app/Template/swimlane/remove.php b/app/Template/swimlane/remove.php new file mode 100644 index 00000000..edf8803c --- /dev/null +++ b/app/Template/swimlane/remove.php @@ -0,0 +1,17 @@ +
    + + +
    +

    + +

    + +
    + $project['id'], 'swimlane_id' => $swimlane['id']), true, 'btn btn-red') ?> + + $project['id'])) ?> +
    +
    +
    \ No newline at end of file diff --git a/app/Template/swimlane/table.php b/app/Template/swimlane/table.php new file mode 100644 index 00000000..ac7ed835 --- /dev/null +++ b/app/Template/swimlane/table.php @@ -0,0 +1,44 @@ + + + + + + + + + + + + + + + + + +
    # +
      + +
    • + $project['id'], 'swimlane_id' => $swimlane['id']), true) ?> +
    • + + +
    • + $project['id'], 'swimlane_id' => $swimlane['id']), true) ?> +
    • + +
    • + $project['id'], 'swimlane_id' => $swimlane['id'])) ?> +
    • +
    • + + $project['id'], 'swimlane_id' => $swimlane['id']), true) ?> + + $project['id'], 'swimlane_id' => $swimlane['id']), true) ?> + +
    • +
    • + $project['id'], 'swimlane_id' => $swimlane['id'])) ?> +
    • +
    +
    \ No newline at end of file diff --git a/app/Template/task/new.php b/app/Template/task/new.php index 72e7d25b..3e2576c5 100644 --- a/app/Template/task/new.php +++ b/app/Template/task/new.php @@ -47,6 +47,7 @@
    +
    -- cgit v1.2.3