From e6d10c0b03a91c7338e802b1b176645cce7b42e5 Mon Sep 17 00:00:00 2001 From: Nicolas Michard Date: Wed, 30 Jan 2008 16:36:09 +0000 Subject: [PATCH] Menu dynamic suivant les roles. next : liens --- .../WEB-INF/classes/messages.properties | 8 ++ .../WEB-INF/decorators/usermenu.jsp | 76 ++++++++++++++++--- YACOSWeb/WebContent/WEB-INF/jsp/login.jsp | 2 +- YACOSWeb/WebContent/WEB-INF/users.properties | 2 +- 4 files changed, 74 insertions(+), 14 deletions(-) diff --git a/YACOSWeb/WebContent/WEB-INF/classes/messages.properties b/YACOSWeb/WebContent/WEB-INF/classes/messages.properties index 0284195..8c11f38 100644 --- a/YACOSWeb/WebContent/WEB-INF/classes/messages.properties +++ b/YACOSWeb/WebContent/WEB-INF/classes/messages.properties @@ -11,6 +11,14 @@ login.btn.submit=Submit login.btn.logout=Logout login.field.login=Login +################### +# USER MENU +menu.chairman.title=Chairman +menu.pcmember.title=PC Member +menu.referee.title=Referee +menu.author.title=Author +menu.anonymous.title=Menu + ################### # REGISTRATION USER register.title=User Registration diff --git a/YACOSWeb/WebContent/WEB-INF/decorators/usermenu.jsp b/YACOSWeb/WebContent/WEB-INF/decorators/usermenu.jsp index 74e1d35..367518b 100644 --- a/YACOSWeb/WebContent/WEB-INF/decorators/usermenu.jsp +++ b/YACOSWeb/WebContent/WEB-INF/decorators/usermenu.jsp @@ -4,8 +4,11 @@ + + diff --git a/YACOSWeb/WebContent/WEB-INF/jsp/login.jsp b/YACOSWeb/WebContent/WEB-INF/jsp/login.jsp index acdd52a..d990ee8 100644 --- a/YACOSWeb/WebContent/WEB-INF/jsp/login.jsp +++ b/YACOSWeb/WebContent/WEB-INF/jsp/login.jsp @@ -7,7 +7,7 @@
Connexion : - +
diff --git a/YACOSWeb/WebContent/WEB-INF/users.properties b/YACOSWeb/WebContent/WEB-INF/users.properties index 6a8a35a..cfe19b6 100644 --- a/YACOSWeb/WebContent/WEB-INF/users.properties +++ b/YACOSWeb/WebContent/WEB-INF/users.properties @@ -1,3 +1,3 @@ -maxime=maxime,ROLE_AUTHOR +maxime=maxime,ROLE_AUTHOR,ROLE_PCMEMBER,ROLE_CHAIRMAN,ROLE_REFEREE fred=fred,ROLE_MEMBER jialin=jialin,ROLE_ADMIN \ No newline at end of file