Matthias Andreas Benkard | 12a5735 | 2021-12-28 18:02:04 +0100 | [diff] [blame] | 1 | <div role="tabpanel" class="tab-pane" id="tab-user-settings"> |
| 2 | <div class="panel panel-default"> |
| 3 | <div class="panel-heading">{{ lang.user.mailbox_settings }}</div> |
| 4 | <div class="panel-body"> |
| 5 | {# Show tagging options #} |
| 6 | <div class="row"> |
| 7 | <div class="col-sm-3 col-xs-12 text-right text-xs-left text-xs-bold space20">{{ lang.user.tag_handling }}:</div> |
| 8 | <div class="col-sm-9 col-xs-12"> |
| 9 | <div class="btn-group" data-acl="{{ acl.delimiter_action }}"> |
| 10 | <button type="button" class="btn btn-sm btn-xs-third visible-xs-block visible-sm-inline visible-md-inline visible-lg-inline btn-default{% if get_tagging_options == 'subfolder' %} active{% endif %}" |
| 11 | data-action="edit_selected" |
| 12 | data-item="{{ mailcow_cc_username }}" |
| 13 | data-id="delimiter_action" |
| 14 | data-api-url='edit/delimiter_action' |
| 15 | data-api-attr='{"tagged_mail_handler":"subfolder"}'>{{ lang.user.tag_in_subfolder }}</button> |
| 16 | <button type="button" class="btn btn-sm btn-xs-third visible-xs-block visible-sm-inline visible-md-inline visible-lg-inline btn-default{% if get_tagging_options == 'subject' %} active{% endif %}" |
| 17 | data-action="edit_selected" |
| 18 | data-item="{{ mailcow_cc_username }}" |
| 19 | data-id="delimiter_action" |
| 20 | data-api-url='edit/delimiter_action' |
| 21 | data-api-attr='{"tagged_mail_handler":"subject"}'>{{ lang.user.tag_in_subject }}</button> |
| 22 | <button type="button" class="btn btn-sm btn-xs-third visible-xs-block visible-sm-inline visible-md-inline visible-lg-inline btn-default{% if get_tagging_options == 'none' %} active{% endif %}" |
| 23 | data-action="edit_selected" |
| 24 | data-item="{{ mailcow_cc_username }}" |
| 25 | data-id="delimiter_action" |
| 26 | data-api-url='edit/delimiter_action' |
| 27 | data-api-attr='{"tagged_mail_handler":"none"}'>{{ lang.user.tag_in_none }}</button> |
| 28 | <div class="clearfix visible-xs"></div> |
| 29 | </div> |
| 30 | <p class="help-block">{{ lang.user.tag_help_explain|raw }}</p> |
| 31 | <p class="help-block">{{ lang.user.tag_help_example|raw }}</p> |
| 32 | </div> |
| 33 | </div> |
| 34 | {# Show TLS policy options #} |
| 35 | <div class="row"> |
| 36 | <div class="col-sm-3 col-xs-12 text-right text-xs-left text-xs-bold space20">{{ lang.user.tls_policy }}:</div> |
| 37 | <div class="col-sm-9 col-xs-12"> |
| 38 | <div class="btn-group" data-acl="{{ acl.tls_policy }}"> |
| 39 | <button type="button" class="btn btn-sm btn-xs-half visible-xs-block visible-sm-inline visible-md-inline visible-lg-inline btn-default{% if get_tls_policy.tls_enforce_in == '1' %} active"{% endif %}" |
| 40 | data-action="edit_selected" |
| 41 | data-item="{{ mailcow_cc_username }}" |
| 42 | data-id="tls_policy" |
| 43 | data-api-url='edit/tls_policy' |
| 44 | data-api-attr='{"tls_enforce_in": {% if get_tls_policy.tls_enforce_in == '1' %}0{% else %}1{% endif %} }'>{{ lang.user.tls_enforce_in }}</button> |
| 45 | <button type="button" class="btn btn-sm btn-xs-half visible-xs-block visible-sm-inline visible-md-inline visible-lg-inline btn-default{% if get_tls_policy.tls_enforce_out == '1' %} active"{% endif %}" |
| 46 | data-action="edit_selected" |
| 47 | data-item="{{ mailcow_cc_username }}" |
| 48 | data-id="tls_policy" |
| 49 | data-api-url='edit/tls_policy' |
| 50 | data-api-attr='{"tls_enforce_out": {% if get_tls_policy.tls_enforce_out == '1' %}0{% else %}1{% endif %} }'>{{ lang.user.tls_enforce_out }}</button> |
| 51 | <div class="clearfix visible-xs"></div> |
| 52 | </div> |
| 53 | <p class="help-block">{{ lang.user.tls_policy_warning|raw }}</p> |
| 54 | </div> |
| 55 | </div> |
| 56 | {# Show quarantine_notification options #} |
| 57 | <div class="row"> |
| 58 | <div class="col-sm-3 col-xs-12 text-right text-xs-left text-xs-bold space20">{{ lang.user.quarantine_notification }}:</div> |
| 59 | <div class="col-sm-9 col-xs-12"> |
| 60 | <div class="btn-group" data-acl="{{ acl.quarantine_notification }}"> |
| 61 | <button type="button" class="btn btn-sm btn-xs-quart visible-xs-block visible-sm-inline visible-md-inline visible-lg-inline btn-default{% if quarantine_notification == 'never' %} active{% endif %}" |
| 62 | data-action="edit_selected" |
| 63 | data-item="{{ mailcow_cc_username }}" |
| 64 | data-id="quarantine_notification" |
| 65 | data-api-url='edit/quarantine_notification' |
| 66 | data-api-attr='{"quarantine_notification":"never"}'>{{ lang.user.never }}</button> |
| 67 | <button type="button" class="btn btn-sm btn-xs-quart visible-xs-block visible-sm-inline visible-md-inline visible-lg-inline btn-default{% if quarantine_notification == 'hourly' %} active{% endif %}" |
| 68 | data-action="edit_selected" |
| 69 | data-item="{{ mailcow_cc_username }}" |
| 70 | data-id="quarantine_notification" |
| 71 | data-api-url='edit/quarantine_notification' |
| 72 | data-api-attr='{"quarantine_notification":"hourly"}'>{{ lang.user.hourly }}</button> |
| 73 | <button type="button" class="btn btn-sm btn-xs-quart visible-xs-block visible-sm-inline visible-md-inline visible-lg-inline btn-default{% if quarantine_notification == 'daily' %} active{% endif %}" |
| 74 | data-action="edit_selected" |
| 75 | data-item="{{ mailcow_cc_username }}" |
| 76 | data-id="quarantine_notification" |
| 77 | data-api-url='edit/quarantine_notification' |
| 78 | data-api-attr='{"quarantine_notification":"daily"}'>{{ lang.user.daily }}</button> |
| 79 | <button type="button" class="btn btn-sm btn-xs-quart visible-xs-block visible-sm-inline visible-md-inline visible-lg-inline btn-default{% if quarantine_notification == 'weekly' %} active{% endif %}" |
| 80 | data-action="edit_selected" |
| 81 | data-item="{{ mailcow_cc_username }}" |
| 82 | data-id="quarantine_notification" |
| 83 | data-api-url='edit/quarantine_notification' |
| 84 | data-api-attr='{"quarantine_notification":"weekly"}'>{{ lang.user.weekly }}</button> |
| 85 | <div class="clearfix visible-xs"></div> |
| 86 | </div> |
| 87 | <p class="help-block">{{ lang.user.quarantine_notification_info }}</p> |
| 88 | </div> |
| 89 | </div> |
| 90 | <div class="row"> |
| 91 | <div class="col-sm-3 col-xs-12 text-right text-xs-left text-xs-bold space20">{{ lang.user.quarantine_category }}:</div> |
| 92 | <div class="col-sm-9 col-xs-12"> |
| 93 | <div class="btn-group" data-acl="{{ acl.quarantine_category }}"> |
| 94 | <button type="button" class="btn btn-sm btn-xs-third visible-xs-block visible-sm-inline visible-md-inline visible-lg-inline btn-default{% if quarantine_category == 'reject' %} active{% endif %}" |
| 95 | data-action="edit_selected" |
| 96 | data-item="{{ mailcow_cc_username }}" |
| 97 | data-id="quarantine_category" |
| 98 | data-api-url='edit/quarantine_category' |
| 99 | data-api-attr='{"quarantine_category":"reject"}'>{{ lang.user.q_reject }}</button> |
| 100 | <button type="button" class="btn btn-sm btn-xs-third visible-xs-block visible-sm-inline visible-md-inline visible-lg-inline btn-default{% if quarantine_category == 'add_header' %} active{% endif %}" |
| 101 | data-action="edit_selected" |
| 102 | data-item="{{ mailcow_cc_username }}" |
| 103 | data-id="quarantine_category" |
| 104 | data-api-url='edit/quarantine_category' |
| 105 | data-api-attr='{"quarantine_category":"add_header"}'>{{ lang.user.q_add_header }}</button> |
| 106 | <button type="button" class="btn btn-sm btn-xs-third visible-xs-block visible-sm-inline visible-md-inline visible-lg-inline btn-default{% if quarantine_category == 'all' %} active{% endif %}" |
| 107 | data-action="edit_selected" |
| 108 | data-item="{{ mailcow_cc_username }}" |
| 109 | data-id="quarantine_category" |
| 110 | data-api-url='edit/quarantine_category' |
| 111 | data-api-attr='{"quarantine_category":"all"}'>{{ lang.user.q_all }}</button> |
| 112 | <div class="clearfix visible-xs"></div> |
| 113 | </div> |
| 114 | <p class="help-block">{{ lang.user.quarantine_category_info }}</p> |
| 115 | </div> |
| 116 | </div> |
| 117 | {% if not skip_sogo %} |
| 118 | <hr> |
| 119 | <div class="row"> |
| 120 | <div class="col-sm-3 col-xs-12 text-right text-xs-left text-xs-bold space20">{{ lang.user.eas_reset }}:</div> |
| 121 | <div class="col-sm-9 col-xs-12"> |
| 122 | <button class="btn btn-sm visible-xs-block visible-sm-inline visible-md-inline visible-lg-inline btn-default" data-acl="{{ acl.eas_reset }}" data-action="delete_selected" data-text="{{ lang.user.eas_reset }}?" data-item="{{ mailcow_cc_username }}" data-id="eas_cache" data-api-url='delete/eas_cache' href="#">{{ lang.user.eas_reset_now }}</button> |
| 123 | <p class="help-block">{{ lang.user.eas_reset_help|raw }}</p> |
| 124 | </div> |
| 125 | </div> |
| 126 | <div class="row"> |
| 127 | <div class="col-sm-3 col-xs-12 text-right text-xs-left text-xs-bold space20">{{ lang.user.sogo_profile_reset }}:</div> |
| 128 | <div class="col-sm-9 col-xs-12"> |
| 129 | <button class="btn btn-sm visible-xs-block visible-sm-inline visible-md-inline visible-lg-inline btn-default" data-acl="{{ acl.sogo_profile_reset }}" data-action="delete_selected" data-text="{{ lang.user.sogo_profile_reset }}?" data-item="{{ mailcow_cc_username }}" data-id="sogo_profile" data-api-url='delete/sogo_profile' href="#">{{ lang.user.sogo_profile_reset_now }}</button> |
| 130 | <p class="help-block">{{ lang.user.sogo_profile_reset_help|raw }}</p> |
| 131 | </div> |
| 132 | </div> |
| 133 | {% endif %} |
| 134 | </div> |
| 135 | </div> |
| 136 | </div> |