Files
icehrm/admin/qualifications/lib.js
2017-09-03 20:39:22 +02:00

162 lines
2.9 KiB
JavaScript

/**
* Author: Thilina Hasantha
*/
/**
* SkillAdapter
*/
function SkillAdapter(endPoint) {
this.initAdapter(endPoint);
}
SkillAdapter.inherits(AdapterBase);
SkillAdapter.method('getDataMapping', function() {
return [
"id",
"name",
"description"
];
});
SkillAdapter.method('getHeaders', function() {
return [
{ "sTitle": "ID","bVisible":false },
{ "sTitle": "Name" },
{ "sTitle": "Description"}
];
});
SkillAdapter.method('getFormFields', function() {
return [
[ "id", {"label":"ID","type":"hidden"}],
[ "name", {"label":"Name","type":"text"}],
[ "description", {"label":"Description","type":"textarea","validation":""}]
];
});
SkillAdapter.method('getHelpLink', function () {
return 'http://blog.icehrm.com/docs/qualifications/';
});
/**
* EducationAdapter
*/
function EducationAdapter(endPoint) {
this.initAdapter(endPoint);
}
EducationAdapter.inherits(AdapterBase);
EducationAdapter.method('getDataMapping', function() {
return [
"id",
"name",
"description"
];
});
EducationAdapter.method('getHeaders', function() {
return [
{ "sTitle": "ID","bVisible":false },
{ "sTitle": "Name" },
{ "sTitle": "Description"}
];
});
EducationAdapter.method('getFormFields', function() {
return [
[ "id", {"label":"ID","type":"hidden"}],
[ "name", {"label":"Name","type":"text"}],
[ "description", {"label":"Description","type":"textarea","validation":""}]
];
});
/**
* CertificationAdapter
*/
function CertificationAdapter(endPoint) {
this.initAdapter(endPoint);
}
CertificationAdapter.inherits(AdapterBase);
CertificationAdapter.method('getDataMapping', function() {
return [
"id",
"name",
"description"
];
});
CertificationAdapter.method('getHeaders', function() {
return [
{ "sTitle": "ID" ,"bVisible":false},
{ "sTitle": "Name" },
{ "sTitle": "Description"}
];
});
CertificationAdapter.method('getFormFields', function() {
return [
[ "id", {"label":"ID","type":"hidden"}],
[ "name", {"label":"Name","type":"text"}],
[ "description", {"label":"Description","type":"textarea","validation":""}]
];
});
/**
* LanguageAdapter
*/
function LanguageAdapter(endPoint) {
this.initAdapter(endPoint);
}
LanguageAdapter.inherits(AdapterBase);
LanguageAdapter.method('getDataMapping', function() {
return [
"id",
"name",
"description"
];
});
LanguageAdapter.method('getHeaders', function() {
return [
{ "sTitle": "ID" ,"bVisible":false},
{ "sTitle": "Name" },
{ "sTitle": "Description"}
];
});
LanguageAdapter.method('getFormFields', function() {
return [
[ "id", {"label":"ID","type":"hidden"}],
[ "name", {"label":"Name","type":"text"}],
[ "description", {"label":"Description","type":"textarea","validation":""}]
];
});