Matthias Andreas Benkard | 12a5735 | 2021-12-28 18:02:04 +0100 | [diff] [blame] | 1 | <div role="tabpanel" class="tab-pane active" id="tab-user-auth"> |
| 2 | <div class="panel panel-default"> |
| 3 | <div class="panel-heading">{{ lang.user.mailbox_general }}</div> |
| 4 | <div class="panel-body"> |
| 5 | {% if not skip_sogo %} |
| 6 | <div class="row"> |
| 7 | <div class="hidden-xs col-md-3 col-xs-5 text-right"></div> |
| 8 | <div class="col-md-3 col-xs-12"> |
| 9 | {% if dual_login and allow_admin_email_login == 'n' %} |
| 10 | <button disabled class="btn btn-default btn-block btn-xs-lg"> |
| 11 | <i class="bi bi-inbox-fill"></i> {{ lang.user.open_webmail_sso }} |
| 12 | </button> |
| 13 | {% else %} |
| 14 | <a target="_blank" href="/sogo-auth.php?login={{ mailcow_cc_username }}" role="button" class="btn btn-default btn-block btn-xs-lg"> |
| 15 | <i class="bi bi-inbox-fill"></i> {{ lang.user.open_webmail_sso }} |
| 16 | </a> |
| 17 | {% endif %} |
| 18 | </div> |
| 19 | </div> |
| 20 | <hr> |
| 21 | <div class="row"> |
| 22 | <div class="hidden-xs col-md-3 col-xs-5 text-right"></div> |
| 23 | <div class="col-md-9 col-xs-12"> |
| 24 | <p class="help-block help-block-mt-0">{{ lang.user.direct_protocol_access|raw }}</p> |
| 25 | {% if mailboxdata.attributes.imap_access == 1 %}<div class="label label-success label-protocol-access">IMAP <i class="bi bi-check-lg"></i></div>{% else %}<div class="label label-danger label-protocol-access">IMAP <i class="bi bi-x-lg"></i></div>{% endif %} |
| 26 | {% if mailboxdata.attributes.smtp_access == 1 %}<div class="label label-success label-protocol-access">SMTP <i class="bi bi-check-lg"></i></div>{% else %}<div class="label label-danger label-protocol-access">SMTP <i class="bi bi-x-lg"></i></div>{% endif %} |
| 27 | {% if mailboxdata.attributes.sieve_access == 1 %}<div class="label label-success label-protocol-access">Sieve <i class="bi bi-check-lg"></i></div>{% else %}<div class="label label-danger label-protocol-access">Sieve <i class="bi bi-x-lg"></i></div>{% endif %} |
| 28 | {% if mailboxdata.attributes.pop3_access == 1 %}<div class="label label-success label-protocol-access">POP3 <i class="bi bi-check-lg"></i></div>{% else %}<div class="label label-danger label-protocol-access">POP3 <i class="bi bi-x-lg"></i></div>{% endif %} |
| 29 | {% if mailboxdata.attributes.sogo_access == 1 %}<div class="label label-success label-protocol-access">SOGo <i class="bi bi-check-lg"></i></div>{% else %}<div class="label label-danger label-protocol-access">SOGo <i class="bi bi-x-lg"></i></div>{% endif %} |
| 30 | </div> |
| 31 | </div> |
| 32 | <hr> |
| 33 | {% endif %} |
| 34 | <div class="row"> |
| 35 | <div class="col-md-3 col-xs-12 text-right text-xs-left space20">{{ lang.user.in_use }}:</div> |
| 36 | <div class="col-md-5 col-xs-12"> |
| 37 | <div class="progress"> |
| 38 | <div class="progress-bar progress-bar-{{ mailboxdata.percent_class }}" role="progressbar" aria-valuenow="{{ mailboxdata.percent_in_use }}" aria-valuemin="0" aria-valuemax="100" style="min-width:2em;width: {{ mailboxdata.percent_in_use }}%;"> |
| 39 | {{ mailboxdata.percent_in_use }}% |
| 40 | </div> |
| 41 | </div> |
| 42 | <p>{{ mailboxdata.quota_used|formatBytes(2) }} / {% if mailboxdata.quota == 0 %}∞{% else %}{{ mailboxdata.quota|formatBytes(2) }}{% endif %}<br>{{ mailboxdata.messages }} {{ lang.user.messages }}</p> |
| 43 | <hr> |
| 44 | <p><a href="#pwChangeModal" data-toggle="modal"><i class="bi bi-pencil-fill"></i> {{ lang.user.change_password }}</a></p> |
| 45 | </div> |
| 46 | </div> |
| 47 | <hr> |
| 48 | {# FIDO2 #} |
| 49 | <div class="row"> |
| 50 | <div class="col-sm-3 col-xs-12 text-right text-xs-left"> |
| 51 | <p><i class="bi bi-shield-fill-check"></i> {{ lang.fido2.fido2_auth }}</p> |
| 52 | </div> |
| 53 | </div> |
| 54 | <div class="row"> |
| 55 | <div class="col-sm-3 col-xs-12 text-right text-xs-left space20"> |
| 56 | {{ lang.fido2.known_ids }}: |
| 57 | </div> |
| 58 | <div class="col-sm-9 col-xs-12"> |
| 59 | <div class="table-responsive"> |
| 60 | <table class="table table-striped table-hover table-condensed" id="fido2_keys"> |
| 61 | <tr> |
| 62 | <th>ID</th> |
| 63 | <th style="min-width:240px;text-align: right">{{ lang.admin.action }}</th> |
| 64 | </tr> |
| 65 | {% include 'fido2.twig' %} |
| 66 | </table> |
| 67 | </div> |
| 68 | <br> |
| 69 | </div> |
| 70 | </div> |
| 71 | <div class="row"> |
| 72 | <div class="col-sm-offset-3 col-sm-9"> |
| 73 | <div class="btn-group nowrap"> |
| 74 | <button class="btn btn-sm btn-primary visible-xs-block visible-sm-inline visible-md-inline visible-lg-inline" id="register-fido2">{{ lang.fido2.set_fido2 }}</button> |
| 75 | <button type="button" class="btn btn-sm btn-xs-lg btn-primary dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"> |
| 76 | <span class="caret"></span> |
| 77 | </button> |
| 78 | <ul class="dropdown-menu"> |
| 79 | <li><a href="#" id="register-fido2-touchid" style="line-height:1.4;"><i class="bi bi-apple"></i> {{ lang.fido2.set_fido2_touchid }}</a></li> |
| 80 | </ul> |
| 81 | </div> |
| 82 | </div> |
| 83 | </div> |
| 84 | <br> |
| 85 | <div class="row" id="status-fido2"> |
| 86 | <div class="col-sm-3 col-xs-5 text-right">{{ lang.fido2.register_status }}:</div> |
| 87 | <div class="col-sm-9 col-xs-7"> |
| 88 | <div id="fido2-alerts">-</div> |
| 89 | </div> |
| 90 | <br> |
| 91 | </div> |
| 92 | <hr> |
| 93 | <div class="row"> |
| 94 | <div class="col-md-3 col-xs-12 text-right text-xs-left space20"><i class="bi bi-file-earmark-text"></i> {{ lang.user.apple_connection_profile }}:</div> |
| 95 | <div class="col-md-9 col-xs-12"> |
| 96 | <p><i class="bi bi-file-earmark-post"></i> <a href="/mobileconfig.php?only_email">{{ lang.user.email }}</a> <small>IMAP, SMTP</small></p> |
| 97 | <p class="help-block">{{ lang.user.apple_connection_profile_mailonly }}</p> |
| 98 | {% if not skip_sogo %} |
| 99 | <p><i class="bi bi-file-earmark-post"></i> <a href="/mobileconfig.php">{{ lang.user.email_and_dav }}</a> <small>IMAP, SMTP, Cal/CardDAV</small></p> |
| 100 | <p class="help-block">{{ lang.user.apple_connection_profile_complete }}</p> |
| 101 | {% endif %} |
| 102 | </div> |
| 103 | </div> |
| 104 | <div class="row"> |
| 105 | <div class="col-md-3 col-xs-12 text-right text-xs-left space20"><i class="bi bi-file-earmark-text"></i> {{ lang.user.apple_connection_profile }}<br />{{ lang.user.with_app_password }}:</div> |
| 106 | <div class="col-md-9 col-xs-12"> |
| 107 | <p><i class="bi bi-file-earmark-post"></i> <a href="/mobileconfig.php?only_email&app_password">{{ lang.user.email }}</a> <small>IMAP, SMTP</small></p> |
| 108 | <p class="help-block">{{ lang.user.apple_connection_profile_mailonly }} {{ lang.user.apple_connection_profile_with_app_password }}</p> |
| 109 | {% if not skip_sogo %} |
| 110 | <p><i class="bi bi-file-earmark-post"></i> <a href="/mobileconfig.php?app_password">{{ lang.user.email_and_dav }}</a> <small>IMAP, SMTP, Cal/CardDAV</small></p> |
| 111 | <p class="help-block">{{ lang.user.apple_connection_profile_complete }} {{ lang.user.apple_connection_profile_with_app_password }}</p> |
| 112 | {% endif %} |
| 113 | </div> |
| 114 | </div> |
| 115 | <hr> |
| 116 | <div class="row"> |
| 117 | <div class="col-sm-offset-3 col-sm-9"> |
| 118 | {% if mailboxdata.attributes.force_pw_update == '1' %} |
| 119 | <div class="alert alert-danger">{{ lang.user.force_pw_update|raw }}</div> |
| 120 | {% endif %} |
| 121 | <p><a target="_blank" href="https://mailcow.github.io/mailcow-dockerized-docs/client/#{{ clientconfigstr }}">[{{ lang.user.client_configuration }}]</a></p> |
| 122 | <p><a href="#userFilterModal" data-toggle="modal">[{{ lang.user.show_sieve_filters }}]</a></p> |
| 123 | <hr> |
| 124 | <h4 class="recent-login-success pull-left">{{ lang.user.recent_successful_connections }}</h4> |
| 125 | <div class="dropdown pull-left pull-xs-right"> |
| 126 | <button class="btn btn-default btn-xs btn-xs-lg dropdown-toggle" type="button" id="history_sasl_days" data-toggle="dropdown">{{ lang.user.login_history }} <span class="caret"></span></button> |
| 127 | <ul class="dropdown-menu"> |
| 128 | <li class="login-history" data-days="1"><a href="#">1 {{ lang.user.day }}</a></li> |
| 129 | <li class="login-history active" data-days="7"><a href="#">1 {{ lang.user.week }}</a></li> |
| 130 | <li class="login-history" data-days="14"><a href="#">2 {{ lang.user.weeks }}</a></li> |
| 131 | <li class="login-history" data-days="31"><a href="#">1 {{ lang.user.month }}</a></li> |
| 132 | </ul> |
| 133 | </div> |
| 134 | <div class="clearfix"></div> |
| 135 | <div class="last-login"></div> |
| 136 | <span class="clear-last-logins"> |
| 137 | {{ lang.user.clear_recent_successful_connections }} |
| 138 | </span> |
| 139 | </div> |
| 140 | </div> |
| 141 | </div> |
| 142 | </div> |
| 143 | </div> |