mirror of
https://github.com/kmitresse/Cards-Rush.git
synced 2026-05-13 17:11:49 +00:00
feat(DevWeb): Create error layout for error pages
This commit is contained in:
@@ -3,22 +3,9 @@
|
||||
<%@taglib prefix="component" tagdir="/WEB-INF/tags/components" %>
|
||||
<%@taglib prefix="form" tagdir="/WEB-INF/tags/forms" %>
|
||||
|
||||
<layout:base>
|
||||
<jsp:attribute name="title">Cards Rush - Erreur</jsp:attribute>
|
||||
<layout:error>
|
||||
<jsp:attribute name="message">Token expiré</jsp:attribute>
|
||||
<jsp:body>
|
||||
<div class="hero is-primary is-fullheight-with-navbar">
|
||||
<div class="hero-body">
|
||||
<div class="container">
|
||||
<div class="columns is-centered">
|
||||
<div class="column is-5-tablet is-5-desktop is-5-widescreen">
|
||||
<div class="box">
|
||||
<h1 class="title has-text-centered">Token expiré</h1>
|
||||
<a href="login" class="button is-primary is-fullwidth has-text-white">Retour à la page de connexion</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<a href="login" class="button is-primary is-fullwidth has-text-white">Retour à la page de connexion</a>
|
||||
</jsp:body>
|
||||
</layout:base>
|
||||
</layout:error>
|
||||
|
||||
@@ -2,22 +2,9 @@
|
||||
<%@taglib prefix="layout" tagdir="/WEB-INF/tags/layouts" %>
|
||||
<%@taglib prefix="form" tagdir="/WEB-INF/tags/forms" %>
|
||||
|
||||
<layout:base>
|
||||
<jsp:attribute name="title">Cards Rush - Erreur</jsp:attribute>
|
||||
<layout:error>
|
||||
<jsp:attribute name="message">Token invalide</jsp:attribute>
|
||||
<jsp:body>
|
||||
<div class="hero is-primary is-fullheight-with-navbar">
|
||||
<div class="hero-body">
|
||||
<div class="container">
|
||||
<div class="columns is-centered">
|
||||
<div class="column is-5-tablet is-5-desktop is-5-widescreen">
|
||||
<div class="box">
|
||||
<h1 class="title has-text-centered">Token invalide</h1>
|
||||
<a href="login" class="button is-primary is-fullwidth has-text-white">Retour à la page de connexion</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<a href="login" class="button is-primary is-fullwidth has-text-white">Retour à la page de connexion</a>
|
||||
</jsp:body>
|
||||
</layout:base>
|
||||
</layout:error>
|
||||
@@ -0,0 +1,28 @@
|
||||
<%@tag description="layout/error" pageEncoding="UTF-8" %>
|
||||
<%@taglib prefix="layout" tagdir="/WEB-INF/tags/layouts" %>
|
||||
<%@taglib prefix="component" tagdir="/WEB-INF/tags/components" %>
|
||||
<%@taglib prefix="form" tagdir="/WEB-INF/tags/forms" %>
|
||||
|
||||
<%@attribute name="message" fragment="true" %>
|
||||
|
||||
<layout:base>
|
||||
<jsp:attribute name="title">Cards Rush - Erreur</jsp:attribute>
|
||||
<jsp:body>
|
||||
<div class="hero is-primary is-fullheight-with-navbar">
|
||||
<div class="hero-body">
|
||||
<div class="container">
|
||||
<div class="columns is-centered">
|
||||
<div class="column is-5-tablet is-5-desktop is-5-widescreen">
|
||||
<div class="box">
|
||||
<h1 class="title has-text-centered">
|
||||
<jsp:invoke fragment="message"/>
|
||||
</h1>
|
||||
<jsp:doBody/>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</jsp:body>
|
||||
</layout:base>
|
||||
Reference in New Issue
Block a user