mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-27 01:53:49 +00:00
advanced search (bis)
Ce commit contient des modifications qui sont peut-être dans un autre commit d'une autre branche.
This commit is contained in:
@@ -42,4 +42,11 @@ class AdminController extends Controller {
|
||||
return $this->render('ChillMainBundle:Admin:layout_permissions.html.twig');
|
||||
}
|
||||
|
||||
public function configurationWarningsAction()
|
||||
{
|
||||
$alertManager = $this->get('chill_main.configuration_alert_manager');
|
||||
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
@@ -106,6 +106,24 @@ class SearchController extends Controller
|
||||
);
|
||||
}
|
||||
|
||||
public function advancedSearchListAction(Request $request)
|
||||
{
|
||||
/* @var $variable Chill\MainBundle\Search\SearchProvider */
|
||||
$searchProvider = $this->get('chill.main.search_provider');
|
||||
$advancedSearchProviders = $searchProvider
|
||||
->getHasAdvancedFormSearchServices();
|
||||
|
||||
if(\count($advancedSearchProviders) === 1) {
|
||||
\reset($advancedSearchProviders);
|
||||
|
||||
return $this->redirectToRoute('chill_main_advanced_search', [
|
||||
'name' => \key($advancedSearchProviders)
|
||||
]);
|
||||
}
|
||||
|
||||
return $this->render('ChillMainBundle:Search:choose_list.html.twig');
|
||||
}
|
||||
|
||||
public function advancedSearchAction($name, Request $request)
|
||||
{
|
||||
try {
|
||||
@@ -144,7 +162,8 @@ class SearchController extends Controller
|
||||
return $this->render('ChillMainBundle:Search:advanced_search.html.twig',
|
||||
[
|
||||
'form' => $form->createView(),
|
||||
'name' => $name
|
||||
'name' => $name,
|
||||
'title' => $search->getAdvancedSearchTitle()
|
||||
]);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user