Details
Description
The absence-request screen (/civicrm/absence?id=<activityId>) is an alternative to the Activity View/Edit screen. The mockup of the screen is toward the bottom of this page:
http://wiki.civicrm.org/confluence/display/HR/Absence+-+Employee+Perspective
Major sub-tasks:
T1. Implement skeleton page
T2. Implement redirect – if anyone tries to view or edit an activity based tied to an AbsenceType, then redirect to /civicrm/absence?id=<activityId>.
T3. Implement view mode (see mockup)
T4. Implement edit mode (see mockup)
T5. Implement create mode (for current user). This is the same as "edit" mode except that:
- No ID is included in the URL
- The activity type is passed in the URL
- The values for start/end date begin as empty
T6. Implement create mode (for other users). This is the same as create mode for the current user, however: if the current user has access to edit multiple users, then the contact name field appears as a contact-search widget. (Lookup Eileen's work with the public event registration form where she tackled a comparable issue.)