operations reports templates.html - wydsodifficult/wydsodifficult.github.io GitHub Wiki

Operations Company Report Templates

All employees are able to see this page

Access levels < 3 is able to add/delete/edit Templates

Features

  • Displays the templates for Reports
  • Allows level 3 access and lower to add/delete/edit Templates
  • Inherits everything from Blank Template

Things with ID's

  • "view-template-modal": The Main Modal to view a templates setup
  • "viewTemplateModalTitle": Title of the view template modal
  • "field-modal-count": Count used by the modal for the number of initial fields when viewing
  • "view-modal-template-fields": Div where initial fields are placed when modal is opened
  • "template-modal-inputs": New input fields are placed when "New Line" button is clicked in modal
  • "button-template-modal-line": "New Line" button for modal
  • "modal-loading": Loading animation for modal when updating/saving
  • "button-template-modal-cancel": Cancel/close button for the modal that closes the modal
  • "button-template-modal-edit": Edit button for modal that enables everything
  • "button-template-modal-save": Save button for modal that will close modal if successful
  • "new-template-div": Entire div that holds the "New Template"
  • "button-template-new": Button clicked to create a new Template. (Hidden to access > 3)
  • "field-count": Counter for number of fields added to a new Template
  • "template-card": Card view that holds the new Template
  • "template-title-div": Div that holds the input field for Template Title
  • "template-title": Input field for new Template Title
  • "template-inputs": New Lines added to new Template are appended into this
  • "button-template-line": Button that adds a new Line to new Template
  • "template-new-divider": Divider so there is a clean line between the inputs and the buttons
  • "loading": Loading animation for new Template
  • "button-template-cancel": Cancel Button for new Template that hides the whole div
  • "button-template-save": Save button for a new Template. Hides upon success
  • "view-template-card": Card view that holds all templates to be viewed
  • "view-template-div": Div that template buttons are placed