summaryrefslogtreecommitdiff
path: root/app/views/profiles/notifications/_email_settings.html.haml
blob: c4de33dcd9e51c3edd78052e75f2adbaeceee2c4 (plain)
1
2
3
4
5
6
7
8
- form = local_assigns.fetch(:form)
.form-group
  = form.label :notification_email, _('Notification Email'), class: "label-bold"
  = form.select :notification_email, @user.public_verified_emails, { include_blank: _('Use primary email (%{email})') % { email: @user.email }, selected: @user.notification_email }, class: "select2", disabled: local_assigns.fetch(:email_change_disabled, nil)
  .help-block
    = local_assigns.fetch(:help_text, nil)
.form-group
  = form.gitlab_ui_checkbox_component :email_opted_in, _('Receive product marketing emails')