123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566 |
- %h1
- = t 'settings.settings'
- %h2
- = t 'settings.calendar'
- .row
- .col-md-12
- %em
- = t 'settings.descriptions.calendar'
- .form-group
- .input-group
- = text_field_tag(:calurl, person_calendar_url(@person.calendar_token), readonly: true, id: 'calurl', class: 'form-control')
- %span.input-group-btn
- = button_tag(class: 'btn btn-default copy-url', data: {'clipboard-target': '#calurl'}) do
- %i.far.fa-files
- .form-group
- .input-group
- = text_field_tag(:calurl_nocancel, person_calendar_url(@person.calendar_token, skipcancel: 1), readonly: true, id: 'calurl-skipcancel', class: 'form-control')
- %span.input-group-btn
- = button_tag(class: 'btn btn-default copy-url', data: {'clipboard-target': '#calurl-skipcancel'}) do
- %i.far.fa-files
- %h2
- = t 'settings.email_settings'
- = form_tag(update_email_settings_path, method: "post", class: "form") do
- .row
- .col-md-4
- %label
- = check_box_tag(:send_attendance_reminder, 'send_attendance_reminder', @send_attendance_reminder)
- = t('settings.names.send_attendance_reminder')
- .col-md-8
- %p
- %em= t 'settings.descriptions.send_attendance_reminder'
- = submit_tag t('helpers.submit.submit', model: t('settings.settings')), class: 'btn btn-primary'
- %h2
- = t 'settings.logout_all_sessions'
- %p
- %em= t 'settings.descriptions.logout_all_sessions'
- %p
- = t 'settings.descriptions.logged_in_at_count', count: @active_sessions
- = form_tag(logout_all_path, method: 'post', class: 'form') do
- = submit_tag t('settings.logout_all_sessions'), class: 'btn btn-danger', data: {confirm: t(:areyousure)}
- %h2
- = t 'settings.change_password'
- = form_tag(update_password_path, method: 'post', class: 'form') do
- .form-group
- = label_tag(:current_password, t('authentication.current_password'))
- = password_field_tag(:current_password, '', class: 'form-control')
- .form-group
- = label_tag(:new_password, t('authentication.new_password'))
- = password_field_tag(:new_password, '', class: 'form-control')
- .form-group
- = label_tag(:new_password_confirm, t('authentication.new_password_confirm'))
- = password_field_tag(:new_password_confirm, '', class: 'form-control')
- = submit_tag t('settings.change_password'), class: 'btn btn-primary'
|