hr-design-system-handlebars 1.114.1 → 1.114.3

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 (93) hide show
  1. package/CHANGELOG.md +24 -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/icons/icons/svgmap.min.svg +1 -1
  16. package/dist/assets/index.css +3 -3
  17. package/dist/assets/js/components/voting/js/votingCookieCheckerDs.feature.js +1 -1
  18. package/dist/assets/js/components/voting/js/votingResultCookieDs.feature.js +12 -0
  19. package/dist/views/components/newsletter/components/new_newsletter_form.hbs +62 -0
  20. package/dist/views/components/newsletter/components/newsletter_already_registered.hbs +11 -0
  21. package/dist/views/components/newsletter/components/newsletter_error.hbs +11 -0
  22. package/dist/views/components/newsletter/components/newsletter_registered.hbs +11 -0
  23. package/dist/views/components/newsletter/components/newsletter_result.hbs +15 -0
  24. package/dist/views/components/newsletter/components/newsletter_success.hbs +11 -0
  25. package/dist/views/components/newsletter/newsletter.hbs +30 -0
  26. package/dist/views/components/newsletter/newsletter_registered.hbs +0 -0
  27. package/dist/views/components/newsletter/newsletter_success.hbs +0 -0
  28. package/dist/views/components/voting/voting.hbs +92 -60
  29. package/dist/views/components/voting/voting_error.hbs +2 -2
  30. package/dist/views/components/voting/voting_result.hbs +58 -49
  31. package/dist/views/components/voting/voting_success.hbs +4 -4
  32. package/dist/views/components/voting/voting_success_2F.hbs +2 -2
  33. package/dist/views_static/components/newsletter/components/new_newsletter_form.hbs +62 -0
  34. package/dist/views_static/components/newsletter/components/newsletter_already_registered.hbs +11 -0
  35. package/dist/views_static/components/newsletter/components/newsletter_error.hbs +11 -0
  36. package/dist/views_static/components/newsletter/components/newsletter_registered.hbs +11 -0
  37. package/dist/views_static/components/newsletter/components/newsletter_result.hbs +15 -0
  38. package/dist/views_static/components/newsletter/components/newsletter_success.hbs +11 -0
  39. package/dist/views_static/components/newsletter/newsletter.hbs +30 -0
  40. package/dist/views_static/components/newsletter/newsletter_registered.hbs +0 -0
  41. package/dist/views_static/components/newsletter/newsletter_success.hbs +0 -0
  42. package/dist/views_static/components/voting/voting.hbs +92 -60
  43. package/dist/views_static/components/voting/voting_error.hbs +2 -2
  44. package/dist/views_static/components/voting/voting_result.hbs +58 -49
  45. package/dist/views_static/components/voting/voting_success.hbs +4 -4
  46. package/dist/views_static/components/voting/voting_success_2F.hbs +2 -2
  47. package/package.json +1 -1
  48. package/src/assets/brand/_default/conf/locatags.json +1 -0
  49. package/src/assets/brand/hessenschau/conf/locatags.merged.json +1 -0
  50. package/src/assets/brand/hr/conf/locatags.merged.json +1 -0
  51. package/src/assets/brand/hr-bigband/conf/locatags.merged.json +1 -0
  52. package/src/assets/brand/hr-fernsehen/conf/locatags.merged.json +1 -0
  53. package/src/assets/brand/hr-inforadio/conf/locatags.merged.json +1 -0
  54. package/src/assets/brand/hr-rundfunkrat/conf/locatags.merged.json +1 -0
  55. package/src/assets/brand/hr-sinfonieorchester/conf/locatags.merged.json +1 -0
  56. package/src/assets/brand/hr-werbung/conf/locatags.merged.json +1 -0
  57. package/src/assets/brand/hr1/conf/locatags.merged.json +1 -0
  58. package/src/assets/brand/hr2/conf/locatags.merged.json +1 -0
  59. package/src/assets/brand/hr3/conf/locatags.merged.json +1 -0
  60. package/src/assets/brand/hr4/conf/locatags.merged.json +1 -0
  61. package/src/assets/brand/you-fm/conf/locatags.merged.json +1 -0
  62. package/src/assets/fixtures/voting/voting.inc.json +4 -4
  63. package/src/assets/icons/icons/svgmap.min.svg +1 -1
  64. package/src/stories/views/components/newsletter/components/new_newsletter_form.hbs +62 -0
  65. package/src/stories/views/components/newsletter/components/newsletter_already_registered.hbs +11 -0
  66. package/src/stories/views/components/newsletter/components/newsletter_error.hbs +11 -0
  67. package/src/stories/views/components/newsletter/components/newsletter_form.hbs.DEPRECATED +106 -0
  68. package/src/stories/views/components/newsletter/components/newsletter_registered.hbs +11 -0
  69. package/src/stories/views/components/newsletter/components/newsletter_result.hbs +15 -0
  70. package/src/stories/views/components/newsletter/components/newsletter_success.hbs +11 -0
  71. package/src/stories/views/components/newsletter/fixtures/newsletter.json +46 -0
  72. package/src/stories/views/components/newsletter/newsletter.hbs +30 -0
  73. package/src/stories/views/components/newsletter/newsletter.stories.js +32 -0
  74. package/src/stories/views/components/newsletter/newsletter_registered.hbs +0 -0
  75. package/src/stories/views/components/newsletter/newsletter_success.hbs +0 -0
  76. package/src/stories/views/components/voting/fixtures/voting.json +1 -1
  77. package/src/stories/views/components/voting/fixtures/voting_email.json +1 -1
  78. package/src/stories/views/components/voting/fixtures/voting_error.json +1 -1
  79. package/src/stories/views/components/voting/fixtures/voting_media.json +1 -1
  80. package/src/stories/views/components/voting/fixtures/voting_multiple_choice.json +1 -1
  81. package/src/stories/views/components/voting/fixtures/voting_over.json +1 -1
  82. package/src/stories/views/components/voting/fixtures/voting_result_absolute.json +1 -1
  83. package/src/stories/views/components/voting/js/votingCookieCheckerDs.feature.js +1 -1
  84. package/src/stories/views/components/voting/js/votingResultCookieDs.feature.js +12 -0
  85. package/src/stories/views/components/voting/voting.hbs +92 -60
  86. package/src/stories/views/components/voting/voting.stories.js +45 -10
  87. package/src/stories/views/components/voting/voting_error.hbs +2 -2
  88. package/src/stories/views/components/voting/voting_error.stories.js +9 -4
  89. package/src/stories/views/components/voting/voting_result.hbs +58 -49
  90. package/src/stories/views/components/voting/voting_success.hbs +4 -4
  91. package/src/stories/views/components/voting/voting_success.stories.js +9 -4
  92. package/src/stories/views/components/voting/voting_success_2F.hbs +2 -2
  93. package/src/stories/views/components/voting/voting_success_2F.stories.js +9 -4
@@ -0,0 +1,30 @@
1
+ {{#unless this.useNewNewsletter}}
2
+ <div id="{{this.uuid}}" class="{{_addClass}} js-load" data-hr-newsletter='{"url": "{{this.url.nocache}}"}'>
3
+ {{~> components/base/a11y/hiddenText _locaTag="story_newsletter_intro_sr" ~}}
4
+ <h3 class="mb-6 text-2xl md:text-3xl font-headingSerif sm:mb-12 text-text dark:text-text-dark">
5
+ {{this.title}}
6
+ </h3>
7
+ <div class="js-formWrapper">
8
+ {{> components/newsletter/components/newsletter_form}}
9
+ </div>
10
+ {{~> components/base/a11y/hiddenText _locaTag="story_newsletter_outro_sr" ~}}
11
+ </div>
12
+ {{else}}
13
+ <div id="{{this.uuid}}" class="{{_addClass}} ">
14
+ {{~> components/base/a11y/hiddenText _locaTag="story_newsletter_intro_sr" ~}}
15
+ <h3 class="mb-6 text-2xl md:text-3xl font-headingSerif sm:mb-12 text-text dark:text-text-dark">
16
+ {{this.title}}
17
+ </h3>
18
+ {{#if this.description}}
19
+ <div class="c-form__row">
20
+ <div class="c-form__label">
21
+ {{{this.description}}}
22
+ </div>
23
+ </div>
24
+ {{/if}}
25
+ <div class="js-formWrapper">
26
+ {{> components/newsletter/components/new_newsletter_form}}
27
+ </div>
28
+ {{~> components/base/a11y/hiddenText _locaTag="story_newsletter_outro_sr" ~}}
29
+ </div>
30
+ {{/unless}}
@@ -1,64 +1,96 @@
1
- {{#with this.form}}
2
- {{#unless this.isVotingOver}}
3
- {{#unless ../this.hasRedirect}}
4
- <div class="js-load {{../_addClass}}"
5
- data-hr-voting-ds='{"jsonURL":"{{this.jsonUrl}}", "errorMessages": {{this.errorMessages}} }'
6
- data-hr-voting-validator-ds='{"isMultipleChoice": {{../this.isMultipleChoice}}, "minAnswerCount": 1, "maxAnswerCount": {{../this.maxAnswerCount}} }'
7
- {{#if this.isSimpleSecured}}
8
- data-hr-voting-cookie-checker-ds='{ "alreadyVotedHintText": "{{loca "votingform_already_voted_cookie_hint"}}" , "hideVotingResult": {{this.hideVotingResult}} , "votingId": "{{this.sophoraId}}" }'
9
- id="{{this.sophoraId}}"
10
- {{/if}}
11
- >
12
- {{else}}
13
- <div class="js-load {{../_addClass}}"
14
- {{#if this.is2FSecured}}data-hr-voting-ds='{"jsonURL":"{{this.jsonUrl}}", "errorMessages": {{this.errorMessages}} }'{{/if}}
15
- data-hr-voting-validator-ds='{"isMultipleChoice": {{../this.isMultipleChoice}}, "minAnswerCount": 1, "maxAnswerCount": {{../this.maxAnswerCount}} }'
16
- {{#if this.isSimpleSecured}}
17
- data-hr-voting-cookie-checker-ds='{ "alreadyVotedHintText": "{{loca "votingform_already_voted_cookie_hint"}}" , "hideVotingResult": {{this.hideVotingResult}} , "votingId": "{{this.sophoraId}}" }'
18
- id="{{this.sophoraId}}"
19
- {{/if}}
20
- >
21
- {{/unless}}
22
- <div class="js-voting-wrapper">
23
- <form class="js-votingForm"
24
- action="{{this.url}}"
25
- method="post"
26
- enctype="application/x-www-form-urlencoded"
27
- accept-charset="utf-8"
28
- autocomplete="off"
1
+ {{#>components/forms/components/backgroundBox }}
2
+ {{#with this.form}}
3
+ {{#unless this.isVotingOver}}
4
+ {{#unless ../this.hasRedirect}}
5
+ <div class="js-load {{../_addClass}}"
6
+ data-hr-voting-ds='{"jsonURL":"{{this.jsonUrl}}", "errorMessages": {{this.errorMessages}} }'
7
+ data-hr-voting-validator-ds='{"isMultipleChoice": {{../this.isMultipleChoice}}, "minAnswerCount": 1, "maxAnswerCount": {{../this.maxAnswerCount}} }'
8
+ {{#if this.isSimpleSecured}}
9
+ data-hr-voting-cookie-checker-ds='{ "alreadyVotedHintText": "{{loca "votingform_already_voted_cookie_hint"}}" , "hideVotingResult": {{this.hideVotingResult}} , "votingId": "{{this.sophoraId}}" }'
10
+ id="{{this.sophoraId}}"
11
+ {{/if}}
29
12
  >
30
- {{> components/voting/components/voting_header _title=../this.title _topline=../this.topline}}
31
-
32
- <div class="c-voting-form__bottomWrapper">
33
- {{#if this.shorttext}}
34
- <p class="mt-4 text-base font-copy sm:text-lg sm:mt-5 dark:text-text-dark">{{this.shorttext}}</p>
35
- {{/if}}
36
-
37
- <div class="w-full mt-6 text-xs text-right sm:mt-12 font-headingSerif sm:text-sm text-gray-scorpion dark:text-text-dark">
38
- {{#if ../this.isMultipleChoice}}
39
- {{loca "votingform_open_answers_text" ../this.maxAnswerCount}}
40
- {{else}}
41
- {{loca "votingform_single_answer_text"}}
13
+ {{else}}
14
+ <div class="js-load {{../_addClass}}"
15
+ {{#if this.is2FSecured}}data-hr-voting-ds='{"jsonURL":"{{this.jsonUrl}}", "errorMessages": {{this.errorMessages}} }'{{/if}}
16
+ data-hr-voting-validator-ds='{"isMultipleChoice": {{../this.isMultipleChoice}}, "minAnswerCount": 1, "maxAnswerCount": {{../this.maxAnswerCount}} }'
17
+ {{#if this.isSimpleSecured}}
18
+ data-hr-voting-cookie-checker-ds='{ "alreadyVotedHintText": "{{loca "votingform_already_voted_cookie_hint"}}" , "hideVotingResult": {{this.hideVotingResult}} , "votingId": "{{this.sophoraId}}" }'
19
+ id="{{this.sophoraId}}"
20
+ {{/if}}
21
+ >
22
+ {{/unless}}
23
+ <div class="js-voting-wrapper">
24
+ <form class="js-votingForm"
25
+ action="{{this.url}}"
26
+ method="post"
27
+ enctype="application/x-www-form-urlencoded"
28
+ accept-charset="utf-8"
29
+ autocomplete="off"
30
+ >
31
+ {{> components/voting/components/voting_header _title=../this.title _topline=../this.topline}}
32
+
33
+ <div class="c-voting-form__bottomWrapper">
34
+ {{#if this.shorttext}}
35
+ <p class="mt-4 text-base font-copy sm:text-lg sm:mt-5 dark:text-text-dark">{{this.shorttext}}</p>
42
36
  {{/if}}
43
- <span class="block float-right w-8 js-voting-counter">(0/{{../this.maxAnswerCount}})</span>
37
+
38
+ <div class="w-full mt-6 text-xs text-right sm:mt-12 font-headingSerif sm:text-sm text-gray-scorpion dark:text-text-dark">
39
+ {{#if ../this.isMultipleChoice}}
40
+ {{loca "votingform_open_answers_text" ../this.maxAnswerCount}}
41
+ {{else}}
42
+ {{loca "votingform_single_answer_text"}}
43
+ {{/if}}
44
+ <span class="block float-right w-8 js-voting-counter">(0/{{../this.maxAnswerCount}})</span>
45
+ </div>
46
+ {{> components/forms/components/fields
47
+ _multipleChoice=../this.isMultipleChoice
48
+ _addClassGroup="!flex-col mt-2"
49
+ _addClassChoice="has-[input:checked]:outline outline-2 outline-blue-science-hex bg-white has-[input:disabled]:opacity-50 has-[input:disabled]:cursor-not-allowed"
50
+ _addClassLabel="w-full !py-3 sm:!py-4 !pr-3 sm:!pr-4 !text-base sm:!text-lg md:!text-lg"
51
+ _addClassLabelForDataPolicy="font-headingSerif !pt-0 !text-sm !text-gray-dark dark:!text-text-dark"
52
+ _addClassInput="!my-3 sm:!my-4 !ml-3 sm:!ml-4"
53
+ }}
54
+ {{#if this.is2FSecured}}
55
+ <div class="float-left mt-1 text-xs text-gray-scorpion dark:text-text-dark font-headingSerif">{{loca "form_text_required"}}</div>
56
+ {{/if}}
57
+ {{> components/voting/components/voting_submit _label="Abstimmen" _addClass="-inactive js-voting-submit-button"}}
44
58
  </div>
45
- {{> components/forms/components/fields
46
- _multipleChoice=../this.isMultipleChoice
47
- _addClassGroup="!flex-col mt-2"
48
- _addClassChoice="has-[input:checked]:outline outline-2 outline-blue-science-hex bg-white has-[input:disabled]:opacity-50 has-[input:disabled]:cursor-not-allowed"
49
- _addClassLabel="w-full !py-3 sm:!py-4 !pr-3 sm:!pr-4 !text-base sm:!text-lg md:!text-lg"
50
- _addClassLabelForDataPolicy="font-headingSerif !pt-0 !text-sm !text-gray-dark dark:!text-text-dark"
51
- _addClassInput="!my-3 sm:!my-4 !ml-3 sm:!ml-4"
52
- }}
53
- {{#if this.is2FSecured}}
54
- <div class="float-left mt-1 text-xs text-gray-scorpion dark:text-text-dark font-headingSerif">{{loca "form_text_required"}}</div>
55
- {{/if}}
56
- {{> components/voting/components/voting_submit _label="Abstimmen" _addClass="-inactive js-voting-submit-button"}}
57
- </div>
58
- </form>
59
+ <script type="text/html" class="js-successMessage">
60
+ {{#if this.is2FSecured}}
61
+ {{{include "components/voting/voting_success_2F" _isInline=true _statusDone=true _title=../this.title _topline=../this.topline}}}
62
+ {{else}}
63
+ {{{include "components/voting/voting_success" _isInline=true _voteResults=../this.votingResult _statusDone=true _title=../this.title _topline=../this.topline}}}
64
+ {{/if}}
65
+ </script>
66
+ <script type="text/html" class="js-errorMessage">
67
+ {{#if this.is2FSecured}}
68
+ {{{include "components/voting/voting_error" _isInline=true _statusDone=error _title=../this.title _topline=../this.topline}}}
69
+ {{else}}
70
+ {{{include "components/voting/voting_error" _isInline=true _statusDone=false _title=../this.title _topline=../this.topline}}}
71
+ {{/if}}
72
+ </script>
73
+ {{#unless this.hideVotingResult}}
74
+ <script type="text/html" class="js-result">
75
+ {{#unless this.is2FSecured}}
76
+ {{> components/voting/voting_result
77
+ _resultBoxMessageText=(loca "votingform_already_voted_cookie_hint")
78
+ _voteResults=../this.votingResult
79
+ _isResultOnRedirectPage=_isResultOnRedirectPage
80
+ _isSimpleSecured=../this.isSimpleSecured
81
+ _statusDone=true
82
+ _addClass=../_addClass
83
+ _hideVotingResult=this.hideVotingResult
84
+ _isVotingOver=this.isVotingOver
85
+ }}
86
+ {{/unless}}
87
+ </script>
88
+ {{/unless}}
89
+ </form>
90
+ </div>
59
91
  </div>
60
- </div>
61
- {{else}}
62
- {{> components/voting/voting_result _isVotingOver=true _title=../this.title _topline=../this.topline}}
63
- {{/unless}}
64
- {{/with}}
92
+ {{else}}
93
+ {{> components/voting/voting_result _isVotingOver=true _title=../this.title _topline=../this.topline}}
94
+ {{/unless}}
95
+ {{/with}}
96
+ {{/components/forms/components/backgroundBox }}
@@ -1,6 +1,6 @@
1
1
  {{> components/voting/voting_result
2
- _title=this.title
3
- _topline=this.topline
2
+ _title=_title
3
+ _topline=_topline
4
4
  _resultBoxMessageTitle=(loca "votingform_title_error")
5
5
  _resultBoxMessageText=(loca "votingform_text_error")
6
6
  _locaKeyText="votingform_text_error"
@@ -1,62 +1,71 @@
1
- {{#unless _isResultOnRedirectPage}}
2
- {{> components/voting/components/voting_header _title=_title _topline=_topline}}
3
- {{/unless}}
1
+ <div class="{{#if this.isSimpleSecured}}js-load{{/if}}{{#if _addClass}} {{_addClass}}{{/if}}"
2
+ {{#unless _isVotingOver}}
3
+ {{#if this.isSimpleSecured}}
4
+ data-hr-voting-result-cookie-ds='{"cookieLifetime":"{{this.cookieLifetime}}","votingId":"{{this.sophoraId}}"}'
5
+ {{/if}}
6
+ {{/unless}}
7
+ >
4
8
 
5
- {{#if _hideVotingResult}}
6
- {{#if _isVotingOver}}
7
- <p class="mt-6 ml-8 text-base font-bold sm:ml-9 sm:text-lg font-heading sm:mt-12">{{{_resultBoxMessageText}}}</p>
9
+ {{#unless _isResultOnRedirectPage}}
10
+ {{> components/voting/components/voting_header _title=_title _topline=_topline}}
11
+ {{/unless}}
12
+
13
+ {{#if _hideVotingResult}}
14
+ {{#if _isVotingOver}}
15
+ <p class="mt-6 ml-8 text-base font-bold sm:ml-9 sm:text-lg font-heading sm:mt-12">{{{_resultBoxMessageText}}}</p>
16
+ {{else}}
17
+ {{~> components/base/image/icon _icon=(if _statusDone "status-done" "status-error") _iconmap="icons" _addClass=(if _statusDone "" "float-left w-6 h-6 text-error dark:text-error-dark fill-current mt-6 sm:mt-12")}}
18
+ <p class="mt-6 ml-8 text-base font-bold sm:ml-9 text-error sm:text-lg font-heading sm:mt-12 dark:text-error-dark">{{{_resultBoxMessageText}}}</p>
19
+ {{/if}}
8
20
  {{else}}
9
- {{~> components/base/image/icon _icon=(if _statusDone "status-done" "status-error") _iconmap="icons" _addClass=(if _statusDone "" "float-left w-6 h-6 text-error dark:text-error-dark fill-current mt-6 sm:mt-12")}}
10
- <p class="mt-6 ml-8 text-base font-bold sm:ml-9 text-error sm:text-lg font-heading sm:mt-12 dark:text-error-dark">{{{_resultBoxMessageText}}}</p>
11
- {{/if}}
12
- {{else}}
13
- <p class="mt-6 text-base font-bold sm:text-xl font-heading sm:mt-12">{{{_resultBoxMessageText}}}</p>
14
-
15
- {{#each _voteResults}}
16
- <div class="flex">
17
- <div class="grow">
18
- <div class="{{#if @first}}mt-7 sm:mt-9{{else}}mt-3 sm:mt-4{{/if}} text-base sm:text-lg font-copy dark:text-text-dark">{{this.label}}</div>
19
- <div class="mt-0.5 sm:mt-1 w-full bg-gray-alto rounded-full h-2">
20
- <div class="{{#if this.isWinner}}bg-orange-spicyCarrot-hex{{else}}bg-blue-congress-hex{{/if}} h-2 rounded-full" style="width:{{this.roundedPercentageCount}}%;animation: progressAnimationDS 5s"></div>
21
+ <p class="mt-6 text-base font-bold sm:text-xl font-heading sm:mt-12">{{{_resultBoxMessageText}}}</p>
22
+
23
+ {{#each _voteResults}}
24
+ <div class="flex">
25
+ <div class="grow">
26
+ <div class="{{#if @first}}mt-7 sm:mt-9{{else}}mt-3 sm:mt-4{{/if}} text-base sm:text-lg font-copy dark:text-text-dark">{{this.label}}</div>
27
+ <div class="mt-0.5 sm:mt-1 w-full bg-gray-alto rounded-full h-2">
28
+ <div class="{{#if this.isWinner}}bg-orange-spicyCarrot-hex{{else}}bg-blue-congress-hex{{/if}} h-2 rounded-full" style="width:{{this.roundedPercentageCount}}%;animation: progressAnimationDS 5s"></div>
29
+ </div>
30
+ </div>
31
+ <div class="self-end flex-none w-16">
32
+ <span class="float-right block mt-2 text-2xl font-bold font-headingSerif {{#if this.isWinner}}text-orange-spicyCarrot-hex{{else}}text-blue-congress-hex{{/if}}" style="animation: percentageAnimationDS 5s">
33
+ {{#if ../this.showAbsoluteResult}}{{this.count}}{{else}}{{this.percentageCount}}%{{/if}}
34
+ </span>
21
35
  </div>
22
36
  </div>
23
- <div class="self-end flex-none w-16">
24
- <span class="float-right block mt-2 text-2xl font-bold font-headingSerif {{#if this.isWinner}}text-orange-spicyCarrot-hex{{else}}text-blue-congress-hex{{/if}}" style="animation: percentageAnimationDS 5s">
25
- {{#if ../this.showAbsoluteResult}}{{this.count}}{{else}}{{this.percentageCount}}%{{/if}}
26
- </span>
27
- </div>
28
- </div>
29
- {{/each}}
30
-
31
- {{#if this.isMultipleChoice}}
32
- {{#unless this.showAbsoluteResult}}
37
+ {{/each}}
38
+
39
+ {{#if this.isMultipleChoice}}
40
+ {{#unless this.showAbsoluteResult}}
41
+ {{#if this.showVoteResult}}
42
+ <p class="clear-both text-xs pt-7 sm:pt-9 font-headingSerif sm:text-sm text-gray-scorpion">
43
+ {{loca "votingform_vote_result"}}{{this.summarizedResult}}
44
+ </p>
45
+ {{/if}}
46
+ {{/unless}}
47
+ {{else}}
33
48
  {{#if this.showVoteResult}}
34
49
  <p class="clear-both text-xs pt-7 sm:pt-9 font-headingSerif sm:text-sm text-gray-scorpion">
35
50
  {{loca "votingform_vote_result"}}{{this.summarizedResult}}
36
51
  </p>
37
52
  {{/if}}
38
- {{/unless}}
39
- {{else}}
40
- {{#if this.showVoteResult}}
41
- <p class="clear-both text-xs pt-7 sm:pt-9 font-headingSerif sm:text-sm text-gray-scorpion">
42
- {{loca "votingform_vote_result"}}{{this.summarizedResult}}
43
- </p>
44
- {{/if}}
45
- {{/if}}
46
- {{/if}}
53
+ {{/if}}
54
+ {{/if}}
47
55
 
48
- {{#if _isVotingOver}}
49
- <p class="mt-6 text-base font-bold sm:text-xl font-heading sm:mt-12 dark:text-text-dark">{{loca "votingform_voting_finished"}}</p>
50
- {{/if}}
56
+ {{#if _isVotingOver}}
57
+ <p class="mt-6 text-base font-bold sm:text-xl font-heading sm:mt-12 dark:text-text-dark">{{loca "votingform_voting_finished"}}</p>
58
+ {{/if}}
51
59
 
52
- {{#unless _isResultOnRedirectPage}}
53
- {{#unless this.isSimpleSecured}}
54
- {{#unless _isVotingOver}}
55
- <div class="mt-6 sm:mt-12">
56
- {{#> components/button/link_button _size="lg" _css="float-right"}}
57
- {{> components/button/components/button_label _label=(loca "votingform_form_back")}}
58
- {{/components/button/link_button}}
59
- </div>
60
+ {{#unless _isResultOnRedirectPage}}
61
+ {{#unless this.isSimpleSecured}}
62
+ {{#unless _isVotingOver}}
63
+ <div class="mt-6 sm:mt-12">
64
+ {{#> components/button/link_button _size="lg" _css="float-right"}}
65
+ {{> components/button/components/button_label _label=(loca "votingform_form_back")}}
66
+ {{/components/button/link_button}}
67
+ </div>
68
+ {{/unless}}
60
69
  {{/unless}}
61
70
  {{/unless}}
62
- {{/unless}}
71
+ </div>
@@ -1,7 +1,7 @@
1
1
  {{#if this.votingSuccessText}}
2
2
  {{> components/voting/voting_result
3
- _title=this.title
4
- _topline=this.topline
3
+ _title=_title
4
+ _topline=_topline
5
5
  _resultBoxMessageTitle=(loca "votingform_title_success")
6
6
  _resultBoxMessageText=this.votingSuccessText.richtext
7
7
  _isInline=_isInline
@@ -13,8 +13,8 @@
13
13
  }}
14
14
  {{else}}
15
15
  {{> components/voting/voting_result
16
- _title=this.title
17
- _topline=this.topline
16
+ _title=_title
17
+ _topline=_topline
18
18
  _resultBoxMessageTitle=(loca "votingform_title_success")
19
19
  _resultBoxMessageText=(loca "votingform_text_success")
20
20
  _isInline=_isInline
@@ -1,6 +1,6 @@
1
1
  {{> components/voting/voting_result_2F
2
- _title=this.title
3
- _topline=this.topline
2
+ _title=_title
3
+ _topline=_topline
4
4
  _resultBoxMessageTitle=(loca "votingform2F_title_success")
5
5
  _resultBoxMessageText=(loca "votingform2F_text_success")
6
6
  _isInline=_isInline
@@ -0,0 +1,62 @@
1
+ <form class="c-form o-box -accented -breakout js-form js-load" id="form--{{nextRandom}}" data-hr-new-newsletter='{
2
+ "trackingInformations": {{this.trackingInformations}} }'
3
+ action="{{configProperty "newsletter.subscription.endpoint"}}" method="post" accept-charset="utf-8">
4
+
5
+ <div class="c-form__row -expanded">
6
+ {{~> components/forms/components/input
7
+ _type="email"
8
+ _isEmail="true"
9
+ _name="email"
10
+ _label="E-Mail"
11
+ _labelClass="hide"
12
+ _description=""
13
+ _wrapperClass=(if this.isHidden "hidden")
14
+ _tabindex=(if this.isHidden "-1")
15
+ _required="true"
16
+ _maxLength="140"
17
+ _errorMandatory="Bitte füllen Sie dieses Pflichtfeld aus"
18
+ _errorEmail="Bitte geben Sie eine gültige E-Mail-Adresse ein."
19
+ _formId=../_formId
20
+ }}
21
+ </div>
22
+
23
+ <div class="c-form__row">
24
+ {{~> components/forms/components/choice
25
+ _inGroup="false"
26
+ _type="checkbox"
27
+ _name="checkbox"
28
+ _label=(loca "accept_data_privacy_regulation_link")
29
+ _description="Das ist der Beschreibungstext von Checkbox"
30
+ _required="true"
31
+ _errorMandatory="Bitte wählen Sie dieses Pflichtfeld aus"
32
+ }}
33
+ </a>
34
+ </div>
35
+
36
+ {{~> components/forms/components/controls }}
37
+
38
+
39
+ {{~> components/forms/components/input
40
+ _name="newsletter"
41
+ _type="hidden"
42
+ _value=this.mailingList
43
+ _hasLabel=false
44
+ }}
45
+
46
+ {{~>components/forms/components/input
47
+ _name="newsletter-type"
48
+ _type="hidden"
49
+ _value="html"
50
+ _hasLabel=false
51
+ }}
52
+
53
+ <script type="text/html" class="js-successMessage">
54
+ {{{include "components/newsletter/components/newsletter_success" }}}
55
+ </script>
56
+ <script type="text/html" class="js-errorMessage">
57
+ {{{include "components/newsletter/components/newsletter_error" }}}
58
+ </script>
59
+ <script type="text/html" class="js-alreadyRegisteredMessage">
60
+ {{{include "components/newsletter/components/newsletter_already_registered" }}}
61
+ </script>
62
+ </form>
@@ -0,0 +1,11 @@
1
+ {{#if this.alreadyRegisteredText}}
2
+ {{> components/newsletter/components/newsletter_result
3
+ _locaKeyTitle="newsletter_title_already_registered"
4
+ _text=this.alreadyRegisteredText.richtext
5
+ }}
6
+ {{else}}
7
+ {{> components/newsletter/components/newsletter_result
8
+ _locaKeyTitle="newsletter_title_already_registered"
9
+ _locaKeyText="newsletter_text_already_registered"
10
+ }}
11
+ {{/if}}
@@ -0,0 +1,11 @@
1
+ {{#if this.errorText}}
2
+ {{> components/newsletter/components/newsletter_result
3
+ _locaKeyTitle="newsletter_title_error"
4
+ _text=this.errorText.richText
5
+ }}
6
+ {{else}}
7
+ {{> components/newsletter/components/newsletter_result
8
+ _locaKeyTitle="newsletter_title_error"
9
+ _locaKeyText="newsletter_text_error"
10
+ }}
11
+ {{/if}}
@@ -0,0 +1,11 @@
1
+ {{#if this.registeredText}}
2
+ {{> components/newsletter/components/newsletter_result
3
+ _locaKeyTitle="newsletter_title_registered"
4
+ _text=this.registeredText.richtext
5
+ }}
6
+ {{else}}
7
+ {{> components/newsletter/components/newsletter_result
8
+ _locaKeyTitle="newsletter_title_registered"
9
+ _locaKeyText="newsletter_text_registered"
10
+ }}
11
+ {{/if}}
@@ -0,0 +1,15 @@
1
+ <div class="c-feedbackBox"></div>
2
+ <h2 class="c-feedbackBox__headline">{{loca _locaKeyTitle}}</h2>
3
+ <p class="c-feedbackBox__button">
4
+ {{#with this.backlink}}
5
+ <a class="c-form__button js-formReload" href="{{this}}#{{../uuid}}">{{loca "newsletter_form_back"}}</a>
6
+ {{/with}}
7
+ </p>
8
+ <p class="c-feedbackBox__text">
9
+ {{#if _locaKeyText}}
10
+ {{loca _locaKeyText}}
11
+ {{else}}
12
+ {{{_text}}}
13
+ {{/if}}
14
+ </p>
15
+ </div>
@@ -0,0 +1,11 @@
1
+ {{#if this.successText}}
2
+ {{> components/newsletter/components/newsletter_result
3
+ _locaKeyTitle="newsletter_title_success"
4
+ _text=this.successText.richtext
5
+ }}
6
+ {{else}}
7
+ {{> components/newsletter/components/newsletter_result
8
+ _locaKeyTitle="newsletter_title_success"
9
+ _locaKeyText="newsletter_text_success"
10
+ }}
11
+ {{/if}}
@@ -0,0 +1,30 @@
1
+ {{#unless this.useNewNewsletter}}
2
+ <div id="{{this.uuid}}" class="{{_addClass}} js-load" data-hr-newsletter='{"url": "{{this.url.nocache}}"}'>
3
+ {{~> components/base/a11y/hiddenText _locaTag="story_newsletter_intro_sr" ~}}
4
+ <h3 class="mb-6 text-2xl md:text-3xl font-headingSerif sm:mb-12 text-text dark:text-text-dark">
5
+ {{this.title}}
6
+ </h3>
7
+ <div class="js-formWrapper">
8
+ {{> components/newsletter/components/newsletter_form}}
9
+ </div>
10
+ {{~> components/base/a11y/hiddenText _locaTag="story_newsletter_outro_sr" ~}}
11
+ </div>
12
+ {{else}}
13
+ <div id="{{this.uuid}}" class="{{_addClass}} ">
14
+ {{~> components/base/a11y/hiddenText _locaTag="story_newsletter_intro_sr" ~}}
15
+ <h3 class="mb-6 text-2xl md:text-3xl font-headingSerif sm:mb-12 text-text dark:text-text-dark">
16
+ {{this.title}}
17
+ </h3>
18
+ {{#if this.description}}
19
+ <div class="c-form__row">
20
+ <div class="c-form__label">
21
+ {{{this.description}}}
22
+ </div>
23
+ </div>
24
+ {{/if}}
25
+ <div class="js-formWrapper">
26
+ {{> components/newsletter/components/new_newsletter_form}}
27
+ </div>
28
+ {{~> components/base/a11y/hiddenText _locaTag="story_newsletter_outro_sr" ~}}
29
+ </div>
30
+ {{/unless}}