Beispiel #1
0
 private ActionResult HealthProfessional_Render(string formId, HealthProfessional details)
 {
     return(NavigableView <HealthProfessionalModel>(formId, Sections.HealthProfessional, (m, f) =>
     {
         m.TitlePrefix = BsgText.TitlePrefix();
         m.HealthProfessional = details ?? f.HealthProfessional;
     }));
 }
Beispiel #2
0
 private ActionResult GuardianPartnerDetails_Render(string formId, RelationDetails details)
 {
     return(NavigableView <RelationDetailsModel>(formId, BsgViews.RelationDetails, Sections.GuardianPartnerDetails, (m, f) =>
     {
         m.Title = BsgText.GuardianPartnerDetailsTitle();
         m.Heading = BsgText.GuardianPartnerDetailsHeading();
         m.RelationDetails = details ?? f.GuardianPartnerDetails;
     }));
 }
Beispiel #3
0
 private ActionResult GuardianPartnerBenefits_Render(string formId, Benefits details)
 {
     return(NavigableView <BenefitsModel>(formId, BsgViews.Benefits, Sections.GuardianPartnerBenefits, (m, f) =>
     {
         m.Title = BsgText.GuardianPartnerBenefitsTitle();
         m.Question = BsgText.GuardianPartnerBenefitsQuestion();
         m.Benefits = details ?? f.GuardianPartnerBenefits;
     }));
 }
Beispiel #4
0
 private ActionResult ExpectedChildren_Render(string formId, ExpectedChildren details)
 {
     return(NavigableView <ExpectedChildrenModel>(formId, Sections.ExpectedChildren, (m, f) =>
     {
         m.TitlePrefix = BsgText.TitlePrefix();
         m.Title = BsgText.ExpectedChildrenTitle();
         m.ExpectedChildren = details ?? f.ExpectedChildren;
     }));
 }
Beispiel #5
0
 private ActionResult PartnerDetails_Render(string formId, RelationDetails details)
 {
     return(NavigableView <RelationDetailsModel>(formId, BsgViews.RelationDetails, Sections.PartnerDetails, (m, f) =>
     {
         m.Title = BsgText.PartnerDetailsTitle();
         m.Heading = BsgText.PartnerDetailsHeading();
         m.HideRelationship = true;
         m.RelationDetails = details ?? f.PartnerDetails;
         m.InheritedAddress = f.ApplicantDetails?.CurrentAddress;
     }));
 }