\r\n Welcome to Firehouse Subs Public Safety Foundation's digital\r\n grant application. Thank you for your interest in applying\r\n for a grant.\r\n \r\n
\r\n\r\n Before you Begin: Please print and read\r\n through our grant applicant FAQs.\r\n
\r\n\r\n Important Dates: \r\n
\r\n\r\n \r\n Portal reopens for 2020 Quarter 3 Grant Applications: April 1,\r\n 2020
\r\n Portal closes: Wednesday, May 13, 2020, at 5:00 PM ET\r\n \r\n
\r\n \r\n Portal reopens for 2020 Quarter 3 Grant Applications: April 1,\r\n 2020
\r\n Portal closes: Wednesday, May 13, 2020, at 5:00 PM ET\r\n \r\n
Our distributions are done on a quarterly basis and approved or denied by the Foundation's Board of Directors. All applicants will be considered and notified after distributions are made whether support will be granted.
\");\r\n this.openDialog = true; \r\n } \r\n } \r\n\r\n var dt = new Date()\r\n if (this.app.applicantDate == null) { \r\n this.app.applicantDate = (dt.getMonth() + 1) + '/' + dt.getDate() + '/' + dt.getFullYear();\r\n }\r\n else {\r\n dt = new Date(this.app.applicantDate);\r\n this.app.applicantDate = (dt.getMonth() + 1) + '/' + dt.getDate() + '/' + dt.getFullYear();\r\n }\r\n \r\n } \r\n\r\n private async SubmitClicked() { \r\n var valid = await (this.$refs.appForm as Vue & { validate: () => boolean }).validate() \r\n if (!valid) { \r\n return;\r\n }\r\n\r\n this.appLimit = await api.getSeasonalLimit(); \r\n if(this.appLimit.limitCapMet == true || this.appLimit.seasonOpen == false){\r\n $('#form-limit-dialog').modal('show');\r\n return;\r\n }\r\n\r\n if (this.app.acceptTerms == false) {\r\n this.dialogTitle = \"Validation Error!\";\r\n this.validationMsg = \"Accepting the Terms of the Agreement is required.\";\r\n this.openValidationDialog = true;\r\n return;\r\n } \r\n\r\n //Check if the application is completed\r\n // this.isAppCompleted = (this.app.isApplicantComplete && this.app.isDocumentComplete && this.app.isRequestComplete && this.app.isCommunityComplete && this.app.isFranchiseComplete ? true : false )\r\n // if(this.isAppCompleted == false) {\r\n // this.dialogTitle = \"Application is not Completed!\";\r\n // this.validationMsg = \"Please complete the following sections before submitting:Our distributions are done on a quarterly basis and approved or denied by the Foundation's Board of Directors. All applicants will be considered and notified after distributions are made whether support will be granted.
\");\r\n this.openDialog = true; \r\n } \r\n\r\n this.LoadDocuments(); \r\n this.isLoading = false;\r\n } \r\n\r\n\r\n private async SubmitClicked() {\r\n this.appLimit = await api.getSeasonalLimit(); \r\n if(this.appLimit.limitCapMet == true || this.appLimit.seasonOpen == false){\r\n $('#form-limit-dialog').modal('show');\r\n return;\r\n }\r\n\r\n if (!this.isFormValid()) \r\n return\r\n $('#form-confirm-dialog').modal('show'); \r\n \r\n }\r\n\r\n private async SaveClicked() {\r\n if (!this.isFormValid()) \r\n return \r\n this.PersistSave(false, false); \r\n }\r\n\r\n private async LoadDocuments(){\r\n if (this.appId <= 0) {\r\n return;\r\n }\r\n const appDocs = await api.getApplicationDocuments(this.appId, this.user.id); \r\n if (appDocs && appDocs.documents) {\r\n for (var i = 0; i < appDocs.documents.length; i++) {\r\n //add the background document\r\n if (appDocs.documents[i].documentType == this.fileBackgroundDocType ) {\r\n this.fileBackgroundFileName = appDocs.documents[i].fileName;\r\n this.fileBackgroundContent = appDocs.documents[i].content;\r\n this.fileBackgroundContentType = appDocs.documents[i].contentType; \r\n } \r\n //add the vendor document\r\n if (appDocs.documents[i].documentType == this.fileVendorDocType) {\r\n this.fileVendorFileName = appDocs.documents[i].fileName;\r\n this.fileVendorContent = appDocs.documents[i].content;\r\n this.fileVendorContentType = appDocs.documents[i].contentType; \r\n } \r\n //add the Financial document\r\n if (appDocs.documents[i].documentType == this.fileFinancialDocType) {\r\n this.fileFinancialFileName = appDocs.documents[i].fileName;\r\n this.fileFinancialContent = appDocs.documents[i].content;\r\n this.fileFinancialContentType = appDocs.documents[i].contentType; \r\n } \r\n //add the Equip document\r\n if (appDocs.documents[i].documentType == this.fileEquipDocType) {\r\n this.fileVendorId = appDocs.documents[i].Id;\r\n this.fileEquipFileName = appDocs.documents[i].fileName;\r\n this.fileEquipContent = appDocs.documents[i].content;\r\n this.fileEquipContentType = appDocs.documents[i].contentType; \r\n } \r\n }\r\n this.IsDocumentsCompleted = appDocs.application.isDocumentComplete;\r\n this.isSubmitted = appDocs.application.isSubmitted;\r\n }\r\n }\r\n\r\n private async PersistSave(redirectNext: any, isSubmit: any) {\r\n \r\n if (isSubmit == true) {\r\n this.seasonal = await api.getSeasonalLimit();\r\n if (this.seasonal) {\r\n if (this.seasonal.limitCapMet == true || this.seasonal.seasonOpen == false) {\r\n this.validationMsg = (this.seasonal.limitCapMet ? this.seasonal.seasonalMessage + \"Your application cannot be submitted at this time.
\" : \"