Staff
var CdnUrl = "https://cdn.purelyhr.com/";
Dashboard
News
Notifications
Staff
Your trial ends in 21 days
Upgrade Now
Hugo P.
Hugo P.
My Profile
Preferences
Log Out
Dashboard
News
Notifications
Staff
Staff Directory
Return to checklist
Help
Print
Export
CSV
CSV (detailed)
PDF
PDF (summary)
PDF (detailed)
View and manage your staff. Click on any employee name to go to their profile.
Create User
Create User
Export
CSV
PDF
All departments
All offices
Head office
Active users only
Inactive users only
0
All Staff
0
Employees
0
Managers
1
Administrators
Employee
Department
Office
Role
Hired Date
Active
Actions
Click the Create User button above to create accounts for your staff
// the bootloader is guaranteeded to exist at this point Phr.Bootloader.init({ appId: 'staff', pageId: 'directory', layout: 'master', // for the future, indicate which layout to load dependencies: [], // other app-code to load onPageLoad: function () { }, onRefreshPage: function (success, error) { success(); window.tmpvue = new Vue({ el: '#directory-list' }); } });
function getModelFromModal($modal) { var managerIdArray = $modal.find('[name="ManagerIds"]').val(); function filterManagerIdArray(value) { return value != ""; } if (managerIdArray) { managerIdArray = managerIdArray.filter(filterManagerIdArray); } var model = { role: $modal.find('#Role').val(), // NOT a knows-picker, at the moment firstname: $modal.find('#Firstname').val(), lastname: $modal.find('#Lastname').val(), jobTitle: $modal.find('#JobTitle').val(), employeeID: $modal.find('#EmployeeID').val(), email: $modal.find('#Email').val(), altEmail: $modal.find('#AltEmail').val(), hiredDate: $modal.find('#HiredDate').val(), username: $modal.find('#Username').val(), deptId: $modal.find('[name="DeptId"]').val(), officeId: $modal.find('[name="OfficeId"]').val(), managerIds: managerIdArray, timeOffPolicyId: $modal.find('#TimeOffPolicyId').val(), lengthOfServiceYearlyId: $modal.find('#LengthOfServiceYearlyId').val(), sendWelcomeEmail: $modal.find('#SendWelcomeEmail').val() }; if (model.role && model.role.indexOf && model.role.toLowerCase().indexOf('admin') > -1) { // these are required but unused for admins model.jobTitle = 'JOB TITLE'; model.hiredDate = '2000-01-01'; } return model; } // create item button pops up modal $(document).on('click', '.phr-create-user-btn', function () { Phr.ApiLibrary.Form.createUser({ success: function (html) { Phr.App.displayModalWithHtml({ modalId: 'create-item-modal', title: 'Create User', icon: 'fa fa-user text-muted', content: html, confirmButtonText: 'Save', dismissButtonText: 'Close', onConfirm: function ($modal, isValid) { if (!isValid) return; $modal.find('.phr-confirm-btn').prop('disabled', true); // save it when valid var model = getModelFromModal($modal); Phr.ApiLibrary.PurelyHr.postUser(model, { success: function (result) { if (!result || !result.id) { console.error('Invalid result: ', result); return; } // go to the profile window.location = '/staff/profile/{id}'.replace('{id}', result.id); }, always: function () { // reactivate the button $modal.find('.phr-confirm-btn').prop('disabled', false); } }); } }); } }); });
x
Need help getting started?
Book free demo
Shared.betaFeature.IsFeatureAvailable("UserFlow", function(featureEnabled) { var browserStr = 'Chrome'; var isIE = (browserStr == "IE" || browserStr == "InternetExplorer"); if(featureEnabled && !isIE){ new Vue({ el: '#userflowdiv' }); } });