Matthias Andreas Benkard | 12a5735 | 2021-12-28 18:02:04 +0100 | [diff] [blame] | 1 | <!-- change fido2 fn --> |
| 2 | <div class="modal fade" id="fido2ChangeFn" tabindex="-1" role="dialog" aria-hidden="true"> |
| 3 | <div class="modal-dialog modal-lg"> |
| 4 | <div class="modal-content"> |
| 5 | <div class="modal-header"> |
Matthias Andreas Benkard | 12a5735 | 2021-12-28 18:02:04 +0100 | [diff] [blame] | 6 | <h3 class="modal-title">{{ lang.fido2.set_fn }}</h3> |
Matthias Andreas Benkard | 1ba5381 | 2022-12-27 17:32:58 +0100 | [diff] [blame] | 7 | <p class="text-muted" style="word-break:break-all" id="fido2_subject_desc" data-fido2-subject=""></p> |
| 8 | <button type="button" class="btn-close" data-bs-dismiss="modal"></button> |
Matthias Andreas Benkard | 12a5735 | 2021-12-28 18:02:04 +0100 | [diff] [blame] | 9 | </div> |
| 10 | <div class="modal-body"> |
| 11 | <form class="form-horizontal" data-cached-form="false" data-id="fido2ChangeFn" role="form" method="post" autocomplete="off"> |
| 12 | <input type="hidden" class="form-control" name="fido2_cid" id="fido2_cid"> |
Matthias Andreas Benkard | 1ba5381 | 2022-12-27 17:32:58 +0100 | [diff] [blame] | 13 | <div class="row mb-4"> |
| 14 | <label class="control-label col-sm-4 text-end" for="fido2_fn">{{ lang.fido2.fn }}:</label> |
Matthias Andreas Benkard | 12a5735 | 2021-12-28 18:02:04 +0100 | [diff] [blame] | 15 | <div class="col-sm-8"> |
| 16 | <input type="text" class="form-control" name="fido2_fn"> |
| 17 | </div> |
| 18 | </div> |
Matthias Andreas Benkard | 1ba5381 | 2022-12-27 17:32:58 +0100 | [diff] [blame] | 19 | <div class="row"> |
| 20 | <div class="offset-sm-4 col-sm-8"> |
| 21 | <button class="btn btn-xs-lg d-block d-sm-inline btn-success" data-action="edit_selected" data-id="fido2ChangeFn" data-item="null" data-api-url='edit/fido2-fn' data-api-attr='{}' href="#">{{ lang.admin.save }}</button> |
Matthias Andreas Benkard | 12a5735 | 2021-12-28 18:02:04 +0100 | [diff] [blame] | 22 | </div> |
| 23 | </div> |
| 24 | </form> |
| 25 | </div> |
| 26 | </div> |
| 27 | </div> |
| 28 | </div><!-- add domain admin modal --> |
| 29 | <!-- add sync job modal --> |
| 30 | <div class="modal fade" id="addSyncJobModal" tabindex="-1" role="dialog" aria-hidden="true"> |
Matthias Andreas Benkard | 1ba5381 | 2022-12-27 17:32:58 +0100 | [diff] [blame] | 31 | <div class="modal-dialog modal-xl"> |
Matthias Andreas Benkard | 12a5735 | 2021-12-28 18:02:04 +0100 | [diff] [blame] | 32 | <div class="modal-content"> |
| 33 | <div class="modal-header"> |
Matthias Andreas Benkard | 12a5735 | 2021-12-28 18:02:04 +0100 | [diff] [blame] | 34 | <h3 class="modal-title">{{ lang.add.syncjob }}</h3> |
Matthias Andreas Benkard | 1ba5381 | 2022-12-27 17:32:58 +0100 | [diff] [blame] | 35 | <button type="button" class="btn-close" data-bs-dismiss="modal"></button> |
Matthias Andreas Benkard | 12a5735 | 2021-12-28 18:02:04 +0100 | [diff] [blame] | 36 | </div> |
| 37 | <div class="modal-body"> |
| 38 | <p>{{ lang.add.syncjob_hint }}</p> |
| 39 | <form class="form-horizontal" data-cached-form="true" role="form" data-id="add_syncjob"> |
Matthias Andreas Benkard | 1ba5381 | 2022-12-27 17:32:58 +0100 | [diff] [blame] | 40 | <div class="row mb-2"> |
Matthias Andreas Benkard | 12a5735 | 2021-12-28 18:02:04 +0100 | [diff] [blame] | 41 | <label class="control-label col-sm-2" for="host1">{{ lang.add.hostname }}</label> |
| 42 | <div class="col-sm-10"> |
| 43 | <input type="text" class="form-control" name="host1" required> |
| 44 | </div> |
| 45 | </div> |
Matthias Andreas Benkard | 1ba5381 | 2022-12-27 17:32:58 +0100 | [diff] [blame] | 46 | <div class="row mb-4"> |
Matthias Andreas Benkard | 12a5735 | 2021-12-28 18:02:04 +0100 | [diff] [blame] | 47 | <label class="control-label col-sm-2" for="port1">{{ lang.add.port }}</label> |
| 48 | <div class="col-sm-10"> |
| 49 | <input type="number" class="form-control" name="port1" min="1" max="65535" value="143" required> |
Matthias Andreas Benkard | 1ba5381 | 2022-12-27 17:32:58 +0100 | [diff] [blame] | 50 | <small class="text-muted">1-65535</small> |
Matthias Andreas Benkard | 12a5735 | 2021-12-28 18:02:04 +0100 | [diff] [blame] | 51 | </div> |
| 52 | </div> |
Matthias Andreas Benkard | 1ba5381 | 2022-12-27 17:32:58 +0100 | [diff] [blame] | 53 | <div class="row mb-2"> |
Matthias Andreas Benkard | 12a5735 | 2021-12-28 18:02:04 +0100 | [diff] [blame] | 54 | <label class="control-label col-sm-2" for="user1">{{ lang.add.username }}</label> |
| 55 | <div class="col-sm-10"> |
| 56 | <input type="text" class="form-control" name="user1" required> |
| 57 | </div> |
| 58 | </div> |
Matthias Andreas Benkard | 1ba5381 | 2022-12-27 17:32:58 +0100 | [diff] [blame] | 59 | <div class="row mb-4"> |
Matthias Andreas Benkard | 12a5735 | 2021-12-28 18:02:04 +0100 | [diff] [blame] | 60 | <label class="control-label col-sm-2" for="password1">{{ lang.add.password }}</label> |
| 61 | <div class="col-sm-10"> |
| 62 | <input type="password" class="form-control" name="password1" data-hibp="true" required> |
| 63 | </div> |
| 64 | </div> |
Matthias Andreas Benkard | 1ba5381 | 2022-12-27 17:32:58 +0100 | [diff] [blame] | 65 | <div class="row mb-2"> |
Matthias Andreas Benkard | 12a5735 | 2021-12-28 18:02:04 +0100 | [diff] [blame] | 66 | <label class="control-label col-sm-2" for="enc1">{{ lang.add.enc_method }}</label> |
| 67 | <div class="col-sm-10"> |
| 68 | <select name="enc1" title="{{ lang.add.select }}" required> |
| 69 | <option value="SSL" selected>SSL</option> |
| 70 | <option value="TLS">STARTTLS</option> |
| 71 | <option value="PLAIN">PLAIN</option> |
| 72 | </select> |
| 73 | </div> |
| 74 | </div> |
Matthias Andreas Benkard | 1ba5381 | 2022-12-27 17:32:58 +0100 | [diff] [blame] | 75 | <div class="row mb-2"> |
Matthias Andreas Benkard | 12a5735 | 2021-12-28 18:02:04 +0100 | [diff] [blame] | 76 | <label class="control-label col-sm-2" for="mins_interval">{{ lang.add.mins_interval }}</label> |
| 77 | <div class="col-sm-10"> |
| 78 | <input type="number" class="form-control" name="mins_interval" min="1" max="43800" value="20" required> |
Matthias Andreas Benkard | 1ba5381 | 2022-12-27 17:32:58 +0100 | [diff] [blame] | 79 | <small class="text-muted">1-43800</small> |
Matthias Andreas Benkard | 12a5735 | 2021-12-28 18:02:04 +0100 | [diff] [blame] | 80 | </div> |
| 81 | </div> |
Matthias Andreas Benkard | 1ba5381 | 2022-12-27 17:32:58 +0100 | [diff] [blame] | 82 | <div class="row mb-2"> |
Matthias Andreas Benkard | 12a5735 | 2021-12-28 18:02:04 +0100 | [diff] [blame] | 83 | <label class="control-label col-sm-2" for="subfolder2">{{ lang.edit.subfolder2|raw }}</label> |
| 84 | <div class="col-sm-10"> |
| 85 | <input type="text" class="form-control" name="subfolder2" value=""> |
| 86 | </div> |
| 87 | </div> |
Matthias Andreas Benkard | 1ba5381 | 2022-12-27 17:32:58 +0100 | [diff] [blame] | 88 | <div class="row mb-2"> |
Matthias Andreas Benkard | 12a5735 | 2021-12-28 18:02:04 +0100 | [diff] [blame] | 89 | <label class="control-label col-sm-2" for="maxage">{{ lang.edit.maxage|raw }}</label> |
| 90 | <div class="col-sm-10"> |
| 91 | <input type="number" class="form-control" name="maxage" min="0" max="32000" value="0"> |
Matthias Andreas Benkard | 1ba5381 | 2022-12-27 17:32:58 +0100 | [diff] [blame] | 92 | <small class="text-muted">0-32000</small> |
Matthias Andreas Benkard | 12a5735 | 2021-12-28 18:02:04 +0100 | [diff] [blame] | 93 | </div> |
| 94 | </div> |
Matthias Andreas Benkard | 1ba5381 | 2022-12-27 17:32:58 +0100 | [diff] [blame] | 95 | <div class="row mb-2"> |
Matthias Andreas Benkard | 12a5735 | 2021-12-28 18:02:04 +0100 | [diff] [blame] | 96 | <label class="control-label col-sm-2" for="maxbytespersecond">{{ lang.edit.maxbytespersecond|raw }}</label> |
| 97 | <div class="col-sm-10"> |
| 98 | <input type="number" class="form-control" name="maxbytespersecond" min="0" max="125000000" value="0"> |
Matthias Andreas Benkard | 1ba5381 | 2022-12-27 17:32:58 +0100 | [diff] [blame] | 99 | <small class="text-muted">0-125000000</small> |
Matthias Andreas Benkard | 12a5735 | 2021-12-28 18:02:04 +0100 | [diff] [blame] | 100 | </div> |
| 101 | </div> |
Matthias Andreas Benkard | 1ba5381 | 2022-12-27 17:32:58 +0100 | [diff] [blame] | 102 | <div class="row mb-2"> |
Matthias Andreas Benkard | 12a5735 | 2021-12-28 18:02:04 +0100 | [diff] [blame] | 103 | <label class="control-label col-sm-2" for="timeout1">{{ lang.edit.timeout1 }}</label> |
| 104 | <div class="col-sm-10"> |
| 105 | <input type="number" class="form-control" name="timeout1" min="1" max="32000" value="600"> |
Matthias Andreas Benkard | 1ba5381 | 2022-12-27 17:32:58 +0100 | [diff] [blame] | 106 | <small class="text-muted">1-32000</small> |
Matthias Andreas Benkard | 12a5735 | 2021-12-28 18:02:04 +0100 | [diff] [blame] | 107 | </div> |
| 108 | </div> |
Matthias Andreas Benkard | 1ba5381 | 2022-12-27 17:32:58 +0100 | [diff] [blame] | 109 | <div class="row mb-2"> |
Matthias Andreas Benkard | 12a5735 | 2021-12-28 18:02:04 +0100 | [diff] [blame] | 110 | <label class="control-label col-sm-2" for="timeout2">{{ lang.edit.timeout2 }}</label> |
| 111 | <div class="col-sm-10"> |
| 112 | <input type="number" class="form-control" name="timeout2" min="1" max="32000" value="600"> |
Matthias Andreas Benkard | 1ba5381 | 2022-12-27 17:32:58 +0100 | [diff] [blame] | 113 | <small class="text-muted">1-32000</small> |
Matthias Andreas Benkard | 12a5735 | 2021-12-28 18:02:04 +0100 | [diff] [blame] | 114 | </div> |
| 115 | </div> |
Matthias Andreas Benkard | 1ba5381 | 2022-12-27 17:32:58 +0100 | [diff] [blame] | 116 | <div class="row mb-2"> |
Matthias Andreas Benkard | 12a5735 | 2021-12-28 18:02:04 +0100 | [diff] [blame] | 117 | <label class="control-label col-sm-2" for="exclude">{{ lang.add.exclude }}</label> |
| 118 | <div class="col-sm-10"> |
| 119 | <input type="text" class="form-control" name="exclude" value="(?i)spam|(?i)junk"> |
| 120 | </div> |
| 121 | </div> |
Matthias Andreas Benkard | 1ba5381 | 2022-12-27 17:32:58 +0100 | [diff] [blame] | 122 | <div class="row mb-4"> |
Matthias Andreas Benkard | 12a5735 | 2021-12-28 18:02:04 +0100 | [diff] [blame] | 123 | <label class="control-label col-sm-2" for="custom_params">{{ lang.add.custom_params }}</label> |
| 124 | <div class="col-sm-10"> |
| 125 | <input type="text" class="form-control" name="custom_params" placeholder="--delete2folders --otheroption"> |
| 126 | </div> |
| 127 | </div> |
Matthias Andreas Benkard | 1ba5381 | 2022-12-27 17:32:58 +0100 | [diff] [blame] | 128 | <div class="row mb-2"> |
| 129 | <div class="offset-sm-2 col-sm-10"> |
Matthias Andreas Benkard | 12a5735 | 2021-12-28 18:02:04 +0100 | [diff] [blame] | 130 | <div class="checkbox"> |
| 131 | <label><input type="checkbox" value="1" name="delete2duplicates" checked> {{ lang.add.delete2duplicates }} (--delete2duplicates)</label> |
| 132 | </div> |
| 133 | </div> |
| 134 | </div> |
Matthias Andreas Benkard | 1ba5381 | 2022-12-27 17:32:58 +0100 | [diff] [blame] | 135 | <div class="row mb-2"> |
| 136 | <div class="offset-sm-2 col-sm-10"> |
Matthias Andreas Benkard | 12a5735 | 2021-12-28 18:02:04 +0100 | [diff] [blame] | 137 | <div class="checkbox"> |
| 138 | <label><input type="checkbox" value="1" name="delete1"> {{ lang.add.delete1 }} (--delete1)</label> |
| 139 | </div> |
| 140 | </div> |
| 141 | </div> |
Matthias Andreas Benkard | 1ba5381 | 2022-12-27 17:32:58 +0100 | [diff] [blame] | 142 | <div class="row mb-2"> |
| 143 | <div class="offset-sm-2 col-sm-10"> |
Matthias Andreas Benkard | 12a5735 | 2021-12-28 18:02:04 +0100 | [diff] [blame] | 144 | <div class="checkbox"> |
| 145 | <label><input type="checkbox" value="1" name="delete2"> {{ lang.add.delete2 }} (--delete2)</label> |
| 146 | </div> |
| 147 | </div> |
| 148 | </div> |
Matthias Andreas Benkard | 1ba5381 | 2022-12-27 17:32:58 +0100 | [diff] [blame] | 149 | <div class="row mb-2"> |
| 150 | <div class="offset-sm-2 col-sm-10"> |
Matthias Andreas Benkard | 12a5735 | 2021-12-28 18:02:04 +0100 | [diff] [blame] | 151 | <div class="checkbox"> |
| 152 | <label><input type="checkbox" value="1" name="automap" checked> {{ lang.add.automap }} (--automap)</label> |
| 153 | </div> |
| 154 | </div> |
| 155 | </div> |
Matthias Andreas Benkard | 1ba5381 | 2022-12-27 17:32:58 +0100 | [diff] [blame] | 156 | <div class="row mb-2"> |
| 157 | <div class="offset-sm-2 col-sm-10"> |
Matthias Andreas Benkard | 12a5735 | 2021-12-28 18:02:04 +0100 | [diff] [blame] | 158 | <div class="checkbox"> |
| 159 | <label><input type="checkbox" value="1" name="skipcrossduplicates"> {{ lang.add.skipcrossduplicates }} (--skipcrossduplicates)</label> |
| 160 | </div> |
| 161 | </div> |
| 162 | </div> |
Matthias Andreas Benkard | 1ba5381 | 2022-12-27 17:32:58 +0100 | [diff] [blame] | 163 | <div class="row mb-2"> |
| 164 | <div class="offset-sm-2 col-sm-10"> |
Matthias Andreas Benkard | 12a5735 | 2021-12-28 18:02:04 +0100 | [diff] [blame] | 165 | <div class="checkbox"> |
| 166 | <label><input type="checkbox" value="1" name="subscribeall" checked> {{ lang.add.subscribeall }} (--subscribeall)</label> |
| 167 | </div> |
| 168 | </div> |
| 169 | </div> |
Matthias Andreas Benkard | 1ba5381 | 2022-12-27 17:32:58 +0100 | [diff] [blame] | 170 | <div class="row mb-4"> |
| 171 | <div class="offset-sm-2 col-sm-10"> |
Matthias Andreas Benkard | 12a5735 | 2021-12-28 18:02:04 +0100 | [diff] [blame] | 172 | <div class="checkbox"> |
| 173 | <label><input type="checkbox" value="1" name="active" checked> {{ lang.add.active }}</label> |
| 174 | </div> |
| 175 | </div> |
| 176 | </div> |
Matthias Andreas Benkard | 1ba5381 | 2022-12-27 17:32:58 +0100 | [diff] [blame] | 177 | <div class="row mb-2"> |
| 178 | <div class="offset-sm-2 col-sm-10"> |
| 179 | <button class="btn btn-xs-lg d-block d-sm-inline btn-success" data-action="add_item" data-id="add_syncjob" data-api-url='add/syncjob' data-api-attr='{}' href="#">{{ lang.admin.add }}</button> |
Matthias Andreas Benkard | 12a5735 | 2021-12-28 18:02:04 +0100 | [diff] [blame] | 180 | </div> |
| 181 | </div> |
| 182 | </form> |
| 183 | </div> |
| 184 | </div> |
| 185 | </div> |
| 186 | </div><!-- add sync job modal --> |
| 187 | <!-- app passwd modal --> |
| 188 | <div class="modal fade" id="addAppPasswdModal" tabindex="-1" role="dialog" aria-hidden="true"> |
| 189 | <div class="modal-dialog modal-lg"> |
| 190 | <div class="modal-content"> |
| 191 | <div class="modal-header"> |
Matthias Andreas Benkard | 12a5735 | 2021-12-28 18:02:04 +0100 | [diff] [blame] | 192 | <h3 class="modal-title">{{ lang.add.app_password }}</h3> |
Matthias Andreas Benkard | 1ba5381 | 2022-12-27 17:32:58 +0100 | [diff] [blame] | 193 | <button type="button" class="btn-close" data-bs-dismiss="modal"></button> |
Matthias Andreas Benkard | 12a5735 | 2021-12-28 18:02:04 +0100 | [diff] [blame] | 194 | </div> |
| 195 | <div class="modal-body"> |
| 196 | <form class="form-horizontal" data-cached-form="true" role="form" data-pwgen-length="32" data-id="add_apppasswd"> |
Matthias Andreas Benkard | 1ba5381 | 2022-12-27 17:32:58 +0100 | [diff] [blame] | 197 | <div class="row mb-2"> |
Matthias Andreas Benkard | 12a5735 | 2021-12-28 18:02:04 +0100 | [diff] [blame] | 198 | <label class="control-label col-sm-2" for="app_name">{{ lang.add.app_name }}</label> |
| 199 | <div class="col-sm-10"> |
| 200 | <input type="text" class="form-control" name="app_name" required> |
| 201 | </div> |
| 202 | </div> |
Matthias Andreas Benkard | 1ba5381 | 2022-12-27 17:32:58 +0100 | [diff] [blame] | 203 | <div class="row mb-4"> |
Matthias Andreas Benkard | 12a5735 | 2021-12-28 18:02:04 +0100 | [diff] [blame] | 204 | <label class="control-label col-sm-2" for="app_passwd">{{ lang.user.password }} (<a href="#" class="generate_password">{{ lang.user.generate }}</a>)</label> |
| 205 | <div class="col-sm-10"> |
| 206 | <input type="password" data-pwgen-field="true" data-hibp="true" class="form-control" name="app_passwd" autocomplete="new-password" required> |
| 207 | </div> |
| 208 | </div> |
Matthias Andreas Benkard | 1ba5381 | 2022-12-27 17:32:58 +0100 | [diff] [blame] | 209 | <div class="row mb-2"> |
Matthias Andreas Benkard | 12a5735 | 2021-12-28 18:02:04 +0100 | [diff] [blame] | 210 | <label class="control-label col-sm-2" for="app_passwd2">{{ lang.user.password_repeat }}</label> |
| 211 | <div class="col-sm-10"> |
| 212 | <input type="password" data-pwgen-field="true" class="form-control" name="app_passwd2" autocomplete="new-password" required> |
Matthias Andreas Benkard | 1ba5381 | 2022-12-27 17:32:58 +0100 | [diff] [blame] | 213 | <p class="text-muted">{{ lang.user.new_password_description }}</p> |
Matthias Andreas Benkard | 12a5735 | 2021-12-28 18:02:04 +0100 | [diff] [blame] | 214 | </div> |
| 215 | </div> |
Matthias Andreas Benkard | 1ba5381 | 2022-12-27 17:32:58 +0100 | [diff] [blame] | 216 | <div class="row mb-4"> |
Matthias Andreas Benkard | 12a5735 | 2021-12-28 18:02:04 +0100 | [diff] [blame] | 217 | <label class="control-label col-sm-2" for="protocols">{{ lang.add.app_passwd_protocols }}</label> |
| 218 | <div class="col-sm-10"> |
| 219 | <select class="full-width-select" data-live-search="true" id="protocols" name="protocols" multiple> |
| 220 | <option value="imap_access" selected>IMAP</option> |
| 221 | <option value="smtp_access" selected>SMTP</option> |
| 222 | <option value="eas_access" selected>EAS/ActiveSync</option> |
| 223 | <option value="dav_access" selected>CardDAV/CalDAV</option> |
| 224 | <option value="pop3_access" selected>POP3</option> |
| 225 | <option value="sieve_access" selected>Sieve</option> |
| 226 | </select> |
| 227 | </div> |
| 228 | </div> |
Matthias Andreas Benkard | 1ba5381 | 2022-12-27 17:32:58 +0100 | [diff] [blame] | 229 | <div class="row mb-2"> |
| 230 | <div class="offset-sm-2 col-sm-10"> |
Matthias Andreas Benkard | 12a5735 | 2021-12-28 18:02:04 +0100 | [diff] [blame] | 231 | <div class="checkbox"> |
| 232 | <label><input type="checkbox" value="1" name="active" checked> {{ lang.add.active }}</label> |
| 233 | </div> |
| 234 | </div> |
| 235 | </div> |
Matthias Andreas Benkard | 1ba5381 | 2022-12-27 17:32:58 +0100 | [diff] [blame] | 236 | <div class="row mb-2"> |
| 237 | <div class="offset-sm-2 col-sm-10"> |
| 238 | <button class="btn btn-xs-lg d-block d-sm-inline btn-success" data-action="add_item" data-id="add_apppasswd" data-api-url='add/app-passwd' data-api-attr='{}' href="#">{{ lang.admin.add }}</button> |
Matthias Andreas Benkard | 12a5735 | 2021-12-28 18:02:04 +0100 | [diff] [blame] | 239 | </div> |
| 240 | </div> |
| 241 | </form> |
| 242 | </div> |
| 243 | </div> |
| 244 | </div> |
| 245 | </div><!-- add app passwd modal --> |
| 246 | <!-- log modal --> |
| 247 | <div class="modal fade" id="syncjobLogModal" tabindex="-1" role="dialog" aria-labelledby="syncjobLogModalLabel"> |
Matthias Andreas Benkard | 1ba5381 | 2022-12-27 17:32:58 +0100 | [diff] [blame] | 248 | <div class="modal-dialog modal-xl" role="document"> |
Matthias Andreas Benkard | 12a5735 | 2021-12-28 18:02:04 +0100 | [diff] [blame] | 249 | <div class="modal-content"> |
| 250 | <div class="modal-header"> |
Matthias Andreas Benkard | 12a5735 | 2021-12-28 18:02:04 +0100 | [diff] [blame] | 251 | <h3 class="modal-title">Log</h3> |
Matthias Andreas Benkard | 1ba5381 | 2022-12-27 17:32:58 +0100 | [diff] [blame] | 252 | <button type="button" class="btn-close" data-bs-dismiss="modal"></button> |
Matthias Andreas Benkard | 12a5735 | 2021-12-28 18:02:04 +0100 | [diff] [blame] | 253 | </div> |
| 254 | <div class="modal-body"> |
| 255 | <textarea class="form-control textarea-code" rows="20" id="logText" spellcheck="false"></textarea> |
| 256 | </div> |
| 257 | </div> |
| 258 | </div> |
| 259 | </div><!-- log modal --> |
| 260 | <!-- pw change modal --> |
| 261 | <div class="modal fade" id="pwChangeModal" tabindex="-1" role="dialog" aria-labelledby="pwChangeModalLabel"> |
Matthias Andreas Benkard | 1ba5381 | 2022-12-27 17:32:58 +0100 | [diff] [blame] | 262 | <div class="modal-dialog modal-lg" role="document"> |
Matthias Andreas Benkard | 12a5735 | 2021-12-28 18:02:04 +0100 | [diff] [blame] | 263 | <div class="modal-content"> |
| 264 | <div class="modal-header"> |
Matthias Andreas Benkard | 12a5735 | 2021-12-28 18:02:04 +0100 | [diff] [blame] | 265 | <h3 class="modal-title">{{ lang.user.change_password }}</h3> |
Matthias Andreas Benkard | 1ba5381 | 2022-12-27 17:32:58 +0100 | [diff] [blame] | 266 | <button type="button" class="btn-close" data-bs-dismiss="modal"></button> |
Matthias Andreas Benkard | 12a5735 | 2021-12-28 18:02:04 +0100 | [diff] [blame] | 267 | </div> |
| 268 | <div class="modal-body"> |
| 269 | <form class="form-horizontal" data-cached-form="false" data-id="pwchange" role="form" method="post" autocomplete="off"> |
Matthias Andreas Benkard | 1ba5381 | 2022-12-27 17:32:58 +0100 | [diff] [blame] | 270 | <div class="row"> |
Matthias Andreas Benkard | 12a5735 | 2021-12-28 18:02:04 +0100 | [diff] [blame] | 271 | <label class="control-label col-sm-3" for="user_new_pass">{{ lang.user.new_password }} (<a href="#" class="generate_password">{{ lang.user.generate }}</a>)</label> |
Matthias Andreas Benkard | 1ba5381 | 2022-12-27 17:32:58 +0100 | [diff] [blame] | 272 | <div class="col-sm-9"> |
Matthias Andreas Benkard | 12a5735 | 2021-12-28 18:02:04 +0100 | [diff] [blame] | 273 | <input type="password" data-pwgen-field="true" data-hibp="true" class="form-control" name="user_new_pass" autocomplete="new-password" required> |
| 274 | </div> |
| 275 | </div> |
Matthias Andreas Benkard | 1ba5381 | 2022-12-27 17:32:58 +0100 | [diff] [blame] | 276 | <div class="row"> |
Matthias Andreas Benkard | 12a5735 | 2021-12-28 18:02:04 +0100 | [diff] [blame] | 277 | <label class="control-label col-sm-3" for="user_new_pass2">{{ lang.user.new_password_repeat }}</label> |
Matthias Andreas Benkard | 1ba5381 | 2022-12-27 17:32:58 +0100 | [diff] [blame] | 278 | <div class="col-sm-9"> |
Matthias Andreas Benkard | 12a5735 | 2021-12-28 18:02:04 +0100 | [diff] [blame] | 279 | <input type="password" data-pwgen-field="true" class="form-control" name="user_new_pass2" autocomplete="new-password" required> |
Matthias Andreas Benkard | 1ba5381 | 2022-12-27 17:32:58 +0100 | [diff] [blame] | 280 | <p class="text-muted">{{ lang.user.new_password_description }}</p> |
Matthias Andreas Benkard | 12a5735 | 2021-12-28 18:02:04 +0100 | [diff] [blame] | 281 | </div> |
| 282 | </div> |
| 283 | <hr> |
Matthias Andreas Benkard | 1ba5381 | 2022-12-27 17:32:58 +0100 | [diff] [blame] | 284 | <div class="row mb-4"> |
Matthias Andreas Benkard | 12a5735 | 2021-12-28 18:02:04 +0100 | [diff] [blame] | 285 | <label class="control-label col-sm-3" for="user_old_pass">{{ lang.user.password_now }}</label> |
Matthias Andreas Benkard | 1ba5381 | 2022-12-27 17:32:58 +0100 | [diff] [blame] | 286 | <div class="col-sm-9"> |
Matthias Andreas Benkard | 12a5735 | 2021-12-28 18:02:04 +0100 | [diff] [blame] | 287 | <input type="password" class="form-control" name="user_old_pass" autocomplete="off" required> |
| 288 | </div> |
| 289 | </div> |
Matthias Andreas Benkard | 1ba5381 | 2022-12-27 17:32:58 +0100 | [diff] [blame] | 290 | {% if number_of_app_passwords > 0 %} |
| 291 | <div class="row mb-2"> |
| 292 | <div class="offset-sm-3 col-sm-9"> |
| 293 | <small>{{ lang.user.change_password_hint_app_passwords | replace({'{{number_of_app_passwords}}': number_of_app_passwords}) }}</small> |
| 294 | </div> |
| 295 | </div> |
| 296 | {% endif %} |
| 297 | <div class="row"> |
| 298 | <div class="offset-sm-3 col-sm-9"> |
| 299 | <button class="btn btn-xs-lg d-block d-sm-inline btn-success" data-action="edit_selected" data-id="pwchange" data-item="null" data-api-url='edit/self' data-api-attr='{}' href="#">{{ lang.user.change_password }}</button> |
Matthias Andreas Benkard | 12a5735 | 2021-12-28 18:02:04 +0100 | [diff] [blame] | 300 | </div> |
| 301 | </div> |
| 302 | </form> |
| 303 | </div> |
| 304 | </div> |
| 305 | </div> |
| 306 | </div><!-- pw change modal --> |
Matthias Andreas Benkard | 1ba5381 | 2022-12-27 17:32:58 +0100 | [diff] [blame] | 307 | <!-- temp alias modal --> |
Matthias Andreas Benkard | 12a5735 | 2021-12-28 18:02:04 +0100 | [diff] [blame] | 308 | <div class="modal fade" id="tempAliasModal" tabindex="-1" role="dialog" aria-labelledby="tempAliasModalLabel"> |
Matthias Andreas Benkard | 1ba5381 | 2022-12-27 17:32:58 +0100 | [diff] [blame] | 309 | <div class="modal-dialog modal-lg" role="document"> |
Matthias Andreas Benkard | 12a5735 | 2021-12-28 18:02:04 +0100 | [diff] [blame] | 310 | <div class="modal-content"> |
| 311 | <div class="modal-body"> |
| 312 | <form class="form-horizontal" data-cached-form="false" data-id="pwchange" role="form" method="post" autocomplete="off"> |
Matthias Andreas Benkard | 1ba5381 | 2022-12-27 17:32:58 +0100 | [diff] [blame] | 313 | <div class="row"> |
Matthias Andreas Benkard | 12a5735 | 2021-12-28 18:02:04 +0100 | [diff] [blame] | 314 | <label class="control-label col-sm-3" for="user_new_pass">{{ lang.user.new_password }} (<a href="#" class="generate_password">{{ lang.user.generate }}</a>)</label> |
| 315 | <div class="col-sm-5"> |
| 316 | <input type="password" data-pwgen-field="true" data-hibp="true" class="form-control" name="user_new_pass" autocomplete="new-password" required> |
| 317 | </div> |
| 318 | </div> |
Matthias Andreas Benkard | 1ba5381 | 2022-12-27 17:32:58 +0100 | [diff] [blame] | 319 | <div class="row"> |
Matthias Andreas Benkard | 12a5735 | 2021-12-28 18:02:04 +0100 | [diff] [blame] | 320 | <label class="control-label col-sm-3" for="user_new_pass2">{{ lang.user.new_password_repeat }}</label> |
| 321 | <div class="col-sm-5"> |
| 322 | <input type="password" data-pwgen-field="true" class="form-control" name="user_new_pass2" autocomplete="new-password" required> |
Matthias Andreas Benkard | 1ba5381 | 2022-12-27 17:32:58 +0100 | [diff] [blame] | 323 | <p class="text-muted">{{ lang.user.new_password_description }}</p> |
Matthias Andreas Benkard | 12a5735 | 2021-12-28 18:02:04 +0100 | [diff] [blame] | 324 | </div> |
| 325 | </div> |
| 326 | <hr> |
Matthias Andreas Benkard | 1ba5381 | 2022-12-27 17:32:58 +0100 | [diff] [blame] | 327 | <div class="row"> |
Matthias Andreas Benkard | 12a5735 | 2021-12-28 18:02:04 +0100 | [diff] [blame] | 328 | <label class="control-label col-sm-3" for="user_old_pass">{{ lang.user.password_now }}</label> |
| 329 | <div class="col-sm-5"> |
| 330 | <input type="password" class="form-control" name="user_old_pass" autocomplete="off" required> |
| 331 | </div> |
| 332 | </div> |
Matthias Andreas Benkard | 1ba5381 | 2022-12-27 17:32:58 +0100 | [diff] [blame] | 333 | <div class="row"> |
| 334 | <div class="offset-sm-3 col-sm-9"> |
| 335 | <button class="btn btn-xs-lg d-block d-sm-inline btn-success" data-action="edit_selected" data-id="pwchange" data-item="null" data-api-url='edit/self' data-api-attr='{}' href="#">{{ lang.user.change_password }}</button> |
Matthias Andreas Benkard | 12a5735 | 2021-12-28 18:02:04 +0100 | [diff] [blame] | 336 | </div> |
| 337 | </div> |
| 338 | </form> |
| 339 | </div> |
| 340 | </div> |
| 341 | </div> |
Matthias Andreas Benkard | 1ba5381 | 2022-12-27 17:32:58 +0100 | [diff] [blame] | 342 | </div><!-- temp alias modal --> |
Matthias Andreas Benkard | 12a5735 | 2021-12-28 18:02:04 +0100 | [diff] [blame] | 343 | <!-- sieve filter modal --> |
| 344 | <div class="modal fade" id="userFilterModal" tabindex="-1" role="dialog"> |
Matthias Andreas Benkard | 1ba5381 | 2022-12-27 17:32:58 +0100 | [diff] [blame] | 345 | <div class="modal-dialog modal-lg" role="document"> |
Matthias Andreas Benkard | 12a5735 | 2021-12-28 18:02:04 +0100 | [diff] [blame] | 346 | <div class="modal-content"> |
| 347 | <div class="modal-header"> |
Matthias Andreas Benkard | 12a5735 | 2021-12-28 18:02:04 +0100 | [diff] [blame] | 348 | <h3 class="modal-title">{{ lang.user.active_sieve }}</h3> |
Matthias Andreas Benkard | 1ba5381 | 2022-12-27 17:32:58 +0100 | [diff] [blame] | 349 | <button type="button" class="btn-close" data-bs-dismiss="modal"></button> |
Matthias Andreas Benkard | 12a5735 | 2021-12-28 18:02:04 +0100 | [diff] [blame] | 350 | </div> |
| 351 | <div class="modal-body"> |
| 352 | <pre id="user_sieve_filter"></pre> |
| 353 | </div> |
| 354 | </div> |
| 355 | </div> |
| 356 | </div><!-- sieve filter modal --> |