operations reports new.html - wydsodifficult/wydsodifficult.github.io GitHub Wiki
Operations Company New Report
All employees are able to see this page
Features
- Select a Template in order to start filling out a sheet
- Fill out information with ability to switch templates
- When complete, saves everything to Firebase and refreshes so that another report can be made
- Inherits everything from Blank Template
Things with ID's
- "template-select": Div holding buttons to select a Template to Use
- "button-report-dpr": Button that loads the DPR Template
- "template-reselect": Div holding the button used to select a different template when already in one
- "template-hide-select": Div holding a button that hides the template choices when already in one
- "template-holder": Div that holds the card for the template that needs to be filled out
- "template-type-title": The header div for the template card
- "template-hidden-fields": Div holding hidden fields
- "template-type": The type of template currently being used
- "template-short": The short name of the template being used
- "report-select-job-id": The ID of the current job
- "template-defaults": Div holding information needed no matter what template is
- "report-select-job-name": Select input holding all jobs that are active
- "report-select-job-num": Select input holding the respective Job Num for the current job selected
- "report-date": Current date
- "report-time-start": Div for template's start time
- "report-time-start-input": Input Field for template's start time
- "report-time-end": Div for template's end time
- "report-time-end-input": Input Field for template's end time
- "report-time-total": Calculated total time for report
- "report-contractor": Contractor for current Job (Un-editable because it's linked to the Job Info)
- "report-foreman": Foreman for the job that this report is made for
- "div-report-dpr": Div field for DPR report
- "report-dpr-techs": Select input that all employees can be chosen from
- "report-dpr-tech-hours": Div that will hold inputs for chosen employees to select how many hours they worked
- "report-materials-0": First Field for materials/equipment needed
- "report-materials-date-0": Date that "report-materials-0" is needed by
- "report-dpr-materials-count": Hidden value keeping track of how many materials fields are added
- "report-performed-0": First Field for work performed
- "report-location-0": Location of first work performed
- "report-dpr-performed-count": Hidden value keeping track of how many performed fields are added
- "report-progress-0": First Field for location of progress
- "report-description-0": Description of progress at first location
- "report-percent-0": Percent of progress of first location
- "report-dpr-progress-count": Hidden value keeping track of how many progress fields are added
- "report-iqr": Input field for Issues / Questions / Remarks
- "template-fields": Any custom template fields are added in this Div
- "loading": Loading animation shown when saving
- "button-cancel-report": Button in card footer that cancels and closes the current report template and send user back to choosing card
- "button-save-report": Button in card footer that saves all data to firebase and on success, runs the "button-cancel-report" 'click'