From dac049cd08d96d32862a50d749e7bf8a15d776c3 Mon Sep 17 00:00:00 2001 From: Frederic Guillot Date: Fri, 5 Feb 2016 17:40:42 -0500 Subject: Add inline popoup for project sections --- app/ServiceProvider/RouteProvider.php | 14 +------------- app/Template/action/index.php | 2 +- app/Template/action/remove.php | 2 +- app/Template/column/edit.php | 6 +++--- app/Template/column/index.php | 6 +++--- app/Template/column/remove.php | 2 +- app/Template/swimlane/edit.php | 6 +++--- app/Template/swimlane/index.php | 2 +- app/Template/swimlane/remove.php | 2 +- app/Template/swimlane/table.php | 4 ++-- 10 files changed, 17 insertions(+), 29 deletions(-) (limited to 'app') diff --git a/app/ServiceProvider/RouteProvider.php b/app/ServiceProvider/RouteProvider.php index 7064884e..b49be100 100644 --- a/app/ServiceProvider/RouteProvider.php +++ b/app/ServiceProvider/RouteProvider.php @@ -51,7 +51,7 @@ class RouteProvider implements ServiceProviderInterface $container['route']->addRoute('projects', 'project', 'index'); $container['route']->addRoute('project/:project_id', 'project', 'show'); $container['route']->addRoute('p/:project_id', 'project', 'show'); - $container['route']->addRoute('project/:project_id/customer-filter', 'customfilter', 'index'); + $container['route']->addRoute('project/:project_id/customer-filters', 'customfilter', 'index'); $container['route']->addRoute('project/:project_id/share', 'project', 'share'); $container['route']->addRoute('project/:project_id/notifications', 'project', 'notifications'); $container['route']->addRoute('project/:project_id/integrations', 'project', 'integrations'); @@ -77,27 +77,15 @@ class RouteProvider implements ServiceProviderInterface // Action routes $container['route']->addRoute('project/:project_id/actions', 'action', 'index'); - $container['route']->addRoute('project/:project_id/action/:action_id/confirm', 'action', 'confirm'); // Column routes $container['route']->addRoute('project/:project_id/columns', 'column', 'index'); - $container['route']->addRoute('project/:project_id/column/:column_id/edit', 'column', 'edit'); - $container['route']->addRoute('project/:project_id/column/:column_id/confirm', 'column', 'confirm'); - $container['route']->addRoute('project/:project_id/column/:column_id/move/:direction', 'column', 'move'); // Swimlane routes $container['route']->addRoute('project/:project_id/swimlanes', 'swimlane', 'index'); - $container['route']->addRoute('project/:project_id/swimlane/:swimlane_id/edit', 'swimlane', 'edit'); - $container['route']->addRoute('project/:project_id/swimlane/:swimlane_id/confirm', 'swimlane', 'confirm'); - $container['route']->addRoute('project/:project_id/swimlane/:swimlane_id/disable', 'swimlane', 'disable'); - $container['route']->addRoute('project/:project_id/swimlane/:swimlane_id/enable', 'swimlane', 'enable'); - $container['route']->addRoute('project/:project_id/swimlane/:swimlane_id/up', 'swimlane', 'moveup'); - $container['route']->addRoute('project/:project_id/swimlane/:swimlane_id/down', 'swimlane', 'movedown'); // Category routes $container['route']->addRoute('project/:project_id/categories', 'category', 'index'); - $container['route']->addRoute('project/:project_id/category/:category_id/edit', 'category', 'edit'); - $container['route']->addRoute('project/:project_id/category/:category_id/confirm', 'category', 'confirm'); // Task routes $container['route']->addRoute('project/:project_id/task/:task_id', 'task', 'show'); diff --git a/app/Template/action/index.php b/app/Template/action/index.php index c28c7a4b..66cfed77 100644 --- a/app/Template/action/index.php +++ b/app/Template/action/index.php @@ -53,7 +53,7 @@ - url->link(t('Remove'), 'action', 'confirm', array('project_id' => $project['id'], 'action_id' => $action['id'])) ?> + url->link(t('Remove'), 'action', 'confirm', array('project_id' => $project['id'], 'action_id' => $action['id']), false, 'popover') ?> diff --git a/app/Template/action/remove.php b/app/Template/action/remove.php index c8d4dfe4..070a7918 100644 --- a/app/Template/action/remove.php +++ b/app/Template/action/remove.php @@ -10,6 +10,6 @@
url->link(t('Yes'), 'action', 'remove', array('project_id' => $project['id'], 'action_id' => $action['id']), true, 'btn btn-red') ?> - url->link(t('cancel'), 'action', 'index', array('project_id' => $project['id'])) ?> + url->link(t('cancel'), 'action', 'index', array('project_id' => $project['id']), false, 'close-popover') ?>
\ No newline at end of file diff --git a/app/Template/column/edit.php b/app/Template/column/edit.php index a17affd8..618cb134 100644 --- a/app/Template/column/edit.php +++ b/app/Template/column/edit.php @@ -2,7 +2,7 @@

-
+ form->csrf() ?> @@ -37,8 +37,8 @@
url->doc(t('Write your text in Markdown'), 'syntax-guide') ?>
- + - url->link(t('cancel'), 'column', 'index', array('project_id' => $project['id'])) ?> + url->link(t('cancel'), 'column', 'index', array('project_id' => $project['id']), false, 'close-popover') ?>
\ No newline at end of file diff --git a/app/Template/column/index.php b/app/Template/column/index.php index 17651d46..85d46f26 100644 --- a/app/Template/column/index.php +++ b/app/Template/column/index.php @@ -29,7 +29,7 @@ @@ -87,6 +87,6 @@
url->doc(t('Write your text in Markdown'), 'syntax-guide') ?>
- +
\ No newline at end of file diff --git a/app/Template/column/remove.php b/app/Template/column/remove.php index 28d0928f..ccab889d 100644 --- a/app/Template/column/remove.php +++ b/app/Template/column/remove.php @@ -10,6 +10,6 @@
url->link(t('Yes'), 'column', 'remove', array('project_id' => $project['id'], 'column_id' => $column['id'], 'remove' => 'yes'), true, 'btn btn-red') ?> - url->link(t('cancel'), 'column', 'index', array('project_id' => $project['id'])) ?> + url->link(t('cancel'), 'column', 'index', array('project_id' => $project['id']), false, 'close-popover') ?>
\ No newline at end of file diff --git a/app/Template/swimlane/edit.php b/app/Template/swimlane/edit.php index dfc5cf0b..31d819d4 100644 --- a/app/Template/swimlane/edit.php +++ b/app/Template/swimlane/edit.php @@ -2,7 +2,7 @@

-
+ form->csrf() ?> @@ -34,8 +34,8 @@
url->doc(t('Write your text in Markdown'), 'syntax-guide') ?>
- + - url->link(t('cancel'), 'swimlane', 'index', array('project_id' => $project['id'])) ?> + url->link(t('cancel'), 'swimlane', 'index', array('project_id' => $project['id']), false, 'close-popover') ?>
\ No newline at end of file diff --git a/app/Template/swimlane/index.php b/app/Template/swimlane/index.php index 65751606..90100a98 100644 --- a/app/Template/swimlane/index.php +++ b/app/Template/swimlane/index.php @@ -66,6 +66,6 @@
url->doc(t('Write your text in Markdown'), 'syntax-guide') ?>
- +
diff --git a/app/Template/swimlane/remove.php b/app/Template/swimlane/remove.php index 1d7c2b7a..9be39ff8 100644 --- a/app/Template/swimlane/remove.php +++ b/app/Template/swimlane/remove.php @@ -11,7 +11,7 @@
url->link(t('Yes'), 'swimlane', 'remove', array('project_id' => $project['id'], 'swimlane_id' => $swimlane['id']), true, 'btn btn-red') ?> - url->link(t('cancel'), 'swimlane', 'index', array('project_id' => $project['id'])) ?> + url->link(t('cancel'), 'swimlane', 'index', array('project_id' => $project['id']), false, 'close-popover') ?>
\ No newline at end of file diff --git a/app/Template/swimlane/table.php b/app/Template/swimlane/table.php index 89915d56..60eea47b 100644 --- a/app/Template/swimlane/table.php +++ b/app/Template/swimlane/table.php @@ -27,7 +27,7 @@
  • - url->link(t('Edit'), 'swimlane', 'edit', array('project_id' => $project['id'], 'swimlane_id' => $swimlane['id'])) ?> + url->link(t('Edit'), 'swimlane', 'edit', array('project_id' => $project['id'], 'swimlane_id' => $swimlane['id']), false, 'popover') ?>
  • @@ -37,7 +37,7 @@
  • - url->link(t('Remove'), 'swimlane', 'confirm', array('project_id' => $project['id'], 'swimlane_id' => $swimlane['id'])) ?> + url->link(t('Remove'), 'swimlane', 'confirm', array('project_id' => $project['id'], 'swimlane_id' => $swimlane['id']), false, 'popover') ?>
  • -- cgit v1.2.3