Skip to content

Commit

Permalink
PFCF-473: Add new question and update form a little
Browse files Browse the repository at this point in the history
  • Loading branch information
JonTaylorBCGov2 committed Sep 11, 2024
1 parent 18331d5 commit 3d503f6
Show file tree
Hide file tree
Showing 4 changed files with 34 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,28 @@
]
}
]
},
{
"type": "panel",
"name": "ContactInformationOtherOtherPartyPanel",
"elements": [
{
"isRequired": true,
"type": "paneldynamic",
"name": "OtherOtherPartyInfoNlpr",
"visible": false,
"visibleIf": "{ApplicantType} = 'Lawyer'",
"title": "<div style = 'color: #556077; font-size: 1.25em; line-height: 1.2;' > What is the name of the other party? </b>",
"templateElements": [
{
"type": "personname",
"name": "name",
"title": " ",
"titleLocation": "hidden"
}
]
}
]
},
{
"type": "comment",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
textBackgroundColor="#dedede"
beforetext=""
style="padding-left: 18px;"
:text="applicantLawyer?'':applicantFullName"/>
:text="applicantLawyer?otherOtherParties:applicantFullName"/>
<GreyBoxForm
style="margin: 0.2rem 0 0.5rem 0rem; padding-left: 18px;"
textwidth="32rem"
Expand Down Expand Up @@ -283,6 +283,7 @@ export default class Form43Layout extends Vue {
contactInfoChanged = false;
contactInfo = {} as contactInformationDataInfoType;
otherParties = '';
otherOtherParties = '';
headerTableData = [];
Expand Down Expand Up @@ -337,6 +338,12 @@ export default class Form43Layout extends Vue {
}
this.otherParties = otherParties.join(', ');
const otherOtherParties = [];
for (const otherOtherParty of noticeRemoveLawyerParty.OtherOtherPartyInfoNlpr){
otherOtherParties.push(Vue.filter('getFullName')(otherOtherParty.name))
}
this.otherOtherParties = otherOtherParties.join(', ');
} else {
this.lawyerName = noticeRemoveLawyerParty?.LawyerName?noticeRemoveLawyerParty.LawyerName:'';
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,7 @@ export default class ReviewYourAnswersPage extends Vue {
adjQuestion = adjQuestion.replace("<b style='color: white; font-size: 1pt; margin: -5rem 0 -5rem 0'>There are no changes to the contact information or address for service of court documents on file.</b>", "There are no changes to the contact information or address for service of court documents on file.");
adjQuestion = adjQuestion.replace("<div style = 'color: #556077; font-size: 1.5em; line-height: 1.2;' > Please list each person you plan to have attend at trial as a witness. </b>", "Please list each person you plan to have attend at trial as a witness.");
adjQuestion = adjQuestion.replace("<div style = 'color: #556077; font-size: 1.25em; line-height: 1.2;' > What is the name of the party you are no longer representing? </b>", "What is the name of the party you are no longer representing?");
adjQuestion = adjQuestion.replace("<div style = 'color: #556077; font-size: 1.25em; line-height: 1.2;' > What is the name of the other party? </b>","What is the name of the other party?")
adjQuestion = adjQuestion.replace("<div style = 'color: #556077; font-size: 1.5em; line-height: 1.2;'>I swear or affirm that I know or believe the following facts to be true. If these facts are based on information from others, I believe that information to be true.</b>", "I swear or affirm that I know or believe the following facts to be true. If these facts are based on information from others, I believe that information to be true.");
adjQuestion = adjQuestion.replace("<div style = 'color: #556077; font-size: 1.25em; line-height: 1.2;'>What is the full name of the other party?</b>", "What is the full name of the other party?");
adjQuestion = adjQuestion.replace("<div style = 'color: #556077; font-size: 1.5em; line-height: 1.2;'>Please set out the details requested below for each criminal offence you are currently charged with:</b>", "Please set out the details requested below for each criminal offence you are currently charged with:");
Expand Down Expand Up @@ -199,6 +200,8 @@ export default class ReviewYourAnswersPage extends Vue {
return this.getOtherPartyInfo(value);
} else if (dataItem.name == 'OtherPartyInfoNlpr'){
return this.getOtherPartyInfo(value);
} else if (dataItem.name == 'OtherOtherPartyInfoNlpr'){
return this.getOtherPartyInfo(value);
} else if (dataItem.name == 'storyAff'){
return this.getAffidavitInfo(value);
} else if (dataItem.name == 'OtherPartyInfoEfsp'){
Expand Down
1 change: 1 addition & 0 deletions web/src/types/Application/NoticeRemoveLawyerParty/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ export interface noticeRemoveLawyerPartyDataInfoType {
ApplicantName?: nameInfoType;
ApplicantType?: string;
OtherPartyInfoNlpr?: noticeRemoveLawyerPartyOtherPartyInfoType[];
OtherOtherPartyInfoNlpr?: noticeRemoveLawyerPartyOtherPartyInfoType[];
LawyerName?: string;
EffectiveDate?: string;
AddressChanges?: string[];
Expand Down

0 comments on commit 3d503f6

Please sign in to comment.