IDEMPIERE-354 Implement 'Select Role' checkbox on first login screen to skip second login screen / change the order of "Remember me" and "Select Role"
This commit is contained in:
parent
749d4c2f1b
commit
4b8a9e556a
|
@ -188,6 +188,18 @@ public class LoginPanel extends Window implements EventListener
|
||||||
tr.appendChild(td);
|
tr.appendChild(td);
|
||||||
td.appendChild(lstLanguage);
|
td.appendChild(lstLanguage);
|
||||||
|
|
||||||
|
tr = new Tr();
|
||||||
|
tr.setId("rowSelectRole");
|
||||||
|
table.appendChild(tr);
|
||||||
|
td = new Td();
|
||||||
|
tr.appendChild(td);
|
||||||
|
td.setSclass(ITheme.LOGIN_LABEL_CLASS);
|
||||||
|
td.appendChild(new Label(""));
|
||||||
|
td = new Td();
|
||||||
|
td.setSclass(ITheme.LOGIN_FIELD_CLASS);
|
||||||
|
tr.appendChild(td);
|
||||||
|
td.appendChild(chkSelectRole);
|
||||||
|
|
||||||
if (MSystem.isZKRememberUserAllowed()) {
|
if (MSystem.isZKRememberUserAllowed()) {
|
||||||
tr = new Tr();
|
tr = new Tr();
|
||||||
tr.setId("rowRememberMe");
|
tr.setId("rowRememberMe");
|
||||||
|
@ -200,17 +212,7 @@ public class LoginPanel extends Window implements EventListener
|
||||||
td.setSclass(ITheme.LOGIN_FIELD_CLASS);
|
td.setSclass(ITheme.LOGIN_FIELD_CLASS);
|
||||||
tr.appendChild(td);
|
tr.appendChild(td);
|
||||||
td.appendChild(chkRememberMe);
|
td.appendChild(chkRememberMe);
|
||||||
tr = new Tr();
|
|
||||||
tr.setId("rowSelectRole");
|
|
||||||
table.appendChild(tr);
|
|
||||||
td = new Td();
|
|
||||||
tr.appendChild(td);
|
|
||||||
td.setSclass(ITheme.LOGIN_LABEL_CLASS);
|
|
||||||
td.appendChild(new Label(""));
|
|
||||||
td = new Td();
|
|
||||||
td.setSclass(ITheme.LOGIN_FIELD_CLASS);
|
|
||||||
tr.appendChild(td);
|
|
||||||
td.appendChild(chkSelectRole);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
div = new Div();
|
div = new Div();
|
||||||
|
|
Loading…
Reference in New Issue