mirror of
https://github.com/kmitresse/Cards-Rush.git
synced 2026-07-09 13:27:45 +00:00
feat: devweb - Make translations on profile page and error management
This commit is contained in:
@@ -1,10 +1,12 @@
|
||||
<%@ page import="uppa.project.web.translation.Translator" %>
|
||||
<%@ page contentType="text/html; charset=UTF-8" 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" %>
|
||||
<% Translator translator = (Translator) request.getSession().getAttribute("translator"); %>
|
||||
|
||||
<layout:base title="Profil">
|
||||
<layout:base title="${translator.translate('profile_title')}">
|
||||
<jsp:attribute name="head">
|
||||
<link rel="stylesheet" href="${pageContext.request.contextPath}/static/css/form.css"/>
|
||||
<script defer type="module" src="${pageContext.request.contextPath}/static/js/form/profile.js"></script>
|
||||
@@ -13,7 +15,7 @@
|
||||
<component:hero>
|
||||
<div class="columns is-centered">
|
||||
<div class="column is-5-tablet is-5-desktop is-5-widescreen">
|
||||
<component:card title="Profil">
|
||||
<component:card title="${translator.translate('profile_title')}">
|
||||
<fieldset>
|
||||
<form:profile/>
|
||||
</fieldset>
|
||||
@@ -22,7 +24,7 @@
|
||||
</div>
|
||||
|
||||
<div class="column is-5-tablet is-5-desktop is-5-widescreen">
|
||||
<component:card title="Statistiques">
|
||||
<component:card title="${translator.translate('statistics_title')}">
|
||||
<component:statistics/>
|
||||
</component:card>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user