Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add AdditionalInfo field #147

Merged
merged 2 commits into from
Mar 8, 2024
Merged

Add AdditionalInfo field #147

merged 2 commits into from
Mar 8, 2024

Conversation

PascalinDe
Copy link
Member

This PR adds the field "AdditionalInfo" where HTML can be added to link to additional information. This closes #141.

Screenshot 2024-03-08 at 11-27-28 D-Voting
Screenshot 2024-03-08 at 11-28-10 D-Voting
Screenshot 2024-03-08 at 11-28-47 D-Voting

@PascalinDe PascalinDe requested a review from ineiti March 8, 2024 10:29
@PascalinDe PascalinDe self-assigned this Mar 8, 2024
@@ -82,6 +83,13 @@ const BallotDisplay: FC<BallotDisplayProps> = ({
<h3 className="pb-6 break-all text-2xl text-center text-gray-700">
{urlizeLabel(internationalize(language, titles), titles.URL)}
</h3>
<div
dangerouslySetInnerHTML={{
__html: DOMPurify.sanitize(configuration.AdditionalInfo, {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great - just what I needed for https://github.com/ineiti/cybernode :)

@PascalinDe PascalinDe merged commit cffd74b into main Mar 8, 2024
11 checks passed
@PascalinDe PascalinDe deleted the 141 branch March 8, 2024 12:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Status: Done
Development

Successfully merging this pull request may close these issues.

add free text field to add additional info for an election
2 participants