hr-design-system-handlebars 1.114.32 → 1.114.33

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (35) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/dist/assets/brand/hessenschau/conf/locatags.merged.json +1 -0
  3. package/dist/assets/brand/hr/conf/locatags.merged.json +1 -0
  4. package/dist/assets/brand/hr-bigband/conf/locatags.merged.json +1 -0
  5. package/dist/assets/brand/hr-fernsehen/conf/locatags.merged.json +1 -0
  6. package/dist/assets/brand/hr-inforadio/conf/locatags.merged.json +1 -0
  7. package/dist/assets/brand/hr-rundfunkrat/conf/locatags.merged.json +1 -0
  8. package/dist/assets/brand/hr-sinfonieorchester/conf/locatags.merged.json +1 -0
  9. package/dist/assets/brand/hr-werbung/conf/locatags.merged.json +1 -0
  10. package/dist/assets/brand/hr1/conf/locatags.merged.json +1 -0
  11. package/dist/assets/brand/hr2/conf/locatags.merged.json +1 -0
  12. package/dist/assets/brand/hr3/conf/locatags.merged.json +1 -0
  13. package/dist/assets/brand/hr4/conf/locatags.merged.json +1 -0
  14. package/dist/assets/brand/you-fm/conf/locatags.merged.json +1 -0
  15. package/dist/assets/index.css +18 -3
  16. package/dist/assets/js/components/voting/js/votingValidatorDs.feature.js +5 -1
  17. package/dist/views/components/voting/components/voting_submit.hbs +8 -2
  18. package/dist/views_static/components/voting/components/voting_submit.hbs +8 -2
  19. package/package.json +1 -1
  20. package/src/assets/brand/_default/conf/locatags.json +2 -1
  21. package/src/assets/brand/hessenschau/conf/locatags.merged.json +1 -0
  22. package/src/assets/brand/hr/conf/locatags.merged.json +1 -0
  23. package/src/assets/brand/hr-bigband/conf/locatags.merged.json +1 -0
  24. package/src/assets/brand/hr-fernsehen/conf/locatags.merged.json +1 -0
  25. package/src/assets/brand/hr-inforadio/conf/locatags.merged.json +1 -0
  26. package/src/assets/brand/hr-rundfunkrat/conf/locatags.merged.json +1 -0
  27. package/src/assets/brand/hr-sinfonieorchester/conf/locatags.merged.json +1 -0
  28. package/src/assets/brand/hr-werbung/conf/locatags.merged.json +1 -0
  29. package/src/assets/brand/hr1/conf/locatags.merged.json +1 -0
  30. package/src/assets/brand/hr2/conf/locatags.merged.json +1 -0
  31. package/src/assets/brand/hr3/conf/locatags.merged.json +1 -0
  32. package/src/assets/brand/hr4/conf/locatags.merged.json +1 -0
  33. package/src/assets/brand/you-fm/conf/locatags.merged.json +1 -0
  34. package/src/stories/views/components/voting/components/voting_submit.hbs +8 -2
  35. package/src/stories/views/components/voting/js/votingValidatorDs.feature.js +5 -1
package/CHANGELOG.md CHANGED
@@ -1,3 +1,15 @@
1
+ # v1.114.33 (Mon Dec 09 2024)
2
+
3
+ #### 🐛 Bug Fix
4
+
5
+ - add submit-hint to voting-button [#1182](https://github.com/mumprod/hr-design-system-handlebars/pull/1182) ([@hanswurstsalat](https://github.com/hanswurstsalat))
6
+
7
+ #### Authors: 1
8
+
9
+ - Geraldo ([@hanswurstsalat](https://github.com/hanswurstsalat))
10
+
11
+ ---
12
+
1
13
  # v1.114.32 (Mon Dec 09 2024)
2
14
 
3
15
  #### 🐛 Bug Fix
@@ -206,6 +206,7 @@
206
206
  "votingform_already_voted_cookie_hint": "Sie haben bereits an der Abstimmung teilgenommen.",
207
207
  "votingform_vote_result": "Anzahl der abgegebenen Stimmen: ",
208
208
  "votingform_vote_result_absolute_hint": "Werte: Stimmen",
209
+ "votingform_submit_hint": "Bitte mindestens eine Option auswählen.",
209
210
  "webform_send_text_success": "Das Formular wurde erfolgreich versendet.",
210
211
  "webform_send_text_error": "Das Formular konnte nicht versendet werden.",
211
212
  "webform_upload_label": "Datei auswählen",
@@ -206,6 +206,7 @@
206
206
  "votingform_already_voted_cookie_hint": "Sie haben bereits an der Abstimmung teilgenommen.",
207
207
  "votingform_vote_result": "Anzahl der abgegebenen Stimmen: ",
208
208
  "votingform_vote_result_absolute_hint": "Werte: Stimmen",
209
+ "votingform_submit_hint": "Bitte mindestens eine Option auswählen.",
209
210
  "webform_send_text_success": "Das Formular wurde erfolgreich versendet.",
210
211
  "webform_send_text_error": "Das Formular konnte nicht versendet werden.",
211
212
  "webform_upload_label": "Datei auswählen",
@@ -206,6 +206,7 @@
206
206
  "votingform_already_voted_cookie_hint": "Sie haben bereits an der Abstimmung teilgenommen.",
207
207
  "votingform_vote_result": "Anzahl der abgegebenen Stimmen: ",
208
208
  "votingform_vote_result_absolute_hint": "Werte: Stimmen",
209
+ "votingform_submit_hint": "Bitte mindestens eine Option auswählen.",
209
210
  "webform_send_text_success": "Das Formular wurde erfolgreich versendet.",
210
211
  "webform_send_text_error": "Das Formular konnte nicht versendet werden.",
211
212
  "webform_upload_label": "Datei auswählen",
@@ -206,6 +206,7 @@
206
206
  "votingform_already_voted_cookie_hint": "Sie haben bereits an der Abstimmung teilgenommen.",
207
207
  "votingform_vote_result": "Anzahl der abgegebenen Stimmen: ",
208
208
  "votingform_vote_result_absolute_hint": "Werte: Stimmen",
209
+ "votingform_submit_hint": "Bitte mindestens eine Option auswählen.",
209
210
  "webform_send_text_success": "Das Formular wurde erfolgreich versendet.",
210
211
  "webform_send_text_error": "Das Formular konnte nicht versendet werden.",
211
212
  "webform_upload_label": "Datei auswählen",
@@ -206,6 +206,7 @@
206
206
  "votingform_already_voted_cookie_hint": "Sie haben bereits an der Abstimmung teilgenommen.",
207
207
  "votingform_vote_result": "Anzahl der abgegebenen Stimmen: ",
208
208
  "votingform_vote_result_absolute_hint": "Werte: Stimmen",
209
+ "votingform_submit_hint": "Bitte mindestens eine Option auswählen.",
209
210
  "webform_send_text_success": "Das Formular wurde erfolgreich versendet.",
210
211
  "webform_send_text_error": "Das Formular konnte nicht versendet werden.",
211
212
  "webform_upload_label": "Datei auswählen",
@@ -206,6 +206,7 @@
206
206
  "votingform_already_voted_cookie_hint": "Sie haben bereits an der Abstimmung teilgenommen.",
207
207
  "votingform_vote_result": "Anzahl der abgegebenen Stimmen: ",
208
208
  "votingform_vote_result_absolute_hint": "Werte: Stimmen",
209
+ "votingform_submit_hint": "Bitte mindestens eine Option auswählen.",
209
210
  "webform_send_text_success": "Das Formular wurde erfolgreich versendet.",
210
211
  "webform_send_text_error": "Das Formular konnte nicht versendet werden.",
211
212
  "webform_upload_label": "Datei auswählen",
@@ -206,6 +206,7 @@
206
206
  "votingform_already_voted_cookie_hint": "Sie haben bereits an der Abstimmung teilgenommen.",
207
207
  "votingform_vote_result": "Anzahl der abgegebenen Stimmen: ",
208
208
  "votingform_vote_result_absolute_hint": "Werte: Stimmen",
209
+ "votingform_submit_hint": "Bitte mindestens eine Option auswählen.",
209
210
  "webform_send_text_success": "Das Formular wurde erfolgreich versendet.",
210
211
  "webform_send_text_error": "Das Formular konnte nicht versendet werden.",
211
212
  "webform_upload_label": "Datei auswählen",
@@ -206,6 +206,7 @@
206
206
  "votingform_already_voted_cookie_hint": "Sie haben bereits an der Abstimmung teilgenommen.",
207
207
  "votingform_vote_result": "Anzahl der abgegebenen Stimmen: ",
208
208
  "votingform_vote_result_absolute_hint": "Werte: Stimmen",
209
+ "votingform_submit_hint": "Bitte mindestens eine Option auswählen.",
209
210
  "webform_send_text_success": "Das Formular wurde erfolgreich versendet.",
210
211
  "webform_send_text_error": "Das Formular konnte nicht versendet werden.",
211
212
  "webform_upload_label": "Datei auswählen",
@@ -206,6 +206,7 @@
206
206
  "votingform_already_voted_cookie_hint": "Sie haben bereits an der Abstimmung teilgenommen.",
207
207
  "votingform_vote_result": "Anzahl der abgegebenen Stimmen: ",
208
208
  "votingform_vote_result_absolute_hint": "Werte: Stimmen",
209
+ "votingform_submit_hint": "Bitte mindestens eine Option auswählen.",
209
210
  "webform_send_text_success": "Das Formular wurde erfolgreich versendet.",
210
211
  "webform_send_text_error": "Das Formular konnte nicht versendet werden.",
211
212
  "webform_upload_label": "Datei auswählen",
@@ -206,6 +206,7 @@
206
206
  "votingform_already_voted_cookie_hint": "Sie haben bereits an der Abstimmung teilgenommen.",
207
207
  "votingform_vote_result": "Anzahl der abgegebenen Stimmen: ",
208
208
  "votingform_vote_result_absolute_hint": "Werte: Stimmen",
209
+ "votingform_submit_hint": "Bitte mindestens eine Option auswählen.",
209
210
  "webform_send_text_success": "Das Formular wurde erfolgreich versendet.",
210
211
  "webform_send_text_error": "Das Formular konnte nicht versendet werden.",
211
212
  "webform_upload_label": "Datei auswählen",
@@ -206,6 +206,7 @@
206
206
  "votingform_already_voted_cookie_hint": "Sie haben bereits an der Abstimmung teilgenommen.",
207
207
  "votingform_vote_result": "Anzahl der abgegebenen Stimmen: ",
208
208
  "votingform_vote_result_absolute_hint": "Werte: Stimmen",
209
+ "votingform_submit_hint": "Bitte mindestens eine Option auswählen.",
209
210
  "webform_send_text_success": "Das Formular wurde erfolgreich versendet.",
210
211
  "webform_send_text_error": "Das Formular konnte nicht versendet werden.",
211
212
  "webform_upload_label": "Datei auswählen",
@@ -206,6 +206,7 @@
206
206
  "votingform_already_voted_cookie_hint": "Sie haben bereits an der Abstimmung teilgenommen.",
207
207
  "votingform_vote_result": "Anzahl der abgegebenen Stimmen: ",
208
208
  "votingform_vote_result_absolute_hint": "Werte: Stimmen",
209
+ "votingform_submit_hint": "Bitte mindestens eine Option auswählen.",
209
210
  "webform_send_text_success": "Das Formular wurde erfolgreich versendet.",
210
211
  "webform_send_text_error": "Das Formular konnte nicht versendet werden.",
211
212
  "webform_upload_label": "Datei auswählen",
@@ -206,6 +206,7 @@
206
206
  "votingform_already_voted_cookie_hint": "Sie haben bereits an der Abstimmung teilgenommen.",
207
207
  "votingform_vote_result": "Anzahl der abgegebenen Stimmen: ",
208
208
  "votingform_vote_result_absolute_hint": "Werte: Stimmen",
209
+ "votingform_submit_hint": "Bitte mindestens eine Option auswählen.",
209
210
  "webform_send_text_success": "Das Formular wurde erfolgreich versendet.",
210
211
  "webform_send_text_error": "Das Formular konnte nicht versendet werden.",
211
212
  "webform_upload_label": "Datei auswählen",
@@ -3689,7 +3689,7 @@ article.indexTextDS .indexTextHighlighted .link {
3689
3689
  border-bottom-color: var(--color-secondary-ds);
3690
3690
  }
3691
3691
  .counter-reset {
3692
- counter-reset: cnt1733751399327;
3692
+ counter-reset: cnt1733765776692;
3693
3693
  }
3694
3694
  .placeholder-text-xs::-webkit-input-placeholder {
3695
3695
  font-size: 0.75rem;
@@ -4103,7 +4103,7 @@ article.indexTextDS .indexTextHighlighted .link {
4103
4103
  --tw-ring-color: rgba(255, 255, 255, 0.5);
4104
4104
  }
4105
4105
  .-ordered {
4106
- counter-increment: cnt1733751399327 1;
4106
+ counter-increment: cnt1733765776692 1;
4107
4107
  }
4108
4108
  .-ordered::before {
4109
4109
  position: absolute;
@@ -4121,7 +4121,7 @@ article.indexTextDS .indexTextHighlighted .link {
4121
4121
  --tw-text-opacity: 1;
4122
4122
  color: rgba(0, 0, 0, 1);
4123
4123
  color: rgba(0, 0, 0, var(--tw-text-opacity));
4124
- content: counter(cnt1733751399327);
4124
+ content: counter(cnt1733765776692);
4125
4125
  }
4126
4126
  /*! ****************************/
4127
4127
  /*! DataPolicy stuff */
@@ -6401,6 +6401,21 @@ ul.restrictedToTwo li:nth-of-type(1n + 2) .timelineBorder {
6401
6401
  .has-\[input\:disabled\]\:cursor-not-allowed:has(input:disabled) {
6402
6402
  cursor: not-allowed;
6403
6403
  }
6404
+ .has-\[input\:disabled\]\:border-button-disabled:has(input:disabled) {
6405
+ border-color: var(--color-button-disabled);
6406
+ }
6407
+ .has-\[input\:disabled\]\:bg-button-disabled:has(input:disabled) {
6408
+ background-color: var(--color-button-disabled);
6409
+ }
6410
+ .has-\[\+input\:disabled\]\:fill-black:has(+input:disabled) {
6411
+ fill: #000000;
6412
+ }
6413
+ .has-\[input\:disabled\]\:text-button-disabled--dark:has(input:disabled) {
6414
+ color: var(--color-button-disabled--dark);
6415
+ }
6416
+ .has-\[\+input\:disabled\]\:opacity-25:has(+input:disabled) {
6417
+ opacity: 0.25;
6418
+ }
6404
6419
  .has-\[input\:disabled\]\:opacity-50:has(input:disabled) {
6405
6420
  opacity: 0.5;
6406
6421
  }
@@ -95,7 +95,9 @@ const VotingValidator = (context) => {
95
95
  isMultipleChoice = options.isMultipleChoice || false,
96
96
  //votingOptions = Array.from(hr$('input[name=multivoting]', rootElement)),
97
97
  submit = hr$('input[type=submit]', rootElement)[0],
98
- submitLabel = hr$('.js-voting-submit-button', rootElement)[0]
98
+ submitLabel = hr$('.js-voting-submit-button', rootElement)[0],
99
+ submitHint = hr$('.js-submit-hint')[0]
100
+
99
101
  let counter = hr$('.js-voting-counter', rootElement),
100
102
  selectedCheckboxes = 0,
101
103
  votingOptions = []
@@ -104,8 +106,10 @@ const VotingValidator = (context) => {
104
106
  console.log(submitLabel)
105
107
  if (countCheckedCheckboxes() != 0) {
106
108
  submit.disabled = false
109
+ submitHint.classList.replace("visible", "invisible")
107
110
  } else {
108
111
  submit.disabled = true
112
+ submitHint.classList.replace("invisible", "visible")
109
113
  }
110
114
 
111
115
  if (selectedCheckboxes < maxAnswerCount) {
@@ -1,4 +1,10 @@
1
- <label class="{{#if _addClass}}{{_addClass}} {{/if}}float-right cursor-pointer has-[input:disabled]:cursor-not-allowed has-[input:disabled]:opacity-75 {{> components/button/utilities/button_base_classes}} {{> components/button/utilities/button_variation_classes _variant='primary'}} {{> components/button/utilities/button_dimension_classes _size='lg'}}">
2
- {{> components/base/image/icon _icon="send-ds" _addClass="w-5 h-5 fill-white dark:fill-text-dark "}}
1
+ <label class="{{#if _addClass}}{{_addClass}} {{/if}}float-right cursor-pointer has-[input:disabled]:cursor-not-allowed has-[input:disabled]:opacity-75
2
+ {{> components/button/utilities/button_base_classes}}
3
+ {{> components/button/utilities/button_variation_classes _variant='primary'}}
4
+ {{> components/button/utilities/button_dimension_classes _size='lg'}}
5
+ has-[input:disabled]:text-button-disabled--dark has-[input:disabled]:bg-button-disabled has-[input:disabled]:border-button-disabled"
6
+ >
7
+ {{> components/base/image/icon _icon="send-ds" _addClass="w-5 h-5 fill-white has-[+input:disabled]:fill-black has-[+input:disabled]:opacity-25 dark:fill-text-dark "}}
3
8
  <input type="submit" class="pl-2 cursor-pointer disabled:opacity-75 disabled:cursor-not-allowed" value="{{#if _label}}{{_label}}{{else}}{{loca 'form_button_submit'}}{{/if}}" />
4
9
  </label>
10
+ <span class="visible float-right clear-both mt-2 text-xs text-right js-submit-hint font-heading sm:text-sm text-gray-scorpion dark:text-text-dark">{{loca 'votingform_submit_hint'}}</span>
@@ -1,4 +1,10 @@
1
- <label class="{{#if _addClass}}{{_addClass}} {{/if}}float-right cursor-pointer has-[input:disabled]:cursor-not-allowed has-[input:disabled]:opacity-75 {{> components/button/utilities/button_base_classes}} {{> components/button/utilities/button_variation_classes _variant='primary'}} {{> components/button/utilities/button_dimension_classes _size='lg'}}">
2
- {{> components/base/image/icon _icon="send-ds" _addClass="w-5 h-5 fill-white dark:fill-text-dark "}}
1
+ <label class="{{#if _addClass}}{{_addClass}} {{/if}}float-right cursor-pointer has-[input:disabled]:cursor-not-allowed has-[input:disabled]:opacity-75
2
+ {{> components/button/utilities/button_base_classes}}
3
+ {{> components/button/utilities/button_variation_classes _variant='primary'}}
4
+ {{> components/button/utilities/button_dimension_classes _size='lg'}}
5
+ has-[input:disabled]:text-button-disabled--dark has-[input:disabled]:bg-button-disabled has-[input:disabled]:border-button-disabled"
6
+ >
7
+ {{> components/base/image/icon _icon="send-ds" _addClass="w-5 h-5 fill-white has-[+input:disabled]:fill-black has-[+input:disabled]:opacity-25 dark:fill-text-dark "}}
3
8
  <input type="submit" class="pl-2 cursor-pointer disabled:opacity-75 disabled:cursor-not-allowed" value="{{#if _label}}{{_label}}{{else}}{{loca 'form_button_submit'}}{{/if}}" />
4
9
  </label>
10
+ <span class="visible float-right clear-both mt-2 text-xs text-right js-submit-hint font-heading sm:text-sm text-gray-scorpion dark:text-text-dark">{{loca 'votingform_submit_hint'}}</span>
package/package.json CHANGED
@@ -6,7 +6,7 @@
6
6
  "license": "MIT",
7
7
  "main": "dist/index.js",
8
8
  "repository": "https://github.com/szuelch/hr-design-system-handlebars",
9
- "version": "1.114.32",
9
+ "version": "1.114.33",
10
10
  "scripts": {
11
11
  "test": "echo \"Error: no test specified\" && exit 1",
12
12
  "storybook": "storybook dev -p 6006 public",
@@ -205,7 +205,8 @@
205
205
  "votingform_voting_finished": "Diese Abstimmung ist beendet",
206
206
  "votingform_already_voted_cookie_hint": "Sie haben bereits an der Abstimmung teilgenommen.",
207
207
  "votingform_vote_result": "Anzahl der abgegebenen Stimmen: ",
208
- "votingform_vote_result_absolute_hint": "Werte: Stimmen",
208
+ "votingform_vote_result_absolute_hint": "Werte: Stimmen",
209
+ "votingform_submit_hint": "Bitte mindestens eine Option auswählen.",
209
210
  "webform_send_text_success": "Das Formular wurde erfolgreich versendet.",
210
211
  "webform_send_text_error": "Das Formular konnte nicht versendet werden.",
211
212
  "webform_upload_label": "Datei auswählen",
@@ -206,6 +206,7 @@
206
206
  "votingform_already_voted_cookie_hint": "Sie haben bereits an der Abstimmung teilgenommen.",
207
207
  "votingform_vote_result": "Anzahl der abgegebenen Stimmen: ",
208
208
  "votingform_vote_result_absolute_hint": "Werte: Stimmen",
209
+ "votingform_submit_hint": "Bitte mindestens eine Option auswählen.",
209
210
  "webform_send_text_success": "Das Formular wurde erfolgreich versendet.",
210
211
  "webform_send_text_error": "Das Formular konnte nicht versendet werden.",
211
212
  "webform_upload_label": "Datei auswählen",
@@ -206,6 +206,7 @@
206
206
  "votingform_already_voted_cookie_hint": "Sie haben bereits an der Abstimmung teilgenommen.",
207
207
  "votingform_vote_result": "Anzahl der abgegebenen Stimmen: ",
208
208
  "votingform_vote_result_absolute_hint": "Werte: Stimmen",
209
+ "votingform_submit_hint": "Bitte mindestens eine Option auswählen.",
209
210
  "webform_send_text_success": "Das Formular wurde erfolgreich versendet.",
210
211
  "webform_send_text_error": "Das Formular konnte nicht versendet werden.",
211
212
  "webform_upload_label": "Datei auswählen",
@@ -206,6 +206,7 @@
206
206
  "votingform_already_voted_cookie_hint": "Sie haben bereits an der Abstimmung teilgenommen.",
207
207
  "votingform_vote_result": "Anzahl der abgegebenen Stimmen: ",
208
208
  "votingform_vote_result_absolute_hint": "Werte: Stimmen",
209
+ "votingform_submit_hint": "Bitte mindestens eine Option auswählen.",
209
210
  "webform_send_text_success": "Das Formular wurde erfolgreich versendet.",
210
211
  "webform_send_text_error": "Das Formular konnte nicht versendet werden.",
211
212
  "webform_upload_label": "Datei auswählen",
@@ -206,6 +206,7 @@
206
206
  "votingform_already_voted_cookie_hint": "Sie haben bereits an der Abstimmung teilgenommen.",
207
207
  "votingform_vote_result": "Anzahl der abgegebenen Stimmen: ",
208
208
  "votingform_vote_result_absolute_hint": "Werte: Stimmen",
209
+ "votingform_submit_hint": "Bitte mindestens eine Option auswählen.",
209
210
  "webform_send_text_success": "Das Formular wurde erfolgreich versendet.",
210
211
  "webform_send_text_error": "Das Formular konnte nicht versendet werden.",
211
212
  "webform_upload_label": "Datei auswählen",
@@ -206,6 +206,7 @@
206
206
  "votingform_already_voted_cookie_hint": "Sie haben bereits an der Abstimmung teilgenommen.",
207
207
  "votingform_vote_result": "Anzahl der abgegebenen Stimmen: ",
208
208
  "votingform_vote_result_absolute_hint": "Werte: Stimmen",
209
+ "votingform_submit_hint": "Bitte mindestens eine Option auswählen.",
209
210
  "webform_send_text_success": "Das Formular wurde erfolgreich versendet.",
210
211
  "webform_send_text_error": "Das Formular konnte nicht versendet werden.",
211
212
  "webform_upload_label": "Datei auswählen",
@@ -206,6 +206,7 @@
206
206
  "votingform_already_voted_cookie_hint": "Sie haben bereits an der Abstimmung teilgenommen.",
207
207
  "votingform_vote_result": "Anzahl der abgegebenen Stimmen: ",
208
208
  "votingform_vote_result_absolute_hint": "Werte: Stimmen",
209
+ "votingform_submit_hint": "Bitte mindestens eine Option auswählen.",
209
210
  "webform_send_text_success": "Das Formular wurde erfolgreich versendet.",
210
211
  "webform_send_text_error": "Das Formular konnte nicht versendet werden.",
211
212
  "webform_upload_label": "Datei auswählen",
@@ -206,6 +206,7 @@
206
206
  "votingform_already_voted_cookie_hint": "Sie haben bereits an der Abstimmung teilgenommen.",
207
207
  "votingform_vote_result": "Anzahl der abgegebenen Stimmen: ",
208
208
  "votingform_vote_result_absolute_hint": "Werte: Stimmen",
209
+ "votingform_submit_hint": "Bitte mindestens eine Option auswählen.",
209
210
  "webform_send_text_success": "Das Formular wurde erfolgreich versendet.",
210
211
  "webform_send_text_error": "Das Formular konnte nicht versendet werden.",
211
212
  "webform_upload_label": "Datei auswählen",
@@ -206,6 +206,7 @@
206
206
  "votingform_already_voted_cookie_hint": "Sie haben bereits an der Abstimmung teilgenommen.",
207
207
  "votingform_vote_result": "Anzahl der abgegebenen Stimmen: ",
208
208
  "votingform_vote_result_absolute_hint": "Werte: Stimmen",
209
+ "votingform_submit_hint": "Bitte mindestens eine Option auswählen.",
209
210
  "webform_send_text_success": "Das Formular wurde erfolgreich versendet.",
210
211
  "webform_send_text_error": "Das Formular konnte nicht versendet werden.",
211
212
  "webform_upload_label": "Datei auswählen",
@@ -206,6 +206,7 @@
206
206
  "votingform_already_voted_cookie_hint": "Sie haben bereits an der Abstimmung teilgenommen.",
207
207
  "votingform_vote_result": "Anzahl der abgegebenen Stimmen: ",
208
208
  "votingform_vote_result_absolute_hint": "Werte: Stimmen",
209
+ "votingform_submit_hint": "Bitte mindestens eine Option auswählen.",
209
210
  "webform_send_text_success": "Das Formular wurde erfolgreich versendet.",
210
211
  "webform_send_text_error": "Das Formular konnte nicht versendet werden.",
211
212
  "webform_upload_label": "Datei auswählen",
@@ -206,6 +206,7 @@
206
206
  "votingform_already_voted_cookie_hint": "Sie haben bereits an der Abstimmung teilgenommen.",
207
207
  "votingform_vote_result": "Anzahl der abgegebenen Stimmen: ",
208
208
  "votingform_vote_result_absolute_hint": "Werte: Stimmen",
209
+ "votingform_submit_hint": "Bitte mindestens eine Option auswählen.",
209
210
  "webform_send_text_success": "Das Formular wurde erfolgreich versendet.",
210
211
  "webform_send_text_error": "Das Formular konnte nicht versendet werden.",
211
212
  "webform_upload_label": "Datei auswählen",
@@ -206,6 +206,7 @@
206
206
  "votingform_already_voted_cookie_hint": "Sie haben bereits an der Abstimmung teilgenommen.",
207
207
  "votingform_vote_result": "Anzahl der abgegebenen Stimmen: ",
208
208
  "votingform_vote_result_absolute_hint": "Werte: Stimmen",
209
+ "votingform_submit_hint": "Bitte mindestens eine Option auswählen.",
209
210
  "webform_send_text_success": "Das Formular wurde erfolgreich versendet.",
210
211
  "webform_send_text_error": "Das Formular konnte nicht versendet werden.",
211
212
  "webform_upload_label": "Datei auswählen",
@@ -206,6 +206,7 @@
206
206
  "votingform_already_voted_cookie_hint": "Sie haben bereits an der Abstimmung teilgenommen.",
207
207
  "votingform_vote_result": "Anzahl der abgegebenen Stimmen: ",
208
208
  "votingform_vote_result_absolute_hint": "Werte: Stimmen",
209
+ "votingform_submit_hint": "Bitte mindestens eine Option auswählen.",
209
210
  "webform_send_text_success": "Das Formular wurde erfolgreich versendet.",
210
211
  "webform_send_text_error": "Das Formular konnte nicht versendet werden.",
211
212
  "webform_upload_label": "Datei auswählen",
@@ -206,6 +206,7 @@
206
206
  "votingform_already_voted_cookie_hint": "Sie haben bereits an der Abstimmung teilgenommen.",
207
207
  "votingform_vote_result": "Anzahl der abgegebenen Stimmen: ",
208
208
  "votingform_vote_result_absolute_hint": "Werte: Stimmen",
209
+ "votingform_submit_hint": "Bitte mindestens eine Option auswählen.",
209
210
  "webform_send_text_success": "Das Formular wurde erfolgreich versendet.",
210
211
  "webform_send_text_error": "Das Formular konnte nicht versendet werden.",
211
212
  "webform_upload_label": "Datei auswählen",
@@ -1,4 +1,10 @@
1
- <label class="{{#if _addClass}}{{_addClass}} {{/if}}float-right cursor-pointer has-[input:disabled]:cursor-not-allowed has-[input:disabled]:opacity-75 {{> components/button/utilities/button_base_classes}} {{> components/button/utilities/button_variation_classes _variant='primary'}} {{> components/button/utilities/button_dimension_classes _size='lg'}}">
2
- {{> components/base/image/icon _icon="send-ds" _addClass="w-5 h-5 fill-white dark:fill-text-dark "}}
1
+ <label class="{{#if _addClass}}{{_addClass}} {{/if}}float-right cursor-pointer has-[input:disabled]:cursor-not-allowed has-[input:disabled]:opacity-75
2
+ {{> components/button/utilities/button_base_classes}}
3
+ {{> components/button/utilities/button_variation_classes _variant='primary'}}
4
+ {{> components/button/utilities/button_dimension_classes _size='lg'}}
5
+ has-[input:disabled]:text-button-disabled--dark has-[input:disabled]:bg-button-disabled has-[input:disabled]:border-button-disabled"
6
+ >
7
+ {{> components/base/image/icon _icon="send-ds" _addClass="w-5 h-5 fill-white has-[+input:disabled]:fill-black has-[+input:disabled]:opacity-25 dark:fill-text-dark "}}
3
8
  <input type="submit" class="pl-2 cursor-pointer disabled:opacity-75 disabled:cursor-not-allowed" value="{{#if _label}}{{_label}}{{else}}{{loca 'form_button_submit'}}{{/if}}" />
4
9
  </label>
10
+ <span class="visible float-right clear-both mt-2 text-xs text-right js-submit-hint font-heading sm:text-sm text-gray-scorpion dark:text-text-dark">{{loca 'votingform_submit_hint'}}</span>
@@ -95,7 +95,9 @@ const VotingValidator = (context) => {
95
95
  isMultipleChoice = options.isMultipleChoice || false,
96
96
  //votingOptions = Array.from(hr$('input[name=multivoting]', rootElement)),
97
97
  submit = hr$('input[type=submit]', rootElement)[0],
98
- submitLabel = hr$('.js-voting-submit-button', rootElement)[0]
98
+ submitLabel = hr$('.js-voting-submit-button', rootElement)[0],
99
+ submitHint = hr$('.js-submit-hint')[0]
100
+
99
101
  let counter = hr$('.js-voting-counter', rootElement),
100
102
  selectedCheckboxes = 0,
101
103
  votingOptions = []
@@ -104,8 +106,10 @@ const VotingValidator = (context) => {
104
106
  console.log(submitLabel)
105
107
  if (countCheckedCheckboxes() != 0) {
106
108
  submit.disabled = false
109
+ submitHint.classList.replace("visible", "invisible")
107
110
  } else {
108
111
  submit.disabled = true
112
+ submitHint.classList.replace("invisible", "visible")
109
113
  }
110
114
 
111
115
  if (selectedCheckboxes < maxAnswerCount) {