behaviour of /search path

add exception catching and message
create tests

refs #223 refs #377
This commit is contained in:
2015-01-04 00:13:00 +01:00
parent eea91de0e0
commit a6e118f37d
8 changed files with 223 additions and 7 deletions

View File

@@ -30,7 +30,7 @@ chill_main_admin_central:
icons: [gears]
chill_main_search:
pattern: /{_locale}/person/search
pattern: /{_locale}/search
defaults: { _controller: ChillMainBundle:Search:search }
login:

View File

@@ -8,4 +8,10 @@ Invalid CSRF token.: Votre session a expirée ou est devenue invalide.
Username: Nom d'utilisateur
Password: Mot de passe
Welcome to %installation_name%: Bienvenue à %installation_name%
Login to %installation_name%: Connexion à %installation_name%
Login to %installation_name%: Connexion à %installation_name%
#serach
Your search is empty. Please provide search terms.: La recherche est vide. Merci de fournir des termes de recherche.
The domain %domain% is unknow. Please check your search.: Le domaine de recherche "%domain%" est inconnu. Merci de vérifier votre recherche.
Invalid terms : Recherche invalide
You should not have more than one domain. : Vous ne devriez pas avoir plus d'un domaine de recherche.

View File

@@ -0,0 +1,23 @@
{#
* Copyright (C) 2014, Champs Libres Cooperative SCRLFS, <http://www.champs-libres.coop>
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
#}
{% extends "ChillMainBundle::layout.html.twig" %}
{% block content %}
<p>{{ message }}</p>
{% endblock %}