better UI/UX
This commit is contained in:
@@ -27,7 +27,6 @@ public class UserInterceptor implements HandlerInterceptor {
|
|||||||
Authentication authentication = SecurityContextHolder.getContext().getAuthentication();
|
Authentication authentication = SecurityContextHolder.getContext().getAuthentication();
|
||||||
if (authentication != null && authentication.isAuthenticated() && !authentication.getName().equals("anonymousUser")) {
|
if (authentication != null && authentication.isAuthenticated() && !authentication.getName().equals("anonymousUser")) {
|
||||||
UserProfil user = this.userService.utilisateurByName(authentication.getName());
|
UserProfil user = this.userService.utilisateurByName(authentication.getName());
|
||||||
System.out.println(user);
|
|
||||||
modelAndView.getModelMap().addAttribute("user", user.getCredit());
|
modelAndView.getModelMap().addAttribute("user", user.getCredit());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,7 +2,7 @@ accueil.search.title = Rechercher un article par nom...
|
|||||||
accueil.search.cat = Toutes les cat\u00e9gories
|
accueil.search.cat = Toutes les cat\u00e9gories
|
||||||
accueil.search.button = Recherche
|
accueil.search.button = Recherche
|
||||||
|
|
||||||
profil.title = Mon profil
|
profil.title = Mon profile
|
||||||
profil.button = Modifier
|
profil.button = Modifier
|
||||||
profil.pseudo = Pseudo:
|
profil.pseudo = Pseudo:
|
||||||
profil.surname = Pr\u00e9nom:
|
profil.surname = Pr\u00e9nom:
|
||||||
@@ -17,8 +17,9 @@ profil.credit = Cr\u00e9dits:
|
|||||||
edit.profil.currentpassword = Mot de passe actuel:
|
edit.profil.currentpassword = Mot de passe actuel:
|
||||||
edit.profil.newpassword = Nouveau mot de passe:
|
edit.profil.newpassword = Nouveau mot de passe:
|
||||||
edit.profil.confirmnewpassword = Confirmation du nouveau mot de passe:
|
edit.profil.confirmnewpassword = Confirmation du nouveau mot de passe:
|
||||||
edit.profil.title = Modifier mon profil
|
edit.profil.title = Modifier mon profile
|
||||||
edit.profil.button.edit = Enregistrer les modifications
|
edit.profil.button.edit = Enregistrer les modifications
|
||||||
|
edit.profil.button.cancel = Annuler les modifications
|
||||||
edit.profil.button.del = Supprimer mon compte
|
edit.profil.button.del = Supprimer mon compte
|
||||||
|
|
||||||
login.title = Pour se Connecter :
|
login.title = Pour se Connecter :
|
||||||
@@ -29,7 +30,7 @@ login.forgotpassword = Mot de passe oubli\u00e9
|
|||||||
login.connection = Connexion
|
login.connection = Connexion
|
||||||
login.makecompte = Cr\u00e9er un compte
|
login.makecompte = Cr\u00e9er un compte
|
||||||
|
|
||||||
register.title = Mon profil
|
register.title = Mon profile
|
||||||
register.button = Modifier
|
register.button = Modifier
|
||||||
register.pseudo = Pseudo:
|
register.pseudo = Pseudo:
|
||||||
register.surname = Pr\u00e9nom:
|
register.surname = Pr\u00e9nom:
|
||||||
|
|||||||
@@ -110,7 +110,10 @@
|
|||||||
<span th:text="#{profil.credit}"></span> <span th:text="${userProfile.credit}"></span>
|
<span th:text="#{profil.credit}"></span> <span th:text="${userProfile.credit}"></span>
|
||||||
</div>
|
</div>
|
||||||
<input type="hidden" th:field="*{id}" id="userId" th:value="${userProfile.id}">
|
<input type="hidden" th:field="*{id}" id="userId" th:value="${userProfile.id}">
|
||||||
<button type="submit" class="btn btn-primary" th:text="#{edit.profil.button.edit}"></button>
|
<div class="d-flex justify-content-end align-items-center">
|
||||||
|
<a class="btn btn-secondary" href="/accueil" th:text="#{edit.profil.button.cancel}"></a>
|
||||||
|
<button type="submit" class="btn btn-primary ml-2" th:text="#{edit.profil.button.edit}"></button>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
|
|||||||
Reference in New Issue
Block a user