Details
-
Type: Sub-task
-
Status: Done/Fixed
-
Priority: Major
-
Resolution: Won't Do
-
Affects Version/s: HR-1.0
-
Fix Version/s: HR-1.0
-
Component/s: None
-
Labels:None
Description
A picture needs to be included for each individual listed in the Directory. This should be a thumbnail that could be enlarged by the user clicking on it or by choosing to view more detail about the individual.
–
1. Update the profile form in hrstaffdir to include "image_url" as the first column
2. Inject some jQuery to convert the textual into a suitable image. (You should be able to get the image using something like: cj('form#Search .crm-profile-name-hrstaffdir crm-image_URL'))
Note: It appears that the handling of the picture was recently updated in CRM-11137. You might want to look at how that was implemented to see if there are any good ideas or re-usable bits.
Note: The profile form used by the staff directory is also used (by default) on the search-results screen. Please make sure that the search-results screen doesn't show the staff URL. (There are several ways one might do this – eg display the image_URL using a similar technique on the staff screen; or make a second copy of the profile – the staffdir copy should include image_URL and the search-result should omit it; choose whatever is easiest)