1- <!--
2- Copyright (C) 2015 Arthur Gregorio, AG.Software
3-
4- This program is free software: you can redistribute it and/or modify
5- it under the terms of the GNU General Public License as published by
6- the Free Software Foundation, either version 3 of the License, or
7- (at your option) any later version.
8-
9- This program is distributed in the hope that it will be useful,
10- but WITHOUT ANY WARRANTY; without even the implied warranty of
11- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12- GNU General Public License for more details.
13-
14- You should have received a copy of the GNU General Public License
15- along with this program. If not, see <http://www.gnu.org/licenses/>.
16- -->
17-
18- < ui:composition xmlns ="http://www.w3.org/1999/xhtml "
19- xmlns:p ="http://primefaces.org/ui "
20- xmlns:h ="http://xmlns.jcp.org/jsf/html "
21- xmlns:f ="http://xmlns.jcp.org/jsf/core "
22- xmlns:ui ="http://xmlns.jcp.org/jsf/facelets "
23- template ="/template/mainTemplate.xhtml ">
24-
25- < f:metadata >
26- < f:viewAction action ="#{userBean.initializePreferences()} "/>
27- </ f:metadata >
28-
29- < ui:define name ="breadcrumb ">
30- < p:menuitem url ="# "
31- value ="#{breadcrumb['preferences']} " />
32- </ ui:define >
33-
34- < ui:define name ="content ">
35-
36- < h:form id ="userAccountForm " prependId ="false ">
37- < div class ="ui-grid-row ">
38- < div class ="ui-grid-col-12 ">
39- < p:messages id ="messages " closable ="true " />
40- </ div >
41- </ div >
42- < div class ="ui-grid-row flat-box ">
43- < div class ="ui-grid-col-6 ">
44- < div class ="ui-grid-row ">
45- < div class ="ui-grid-col-12 form-group form-group-l ">
46- < p:outputLabel for ="inName "
47- value ="#{messages['user-account.form.name']}: "/>
48- < p:inputText id ="inName "
49- size ="50 "
50- value ="#{userBean.user.name} " />
51- </ div >
52- </ div >
53- < div class ="ui-grid-row ">
54- < div class ="ui-grid-col-12 form-group form-group-l ">
55- < p:outputLabel for ="inEmail "
56- value ="#{messages['user-account.form.email']}: "/>
57- < p:inputText id ="inEmail "
58- size ="50 "
59- value ="#{userBean.user.email} "/>
60- </ div >
61- </ div >
62- < div class ="ui-grid-row div-pd-tb-10 ">
63- < div class ="ui-grid-col-12 form-header ">
64- < h:outputText value ="#{messages['user-account.form.change-password']}: "/>
65- </ div >
66- </ div >
67- < div class ="ui-grid-row ">
68- < div class ="ui-grid-col-12 form-group form-group-l ">
69- < p:outputLabel for ="inNewPassword "
70- value ="#{messages['user-account.form.new-password']}: "/>
71- < p:password id ="inNewPassword "
72- match ="inConfirmPassword "
73- value ="#{userBean.user.unsecurePassword} "/>
74- </ div >
75- </ div >
76- < div class ="ui-grid-row ">
77- < div class ="ui-grid-col-12 form-group form-group-l ">
78- < p:outputLabel for ="inConfirmPassword "
79- value ="#{messages['user-account.form.confirm-password']}: "/>
80- < p:password id ="inConfirmPassword "
81- value ="#{userBean.user.unsecurePasswordConfirmation} "/>
82- </ div >
83- </ div >
84- </ div >
85- < div class ="ui-grid-col-6 ">
86-
87- </ div >
88- </ div >
89- < div class ="ui-grid-row flat-box ">
90- < div class ="ui-grid-col-6 ">
91-
92- </ div >
93- < div class ="ui-grid-col-6 form-controls-box ">
94- < p:commandButton immediate ="true "
95- value ="#{menu['back']} "
96- action ="#{userBean.toDashboard()} "/>
97- < p:spacer width ="10 "/>
98- < p:commandButton value ="#{menu['save']} "
99- update ="userAccountForm "
100- process ="userAccountForm "
101- styleClass ="ui-button-success "
102- action ="#{userBean.doPasswordUpdate()} "/>
103- </ div >
104- </ div >
105- </ h:form >
106- </ ui:define >
1+ <!--
2+ Copyright (C) 2015 Arthur Gregorio, AG.Software
3+
4+ This program is free software: you can redistribute it and/or modify
5+ it under the terms of the GNU General Public License as published by
6+ the Free Software Foundation, either version 3 of the License, or
7+ (at your option) any later version.
8+
9+ This program is distributed in the hope that it will be useful,
10+ but WITHOUT ANY WARRANTY; without even the implied warranty of
11+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12+ GNU General Public License for more details.
13+
14+ You should have received a copy of the GNU General Public License
15+ along with this program. If not, see <http://www.gnu.org/licenses/>.
16+ -->
17+
18+ < ui:composition xmlns ="http://www.w3.org/1999/xhtml "
19+ xmlns:p ="http://primefaces.org/ui "
20+ xmlns:h ="http://xmlns.jcp.org/jsf/html "
21+ xmlns:f ="http://xmlns.jcp.org/jsf/core "
22+ xmlns:ui ="http://xmlns.jcp.org/jsf/facelets "
23+ template ="/template/mainTemplate.xhtml ">
24+
25+ < f:metadata >
26+ < f:viewAction action ="#{userBean.initializeProfile()} "/>
27+ </ f:metadata >
28+
29+ < ui:define name ="breadcrumb ">
30+ < p:menuitem url ="# "
31+ value ="#{breadcrumb['preferences']} " />
32+ </ ui:define >
33+
34+ < ui:define name ="content ">
35+
36+ < h:form id ="profileForm " prependId ="false ">
37+ < div class ="ui-grid-row ">
38+ < div class ="ui-grid-col-12 ">
39+ < p:messages id ="messages " closable ="true " />
40+ </ div >
41+ </ div >
42+ < div class ="ui-grid-row flat-box ">
43+ < div class ="ui-grid-col-6 ">
44+ < div class ="ui-grid-row ">
45+ < div class ="ui-grid-col-12 form-group form-group-l ">
46+ < p:outputLabel for ="inName "
47+ value ="#{messages['user.form.name']}: "/>
48+ < p:inputText id ="inName "
49+ size ="50 "
50+ value ="#{userBean.user.name} " />
51+ </ div >
52+ </ div >
53+ < div class ="ui-grid-row ">
54+ < div class ="ui-grid-col-12 form-group form-group-l ">
55+ < p:outputLabel for ="inEmail "
56+ value ="#{messages['user.form.email']}: "/>
57+ < p:inputText id ="inEmail "
58+ size ="50 "
59+ value ="#{userBean.user.email} "/>
60+ </ div >
61+ </ div >
62+ < div class ="ui-grid-row div-pd-tb-10 ">
63+ < div class ="ui-grid-col-12 form-header ">
64+ < h:outputText value ="#{messages['user.form.change-password']}: "/>
65+ </ div >
66+ </ div >
67+ < div class ="ui-grid-row ">
68+ < div class ="ui-grid-col-12 form-group form-group-l ">
69+ < p:outputLabel for ="inPassword "
70+ value ="#{messages['user.form.password']} "/>
71+ < p:password id ="inPassword "
72+ match ="inConfirmPassword "
73+ value ="#{userBean.user.password} "
74+ validatorMessage ="#{validation['user.password-not-match']} "/>
75+ </ div >
76+ </ div >
77+ < div class ="ui-grid-row ">
78+ < div class ="ui-grid-col-12 form-group form-group-l ">
79+ < p:outputLabel for ="inConfirmPassword "
80+ value ="#{messages['user.form.confirm-password']} "/>
81+ < p:password id ="inConfirmPassword "
82+ value ="#{userBean.user.passwordConfirmation} "/>
83+ </ div >
84+ </ div >
85+ </ div >
86+ < div class ="ui-grid-col-6 ">
87+
88+ </ div >
89+ </ div >
90+ < div class ="ui-grid-row flat-box ">
91+ < div class ="ui-grid-col-6 ">
92+
93+ </ div >
94+ < div class ="ui-grid-col-6 form-controls-box ">
95+ < p:commandButton immediate ="true "
96+ value ="#{menu['back']} "
97+ action ="#{userBean.toDashboard()} "/>
98+ < p:spacer width ="10 "/>
99+ < p:commandButton update ="profileForm "
100+ process ="profileForm "
101+ value ="#{menu['save']} "
102+ styleClass ="ui-button-success "
103+ action ="#{userBean.doProfileUpdate()} "/>
104+ </ div >
105+ </ div >
106+ </ h:form >
107+ </ ui:define >
107108</ ui:composition >
0 commit comments