Skip to content

Commit

Permalink
Merge pull request #383 from openstad/feature/edit-succesfull-voting-…
Browse files Browse the repository at this point in the history
…on-budgeting-widget

Feature/edit succesfull voting on budgeting widget
  • Loading branch information
LorenzoJokhan authored Feb 13, 2023
2 parents 5c8d931 + b6a20f9 commit db4147b
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 3 deletions.
6 changes: 6 additions & 0 deletions packages/cms/lib/modules/begroot-widgets/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,12 @@ const fields = [
textarea: true,
def: 'Het controleren van je stemcode is gelukt! Je bent bijna klaar. Klik op onderstaande knop om je stem te versturen.'
},
{
name: 'successful_voting_title',
label: 'Message you see when you voted successfully',
type: 'string',
def: 'Gelukt, je hebt gestemd!'
},
{
name: 'thankyou_message',
label: 'Thank you message',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -356,7 +356,7 @@ <h3 class="icon-header icon-header--blue">
<div id="steps-content-6" class="step">
<div class="text">
<div class="checkmark-block-green">
<h4>Gelukt, je hebt gestemd!</h4>
<h4>{{data.widget.successful_voting_title}}</h4>
<br/>
{{data.widget.thankyou_message | sanitize | safe | nlbr}}
{% if data.widget.showNewsletterButton and data.widget.showNewsletterButton == 'yes' %}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ module.exports = {
{
name: 'explanation-texts',
label: 'Explanation texts',
fields: ['step_1_intro', 'step_2_intro', 'step_3_intro', 'step_3_successful_auth', 'thankyou_message', 'showNewsletterButton', 'newsletterButtonText']
fields: ['step_1_intro', 'step_2_intro', 'step_3_intro', 'step_3_successful_auth','successful_voting_title', 'thankyou_message', 'showNewsletterButton', 'newsletterButtonText']
},
{
name: 'authentication',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,12 @@ const fields = [
textarea: true,
def: 'Het controleren van je stemcode is gelukt! Je bent bijna klaar. Klik op onderstaande knop om je stem te versturen.'
},
{
name: 'successful_voting_title',
label: 'Message you see when you voted successfully',
type: 'string',
def: 'Gelukt, je hebt gestemd!'
},
{
name: 'thankyou_message',
label: 'Thank you message',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -368,7 +368,7 @@ <h3 class="icon-header icon-header--blue">
<div id="steps-content-6" class="step">
<div class="text">
<div class="checkmark-block-green">
<h4>Gelukt, je hebt gestemd!</h4>
<h4>{{data.widget.successful_voting_title}}</h4>
<br/>
{{data.widget.thankyou_message | sanitize | safe | nlbr}}
{% if data.widget.showNewsletterButton and data.widget.showNewsletterButton == 'yes' %}
Expand Down

1 comment on commit db4147b

@github-actions
Copy link

Choose a reason for hiding this comment

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

Published new image: openstad/frontend:development-db4147b

Please sign in to comment.