lp:~ihris+uganda/+junk/Leave_Module

Created by Martin Namutso and last modified

This leave module defines a leave_type as a MAP list, start and end date's as DATE and duration in days as an INT.

Add the following customizations to your site:
Copy the module folder provided i.e. Leave (Leave Information) to the modules folder inside your site
Open the Site Configuration Script and enable the modules i.e.
 <enable name="Leave"/>

Open the menu_view_person.html under .../ihris-manage/templates/en_US/menu_view_person.html and add the following
 <!-- Additions for the Leave Details module -->
  <span type="module" name="Leave" ifenabled="true">
  <li><a href="#jump_leave" onclick="if(prevAnchor) prevAnchor.className=''; this.className='active'; prevAnchor=this;">Leave Information</a></li>
  </span>
 <!-- End of additions -->

Open the view.html under .../ihris-manage/templates/en_US/view.html and add the following
  <!-- New Leave section for the Leave module -->
  <span type='module' name='Leave' ifenabled='true'>
   <div class="recordsData" task='person_can_view_child_form_person_leave'>
   <h3>
         <a name="jump_leave">Leave Information</a>
      </h3>
       <p class="editRecordsData" id="leave_links">
         <a href="" class="hide" title="Hide" onclick="return hideDiv('leave', this );">Hide</a>
         <span task="person_can_edit_child_form_person_leave" type="form" name="person:id" href="person_leave?parent=" ifset="!person_leave:id">Add Leave</span>
       </p>
   <div id="person_leave"></div>
   <br style="clear: both;" />
      </div>
  </span>
     <!-- End Leave -->

Open the lists.html file .../ihris-manage/templates/en_US/lists.html
 add a text like the one shown below
 <li task='can_edit_database_list_leave_type'><a href="lists?type=leave_type">Leave type</a></li>

-- Developed and contributed by the June-2010 UCP Interns --

Get this branch:
bzr branch lp:~ihris+uganda/+junk/Leave_Module
Members of iHRIS Uganda Team can upload to this branch. Log in for directions.

Related bugs

Related blueprints

Branch information

Owner:
iHRIS Uganda Team
Status:
Development

Recent revisions

1. By Martin Namutso <mnamutso@gishu>

Leave Module

Branch metadata

Branch format:
Branch format 7
Repository format:
Bazaar repository format 2a (needs bzr 1.16 or later)
This branch contains Public information 
Everyone can see this information.

Subscribers