Author: alevkovsky
Date: 2009-03-20 11:37:53 -0400 (Fri, 20 Mar 2009)
New Revision: 13061
Modified:
trunk/test-applications/realworld2/web/src/main/java/org/richfaces/realworld/manager/Controller.java
trunk/test-applications/realworld2/web/src/main/webapp/includes/userPrefs/userPrefs.xhtml
trunk/test-applications/realworld2/web/src/main/webapp/stylesheet/realworld.css
Log:
Realworld: redesign of User pref page
Modified:
trunk/test-applications/realworld2/web/src/main/java/org/richfaces/realworld/manager/Controller.java
===================================================================
---
trunk/test-applications/realworld2/web/src/main/java/org/richfaces/realworld/manager/Controller.java 2009-03-20
14:39:49 UTC (rev 13060)
+++
trunk/test-applications/realworld2/web/src/main/java/org/richfaces/realworld/manager/Controller.java 2009-03-20
15:37:53 UTC (rev 13061)
@@ -203,4 +203,14 @@
private void pushEvent(String type, Object... parameters) {
Events.instance().raiseEvent(type, parameters);
}
+
+ public boolean isProfileEditable(User selectedUser){
+ if(selectedUser == null){
+ return false;
+ }
+ if(selectedUser == user){
+ return true;
+ }
+ return false;
+ }
}
\ No newline at end of file
Modified:
trunk/test-applications/realworld2/web/src/main/webapp/includes/userPrefs/userPrefs.xhtml
===================================================================
(Binary files differ)
Modified: trunk/test-applications/realworld2/web/src/main/webapp/stylesheet/realworld.css
===================================================================
---
trunk/test-applications/realworld2/web/src/main/webapp/stylesheet/realworld.css 2009-03-20
14:39:49 UTC (rev 13060)
+++
trunk/test-applications/realworld2/web/src/main/webapp/stylesheet/realworld.css 2009-03-20
15:37:53 UTC (rev 13061)
@@ -850,4 +850,26 @@
vertical-align: middle;
background: white;
border: 1px solid #909090;
+}
+
+.reg-table{
+ padding : 0px 10px 10px 0px;
+}
+
+.reg-table-col1{
+ vertical-align : top;
+}
+.reg-table-col3{
+ vertical-align : top;
+}
+.reg-table-input{
+ border : 1px solid #909090;
+ height : 19px;
+ width : 155px
+}
+.reg-table-output{
+ height : 19px;
+ width : 155px;
+ padding: 5px;
+ font-weight: bold;
}
\ No newline at end of file