Giter Club home page Giter Club logo

gravityformstimesheet's Introduction

Gravity Forms Timesheet Field

A new type of field that allows timesheets to be submitted via Gravity Forms.

Features

  • Date calendar popup and various date and time formats support
  • Sane input validation
  • Comments per time entry
  • Time totals in Form Entry list, detail, notifications and confirmations
  • Works with the Saved Forms plugin correctly
  • Ready to be styled to suit any theme out there

Screenshots

Timesheet Field Timesheet Output Timesheet Detail

Installation

Download the latest release from the Releases page, unzip and copy the gravityformstimesheet/ directory into your wp-content/plugins directory. Activate the plugin and enjoy.

Requires at least Gravity Forms 1.9 and WordPress 4.0.

gravityformstimesheet's People

Contributors

soulseekah avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

gravityformstimesheet's Issues

No longer supported.

Hey Guys, Great plugin however it's no longer supported.

On submitting a time entry I get in return..

Warning: array_chunk() expects parameter 1 to be array, string given in wp-content\plugins\gravityformstimesheet.php on line 519

Warning: Invalid argument supplied for foreach() in wp-content\plugins\gravityformstimesheet.php on line

Values not being saved correctly, lead view not rendering?

WordPress 4.7.1, Gravity Forms 2.1.2.10

I'm hoping to extend this plugin to include multiple check-in and check-out times for each day row, however I immediately ran into some issues.

With WP_Debug enabled, I get this notice upon save:

GF_Field::get_value_save_entry was called incorrectly. Override this method to handle array values Please see Debugging in WordPress for more information. (This message was added in version 2.0.) in ###\wp-includes\functions.php on line 3996

In the dashboard, the single entry view is blank and these warnings appear:

Warning: array_chunk() expects parameter 1 to be array, boolean given in ###\wp-content\plugins\gravityformstimesheet\gravityformstimesheet.php on line 328

Warning: Invalid argument supplied for foreach() in ###\wp-content\plugins\gravityformstimesheet\gravityformstimesheet.php on line 330

Any help you could provide would be much appreciated!

Best,
Josh

Submissions Blank

I have uploaded and activated the plugin and it works beautifully on screen. But when I click submit it doesn't actually send/post the time sheet data that was entered. Any ideas?

Here is an example pasted from the email (you'll see the form captured a name but not the date, time in or time out that were entered):
Name
Donald Duck
Timesheet

Date Check in Check out Comment
Total entries: 0 Total time: 00:00

Total time in entries list view is incorrect

Not a major issue, but the math that generates the total time in the entries list is incorrect when check in/out times extend across AM and PM. For example, a check-in at 8:00 a.m. and a check-out at 5:00 p.m., would show 9 hours correctly on the single entry view, but in the entries list, the total time displays as -3:.

Changing line 348 to the following fixes it.
if ( $this->timeFormat != '24' ) {

Field Contents Is Not Saved When Form Submitted

Wordpress v4.4.2
Gravity Forms v1.9.16

Field is displayed and values can be validated, however when submitted, no values are parsed through to the save_timesheet_input method (checked by logging all parameters of function) - timesheet field is not passed to this method.

No values saved in DB, and associated errors like so

formerrors

Submission not showing entered data

Hi! I'm using this extension to create a timesheet for employees for their scheduled time as well as overtime. Every time the form is submitted, no matter the hours or combination of form inputs, I'm getting this in my email notifications. Is there maybe an issue with using the field twice? I'm seeing that not updating Gravity Forms has been an issue in the past, but I am completely updated as of now with Version 2.4.14. Any advice or help would be greatly appreciated!

issue

Adding new field

Thank you for this great add-on!

I am trying to customize the form and add another field, next to the comment field. I duplicated the comment field code and and adjusted the code so it is unique for the new field. Everything looks fine at first but when fill out the form something happens where the + icon is some how triggered, a new line appears and the new field content has been pushed to the date box. I don't suppose you have an idea of what could be happening. I know it's long shot. --> Here's the form on the development site:
http://timecard.flemcodesigns.com/

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.