Files
luos/workflow/engine/xmlform/users/users_AuthSource.xml
2011-09-05 12:47:25 -04:00

49 lines
1.1 KiB
XML
Executable File

<?xml version="1.0" encoding="UTF-8"?>
<dynaForm name="authSources/users_AuthSource" type="xmlform" enableTemplate="1">
<TITLE type="title">
<en>Authentication Source Assignment</en>
</TITLE>
<USR_UID type="hidden"/>
<UID_AUTH_SOURCE type="dropdown" required="0" sqlConnection="rbac">
SELECT AUTH_SOURCE_UID, AUTH_SOURCE_NAME FROM AUTHENTICATION_SOURCE
<en>Authentication Source<option name="MYSQL">ProcessMaker</option></en>
</UID_AUTH_SOURCE>
<USR_AUTH_USER_DN type="text" size="80" maxlength="255" required="0">
<en>DN</en>
</USR_AUTH_USER_DN>
<BTN_CANCEL type="button" onclick="cancel();">
<en>Cancel</en>
</BTN_CANCEL>
<btnSave type="submit">
<en>Save</en>
</btnSave>
<JS type="javascript"><![CDATA[
var dynaformOnload = function() {
leimnud.event.add(getField('UID_AUTH_SOURCE'), 'change', hideShowDN);
hideShowDN();
};
var hideShowDN = function() {
if (getField('UID_AUTH_SOURCE').value == 'MYSQL') {
hideRowById('USR_AUTH_USER_DN');
}
else {
showRowById('USR_AUTH_USER_DN');
}
};
function cancel(){
window.location = 'users_List' ;
}
]]></JS>
</dynaForm>