GithubHelp home page GithubHelp logo

subharanjan1987 / redmine_leaves Goto Github PK

View Code? Open in Web Editor NEW

This project forked from gitlog/redmine_leaves

0.0 1.0 0.0 560 KB

A simple plugin for user leaves management. It allows user to check-in and check-out for attendance marking. Leave is marked for any user that does not check-in by the specified time. Administrator can define leave types via the administrative interface for the plugin

License: MIT License

Ruby 21.53% HTML 12.98% JavaScript 63.36% CSS 2.13%

redmine_leaves's Introduction

Redmine Leaves

A simple plugin for user leaves management. It allows user to check-in and check-out for attendance marking. Leave is marked for any user that does not check-in by the specified time. Administrator can define leave types via the administrative interface for the plugin.

Users with permission 'eligible_for_leave' are shown in the list. A report summary page similar to the Timesheet Plugin shows the leaves summary. Leaves are also integrated into the Calendar Module. User who does not check-in, is automatically marked as off after some cut-off period Leave Types are defined through Redmine settings. User can also view the check-ins/check-outs and allowed users can edit attendance too. Also, attendance can be imported in the form of csv files.

Redmine 3+ compatible.

Installation:

  • To install plugin, go to plugins folder of your Redmine repository and run:

      git clone http://github.com/arkhitech/redmine_leaves
    
  • Run db migrations for the plugin

      rake redmine:plugins:migrate RAILS_ENV=production
    
  • Run rake task to populate time_spent field in user_time_checks

      RAILS_ENV=production  rake redmine_leaves:populate_time_spent
    
  • Bundle install all the gems using the following command

      bundle install
    
  • After bundle install, go to Redmine leave plugin folder and run the following command

      wheneverize .
    
  • Above command creates a file “schedule.rb” in config folder. Go to config/schedule.rb and type the following code

      every :weekday, :at => '12:01 pm' do
          rake "redmine_leaves:auto_leave_mark"
      end
    
  • Run the following command to automate the leave marking process

      whenever --update-crontab store
    
  • After installation, log in to Redmine as administrator and go to plugin settings for Redmine leaves plugin configuration.

Instructions:

  • After installing Redmine leave plugin, it is advised to make Redmine groups and add users into these groups. This will allow the admin to assign permissions to users accordingly.

  • Admin will be required to always update the "Auto-Mark" process whenever the server restarts. To do so, go to congif/schedule.rb and run the following command

      whenever --update-crontab store
    

Snapshots:

alt tag alt tag alt tag alt tag alt tag alt tag alt tag alt tag alt tag alt tag alt tag alt tag alt tag alt tag alt tag alt tag

redmine_leaves's People

Contributors

abuzarhasan avatar adihunjra avatar archonwang avatar asimmushtaq avatar babarrehmanx avatar hishammalik avatar psteyn avatar qamranshahzad avatar radist avatar waqaszafar11 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.