Quellcode durchsuchen

Evolution #595: Pages d'erreurs

Sevajol Bastien vor 12 Jahren
Ursprung
Commit
f1e5752c94

+ 12 - 0
app/Resources/TwigBundle/views/Exception/error.html.twig Datei anzeigen

@@ -0,0 +1,12 @@
1
+{% extends "JSPCoreBundle::layout_error.html.twig" %}
2
+
3
+{% block title %}{{ 'error_page.error.title'|trans({}, 'navigationui') }}{% endblock %}
4
+{% block mainbox_classes %}mainbox_padding{% endblock %}
5
+
6
+{% block main_content %}
7
+  
8
+  <h1>{{ 'error_page.error.title'|trans({}, 'navigationui') }}</h1>
9
+  
10
+  <p>{{ 'error_page.error.text'|trans({}, 'navigationui') }}</p>
11
+  
12
+{% endblock %}

+ 12 - 0
app/Resources/TwigBundle/views/Exception/error403.html.twig Datei anzeigen

@@ -0,0 +1,12 @@
1
+{% extends "JSPCoreBundle::layout_error.html.twig" %}
2
+
3
+{% block title %}{{ 'error_page.forbidden.title'|trans({}, 'navigationui') }}{% endblock %}
4
+{% block mainbox_classes %}mainbox_padding{% endblock %}
5
+
6
+{% block main_content %}
7
+  
8
+  <h1>{{ 'error_page.forbidden.title'|trans({}, 'navigationui') }}</h1>
9
+  
10
+  <p>{{ 'error_page.forbidden.text'|trans({}, 'navigationui') }}</p>
11
+  
12
+{% endblock %}

+ 12 - 0
app/Resources/TwigBundle/views/Exception/error404.html.twig Datei anzeigen

@@ -0,0 +1,12 @@
1
+{% extends "JSPCoreBundle::layout_error.html.twig" %}
2
+
3
+{% block title %}{{ 'error_page.notfound.title'|trans({}, 'navigationui') }}{% endblock %}
4
+{% block mainbox_classes %}mainbox_padding{% endblock %}
5
+
6
+{% block main_content %}
7
+  
8
+  <h1>{{ 'error_page.notfound.title'|trans({}, 'navigationui') }}</h1>
9
+  
10
+  <p>{{ 'error_page.notfound.text'|trans({}, 'navigationui') }}</p>
11
+  
12
+{% endblock %}

+ 12 - 1
app/Resources/translations/navigationui.fr.yml Datei anzeigen

@@ -49,4 +49,15 @@ bottom_menu:
49 49
   about:                A propos
50 50
   development:          Version en développement
51 51
   sites:                Sites supportés
52
-  cgu:                  CGU
52
+  cgu:                  CGU
53
+  
54
+error_page:
55
+  notfound:
56
+    title:              Ressource introuvable
57
+    text:               La ressource ou page que vous demandez est introuvable
58
+  forbidden:
59
+    title:              Accès refusé
60
+    text:               L'accès a cette page vous a été refusé
61
+  error:
62
+    title:              Erreur
63
+    text:               Une erreur est survenue. Notre équipe technique en a été avertis et tantera de procéder a sa correction.