<div class="profile-notifications"
{% if by_email %}
action="{{ path('updateUserNotification', { hash: user.hashIdentify }) }}"
data-mode="email"
{% else %}
action="{{ path('userEditNotification', { id: user.id }) }}"
data-mode="profile"
{% endif %}>
<p class="instruction">{{ getLanguage('like_to_be_notified', 'profile') }}</p>
<button id="btn_activate_all" class="btn-activate btn-border">{{ getLanguage('disable_all', 'profile') }}</button>
<div class="notification">
{% include 'website/controls/switch.html.twig' with {
name: 'allowNotifyNewLesson',
customClass: 'check-input',
checked: (user.allowNotifyNewLesson == enum('UserEnum::YES')),
}%}
<label for="allowNotifyNewLesson">{{ getLanguage('enrolled_in', 'profile') }}</label>
</div>
<div class="notification">
{% include 'website/controls/switch.html.twig' with {
name: 'allowNotifyNewExam',
customClass: 'check-input',
checked: (user.allowNotifyNewExam == enum('UserEnum::YES')),
}%}
<label for="allowNotifyNewExam">{{ getLanguage('courses_enrolled_in', 'profile') }}</label>
</div>
<div class="notification">
{% include 'website/controls/switch.html.twig' with {
name: 'allowNotifyNewSupportMessage',
customClass: 'check-input',
checked: (user.allowNotifyNewSupportMessage == enum('UserEnum::YES')),
}%}
<label for="allowNotifyNewSupportMessage">{{ getLanguage('courses_i_teach', 'profile') }}</label>
</div>
<div class="notification">
{% include 'website/controls/switch.html.twig' with {
name: 'allowNotifyNewSupportAnswer',
customClass: 'check-input',
checked: (user.allowNotifyNewSupportAnswer == enum('UserEnum::YES')),
}%}
<label for="allowNotifyNewSupportAnswer">{{ getLanguage('support_requests', 'profile') }}</label>
</div>
<div class="notification">
{% include 'website/controls/switch.html.twig' with {
name: 'allowNotifyNewMessage',
customClass: 'check-input',
checked: (user.allowNotifyNewMessage == enum('UserEnum::YES')),
}%}
<label for="allowNotifyNewMessage">{{ getLanguage('messages_or_replies', 'profile') }}</label>
</div>
<div class="notification">
{% include 'website/controls/switch.html.twig' with {
name: 'allowNotifyNewGroupMessage',
customClass: 'check-input',
checked: (user.allowNotifyNewGroupMessage == enum('UserEnum::YES')),
}%}
<label for="allowNotifyNewGroupMessage">{{ getLanguage('courses_i_take', 'profile') }}</label>
</div>
<div class="notification">
{% include 'website/controls/switch.html.twig' with {
name: 'allowNotifyCart',
customClass: 'check-input',
checked: (user.allowNotifyCart == enum('UserEnum::YES')),
}%}
<label for="allowNotifyCart">{{ getLanguage('not_finalizing_the_purchase', 'profile') }}</label>
</div>
</div>