templates/website/user/profile/user-profile-notifications.html.twig line 1

Open in your IDE?
  1. <div class="profile-notifications"
  2.     {% if by_email %}
  3.         action="{{ path('updateUserNotification', { hash: user.hashIdentify }) }}"
  4.         data-mode="email"
  5.     {% else %}
  6.         action="{{ path('userEditNotification', { id: user.id }) }}"
  7.         data-mode="profile"
  8.     {% endif %}>
  9.     <p class="instruction">{{ getLanguage('like_to_be_notified', 'profile') }}</p>
  10.     <button id="btn_activate_all" class="btn-activate btn-border">{{ getLanguage('disable_all', 'profile') }}</button>
  11.     <div class="notification">
  12.         {% include 'website/controls/switch.html.twig' with {
  13.             name: 'allowNotifyNewLesson',
  14.             customClass: 'check-input',
  15.             checked: (user.allowNotifyNewLesson == enum('UserEnum::YES')),
  16.         }%}
  17.         <label for="allowNotifyNewLesson">{{ getLanguage('enrolled_in', 'profile') }}</label>
  18.     </div>
  19.     <div class="notification">
  20.         {% include 'website/controls/switch.html.twig' with {
  21.             name: 'allowNotifyNewExam',
  22.             customClass: 'check-input',
  23.             checked: (user.allowNotifyNewExam == enum('UserEnum::YES')),
  24.         }%}
  25.         <label for="allowNotifyNewExam">{{ getLanguage('courses_enrolled_in', 'profile') }}</label>
  26.     </div>
  27.     <div class="notification">
  28.         {% include 'website/controls/switch.html.twig' with {
  29.             name: 'allowNotifyNewSupportMessage',
  30.             customClass: 'check-input',
  31.             checked: (user.allowNotifyNewSupportMessage == enum('UserEnum::YES')),
  32.         }%}
  33.         <label for="allowNotifyNewSupportMessage">{{ getLanguage('courses_i_teach', 'profile') }}</label>
  34.     </div>
  35.     <div class="notification">
  36.         {% include 'website/controls/switch.html.twig' with {
  37.             name: 'allowNotifyNewSupportAnswer',
  38.             customClass: 'check-input',
  39.             checked: (user.allowNotifyNewSupportAnswer == enum('UserEnum::YES')),
  40.         }%}
  41.         <label for="allowNotifyNewSupportAnswer">{{ getLanguage('support_requests', 'profile') }}</label>
  42.     </div>
  43.     <div class="notification">
  44.         {% include 'website/controls/switch.html.twig' with {
  45.             name: 'allowNotifyNewMessage',
  46.             customClass: 'check-input',
  47.             checked: (user.allowNotifyNewMessage == enum('UserEnum::YES')),
  48.         }%}
  49.         <label for="allowNotifyNewMessage">{{ getLanguage('messages_or_replies', 'profile') }}</label>
  50.     </div>
  51.     <div class="notification">
  52.         {% include 'website/controls/switch.html.twig' with {
  53.             name: 'allowNotifyNewGroupMessage',
  54.             customClass: 'check-input',
  55.             checked: (user.allowNotifyNewGroupMessage == enum('UserEnum::YES')),
  56.         }%}
  57.         <label for="allowNotifyNewGroupMessage">{{ getLanguage('courses_i_take', 'profile') }}</label>
  58.     </div>
  59.     <div class="notification">
  60.         {% include 'website/controls/switch.html.twig' with {
  61.             name: 'allowNotifyCart',
  62.             customClass: 'check-input',
  63.             checked: (user.allowNotifyCart == enum('UserEnum::YES')),
  64.         }%}
  65.         <label for="allowNotifyCart">{{ getLanguage('not_finalizing_the_purchase', 'profile') }}</label>
  66.     </div>
  67. </div>