V-Beta-1.0.0
Vision is out of alpha !
This commit is contained in:
30
templates/bundles/TwigBundle/Exception/error.html.twig
Normal file
30
templates/bundles/TwigBundle/Exception/error.html.twig
Normal file
@@ -0,0 +1,30 @@
|
||||
{% extends 'base.html.twig' %}
|
||||
{% block title %}{% trans %}title_errorpage_error{% endtrans %}{% endblock %}
|
||||
|
||||
{% block error %}
|
||||
<p>{{ 'title_errorpage_error_message' |trans}}</p>
|
||||
{% endblock %}
|
||||
|
||||
{% block youcan %}
|
||||
{% set referer = app.request.server.get('HTTP_REFERER')|default(null) %}
|
||||
<div class="row">
|
||||
<div class="col">
|
||||
<hr>
|
||||
<p class="text-left">{% trans %}you_can{% endtrans %}</p>
|
||||
<ul class="text-left">
|
||||
{% if referer is not null %}<li><a href="{{ referer }}">{% trans %}go_back_to_referer{% endtrans %}</a></li>{% endif %}
|
||||
<li><a href="{{ path('home') }}">{% trans %}go_back_to_home{% endtrans %}</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
{% endblock %}
|
||||
|
||||
{% block body %}
|
||||
<div class="row">
|
||||
<div class="col">
|
||||
{{ block('error') }}
|
||||
</div>
|
||||
</div>
|
||||
{{ block('youcan') }}
|
||||
{% endblock %}
|
||||
|
||||
15
templates/bundles/TwigBundle/Exception/error403.html.twig
Normal file
15
templates/bundles/TwigBundle/Exception/error403.html.twig
Normal file
@@ -0,0 +1,15 @@
|
||||
{% extends 'bundles/TwigBundle/Exception/error.html.twig' %}
|
||||
|
||||
{% block title %}{% trans %}title_errorpage_403{% endtrans %}{% endblock %}
|
||||
|
||||
{% block body %}
|
||||
<!-- [ 403 ] start -->
|
||||
<div class="row">
|
||||
<div class="col">
|
||||
<h4 class="mb-3 f-w-400 text-center"><p>{{ 'title_errorpage_403_message' |trans}}</p></h4>
|
||||
{{ block('youcan') }}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- [ 403 ] end -->
|
||||
{% endblock %}
|
||||
23
templates/bundles/TwigBundle/Exception/error404.html.twig
Normal file
23
templates/bundles/TwigBundle/Exception/error404.html.twig
Normal file
@@ -0,0 +1,23 @@
|
||||
{% extends 'bundles/TwigBundle/Exception/error.html.twig' %}
|
||||
|
||||
{% block title %}{% trans %}title_errorpage_404{% endtrans %}{% endblock %}
|
||||
|
||||
{% block body %}
|
||||
<!-- [ 404 ] start -->
|
||||
<div class="auth-wrapper">
|
||||
<div class="auth-content">
|
||||
<div class="card">
|
||||
<div class="row align-items-center">
|
||||
<div class="col-md-12">
|
||||
<div class="card-body">
|
||||
<img src="{{ asset('img/logo.png') }}" alt="Vision" class="img-fluid mb-4">
|
||||
<h4 class="mb-3 f-w-400 text-center"><p>{{ 'title_errorpage_404_message' |trans}}</p></h4>
|
||||
{{ block('youcan') }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- [ 404 ] end -->
|
||||
{% endblock %}
|
||||
Reference in New Issue
Block a user