adding if statement to supervisorprofilepage
This commit is contained in:
parent
e1a8bb09cf
commit
44b25c139e
@ -20,6 +20,12 @@ public class SupervisorProfilePage extends AbstractSupervisorPage {
|
|||||||
public SupervisorProfilePage(final PageParameters pp){
|
public SupervisorProfilePage(final PageParameters pp){
|
||||||
super(pp);
|
super(pp);
|
||||||
//add(factory.createUserProfilePanelForUser("supervisorProfile",getUser()));
|
//add(factory.createUserProfilePanelForUser("supervisorProfile",getUser()));
|
||||||
add(new ProfilePanel("supervisorProfile", new Model<Employee>(supervisorDao.getFrom(getUser()))));
|
if (supervisorDao.getFrom(e)){
|
||||||
|
|
||||||
|
}get
|
||||||
|
else {
|
||||||
|
|
||||||
|
}
|
||||||
|
add(new ProfilePanel("supervisorProfile", new Model<Employee>(supervisorDao.getFrom(getUser()))));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user