From 195fae86d663c81cc3faa7653d1b7fe8cd6a27ce Mon Sep 17 00:00:00 2001 From: Frederic Guillot Date: Mon, 8 Aug 2016 21:54:45 -0400 Subject: Make filter box and project header more responsive --- app/Template/dashboard/show.php | 9 +++- app/Template/project_header/header.php | 26 +++++++----- app/Template/project_header/search.php | 77 +++++++++++++++++++--------------- app/Template/search/activity.php | 9 +++- app/Template/search/index.php | 9 +++- 5 files changed, 81 insertions(+), 49 deletions(-) (limited to 'app') diff --git a/app/Template/dashboard/show.php b/app/Template/dashboard/show.php index 637b60f8..cb18b79d 100644 --- a/app/Template/dashboard/show.php +++ b/app/Template/dashboard/show.php @@ -2,8 +2,13 @@ diff --git a/app/Template/project_header/header.php b/app/Template/project_header/header.php index aaa8137b..6c91e38b 100644 --- a/app/Template/project_header/header.php +++ b/app/Template/project_header/header.php @@ -1,15 +1,21 @@
hook->render('template:project:header:before', array('project' => $project)) ?> - render('project_header/dropdown', array('project' => $project, 'board_view' => $board_view)) ?> - render('project_header/views', array('project' => $project, 'filters' => $filters)) ?> - render('project_header/search', array( - 'project' => $project, - 'filters' => $filters, - 'custom_filters_list' => isset($custom_filters_list) ? $custom_filters_list : array(), - 'users_list' => isset($users_list) ? $users_list : array(), - 'categories_list' => isset($categories_list) ? $categories_list : array(), - )) ?> + +
+ render('project_header/views', array('project' => $project, 'filters' => $filters)) ?> +
+
+ render('project_header/search', array( + 'project' => $project, + 'filters' => $filters, + 'custom_filters_list' => isset($custom_filters_list) ? $custom_filters_list : array(), + 'users_list' => isset($users_list) ? $users_list : array(), + 'categories_list' => isset($categories_list) ? $categories_list : array(), + )) ?> +
hook->render('template:project:header:after', array('project' => $project)) ?> -
\ No newline at end of file + diff --git a/app/Template/project_header/search.php b/app/Template/project_header/search.php index 8885d9c9..512e88d7 100644 --- a/app/Template/project_header/search.php +++ b/app/Template/project_header/search.php @@ -3,43 +3,54 @@ form->hidden('controller', $filters) ?> form->hidden('action', $filters) ?> form->hidden('project_id', $filters) ?> - form->text('search', $filters, array(), array('placeholder="'.t('Filter').'"')) ?> - render('app/filters_helper', array('reset' => 'status:open', 'project' => $project)) ?> +
+ form->text('search', $filters, array(), array('placeholder="'.t('Filter').'"'), 'input-addon-field') ?> +
+ render('app/filters_helper', array('reset' => 'status:open', 'project' => $project)) ?> +
- - - + + + - - - + +
+ +
+ - - - +
diff --git a/app/Template/search/activity.php b/app/Template/search/activity.php index 9abc7d7e..1dfd9234 100644 --- a/app/Template/search/activity.php +++ b/app/Template/search/activity.php @@ -12,8 +12,13 @@ diff --git a/app/Template/search/index.php b/app/Template/search/index.php index bc528af7..c59a5c99 100644 --- a/app/Template/search/index.php +++ b/app/Template/search/index.php @@ -12,8 +12,13 @@ -- cgit v1.2.3