Example #1
0
        public override List <Question> GetQuestions(Amendment amendment)
        {
            var questions = new List <Question>();

            var countries       = _dataService.GetAnswerPotentials(nameof(PupilCountryQuestion));
            var countryQuestion = new CountryPupilLeftEnglandFor(countries.ToList());

            questions.Add(countryQuestion);

            var pupilDateOffRoleQuestion = new PupilDateOffRollQuestion();

            questions.Add(pupilDateOffRoleQuestion);

            if (GetAnswer(amendment, nameof(PupilDateOffRollQuestion))?.Value.ToDateTimeWhenSureNotNull() < _config.CensusDate.ToDateTimeWhenSureNotNull())
            {
                var explainQuestion = new ExplainYourRequestQuestion("The date off roll is before the January census but this pupil was recorded on your January census");
                questions.Add(explainQuestion);
            }

            var evidenceQuestion = new EvidenceUploadQuestion(_evidenceHelpDeskText);

            questions.Add(evidenceQuestion);

            return(questions);
        }
Example #2
0
        public override List <Question> GetQuestions(Amendment amendment)
        {
            var questions = new List <Question>();

            var pupilDateOffRoleQuestion = new PupilDateOffRollQuestion();

            questions.Add(pupilDateOffRoleQuestion);

            var explainQuestion = new ExplainYourRequestQuestion(null);

            questions.Add(explainQuestion);

            var evidenceQuestion = new EvidenceUploadQuestion(Content.RemovePupilOtherMissingInEducation_HTML);

            questions.Add(evidenceQuestion);

            return(questions);
        }
        public override List <Question> GetQuestions(Amendment amendment)
        {
            var laestabQuestion = new LaestabNumberQuestion(
                CustomLaEstabValidator,
                Content.RemovePupilDualRegLAESTABTitle,
                Content.RemovePupilDualRegLAESTABLabel,
                Content.RemovePupilDualRegLAESTABError);

            var explainQuestion =
                new ExplainYourRequestQuestion(null, Content.RemovePupilDualRegExplainDetailsLabel);
            var evidenceQuestion =
                new EvidenceUploadQuestion(Content.RemovePupilDualRegEvidence);

            return(new List <Question>
            {
                laestabQuestion, explainQuestion, evidenceQuestion
            });
        }
Example #4
0
        public override List <Question> GetQuestions(Amendment amendment)
        {
            var questions = new List <Question>();

            var pupilDateOffRoleQuestion = new PupilDateOffRollQuestion();

            questions.Add(pupilDateOffRoleQuestion);

            var explainQuestion = new ExplainYourRequestQuestion(null);

            questions.Add(explainQuestion);

            var evidenceQuestion = new EvidenceUploadQuestion(_evidenceHelpDeskText);

            questions.Add(evidenceQuestion);

            return(questions);
        }
Example #5
0
        public override List <Question> GetQuestions(Amendment amendment)
        {
            var laestabQuestion = new LaestabNumberQuestion(
                CustomValidator,
                Content.LaestabNumberQuestion_Title,
                Content.LaestabNumberQuestion_Label,
                Content.LaestabNumberQuestion_NullErrorMessage);

            var pupilExclusionDateQuestion = new PupilExclusionDateQuestion();

            var explainQuestion = new ExplainYourRequestQuestion(string.Empty, "Please explain your request to remove this Pupil");

            var evidenceQuestion =
                new EvidenceUploadQuestion(Content.RemovePupilAdmittedFollowingPermanentExclusionEvidence_HTML);

            return(new List <Question> {
                laestabQuestion, pupilExclusionDateQuestion, explainQuestion, evidenceQuestion
            });
        }