From 63a7a877026b21913f21f669ff82f4294c22d088 Mon Sep 17 00:00:00 2001 From: Santiago Palenque Date: Thu, 16 Jan 2025 12:39:48 -0300 Subject: [PATCH] add bio prop and editor in admin --- elections/code/infrastructure/active_records/Candidate.php | 1 + elections/code/infrastructure/active_records/Election.php | 1 + 2 files changed, 2 insertions(+) diff --git a/elections/code/infrastructure/active_records/Candidate.php b/elections/code/infrastructure/active_records/Candidate.php index 8ccc40a226..26b89a7577 100644 --- a/elections/code/infrastructure/active_records/Candidate.php +++ b/elections/code/infrastructure/active_records/Candidate.php @@ -19,6 +19,7 @@ class Candidate extends DataObject implements ICandidate 'IsGoldMemberCandidate' => 'Boolean', // Q and A (Candidate's answer to the application question) 'RelationshipToOpenStack' => 'HTMLText', + 'Bio' => 'HTMLText', 'Experience' => 'HTMLText', 'BoardsRole' => 'HTMLText', 'TopPriority' => 'HTMLText', diff --git a/elections/code/infrastructure/active_records/Election.php b/elections/code/infrastructure/active_records/Election.php index e874604bc5..5b93449b1c 100644 --- a/elections/code/infrastructure/active_records/Election.php +++ b/elections/code/infrastructure/active_records/Election.php @@ -246,6 +246,7 @@ function getCMSFields() new CheckboxField('HasAcceptedNomination', 'Has Accepted Nomination?'), new CheckboxField('IsGoldMemberCandidate', 'Is Gold Member Candidate?'), new HtmlEditorField('RelationshipToOpenStack', 'Relationship To OpenStack'), + new HtmlEditorField('Bio', 'Bio'), new HtmlEditorField('Experience', 'Experience'), new HtmlEditorField('BoardsRole', 'Boards Role'), new HtmlEditorField('TopPriority', 'Top Priority')