mirror of
https://github.com/kakwa/ldapcherry
synced 2025-07-03 03:47:35 +02:00
adding skeleton of autofill functions
This commit is contained in:
parent
3d399504a7
commit
2d06e14d63
1 changed files with 28 additions and 0 deletions
28
resources/static/js/lc-filler.js
Normal file
28
resources/static/js/lc-filler.js
Normal file
|
@ -0,0 +1,28 @@
|
|||
/*
|
||||
* Licensed under the MIT public license.
|
||||
*
|
||||
* Part of LdapCherry.
|
||||
*
|
||||
* Functions to autofill form fields from other fields.
|
||||
*
|
||||
*/
|
||||
|
||||
function lcUid(firstname, lastname){
|
||||
return 'test';
|
||||
}
|
||||
|
||||
function lcDisplayName(firstname, lastname){
|
||||
return 'test';
|
||||
}
|
||||
|
||||
function lcMail(firstname, lastname, domain){
|
||||
return 'test@test';
|
||||
}
|
||||
|
||||
function lcUidNumber(firstname, lastname){
|
||||
return 42;
|
||||
}
|
||||
|
||||
function lcHomeDir(firstname, lastname){
|
||||
return '/home/test';
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue