2022-04-14 17:40:04 +03:00
|
|
|
<h4 class="gh-main-section-header small bn">Newsletters</h4>
|
|
|
|
<div class="gh-main-section-content grey">
|
2022-04-19 18:04:03 +03:00
|
|
|
<div class="gh-member-newsletters">
|
|
|
|
{{#each this.newsletters as |newsletter|}}
|
|
|
|
<div class="gh-member-newsletter-row">
|
|
|
|
<div>
|
|
|
|
<h4 class="gh-member-newsletter-title">{{newsletter.name}}</h4>
|
|
|
|
</div>
|
|
|
|
<div class="for-switch">
|
|
|
|
<label class="switch" for={{newsletter.forId}}>
|
|
|
|
<Input
|
|
|
|
@checked={{newsletter.subscribed}}
|
|
|
|
@type="checkbox"
|
|
|
|
id={{newsletter.forId}}
|
|
|
|
name="subscribed"
|
|
|
|
data-test-checkbox="member-subscribed"
|
|
|
|
{{on "click" (fn this.updateNewsletterPreference newsletter)}}
|
|
|
|
/>
|
|
|
|
<span class="input-toggle-component"></span>
|
|
|
|
</label>
|
|
|
|
</div>
|
2022-04-14 17:40:04 +03:00
|
|
|
</div>
|
2022-04-19 18:04:03 +03:00
|
|
|
{{/each}}
|
|
|
|
</div>
|
2022-04-14 17:40:04 +03:00
|
|
|
</div>
|