blob: 4447ccba346e37b32b6701cac4a7dcb3fdbdb7ba [file] [log] [blame]
Matthias Andreas Benkard12a57352021-12-28 18:02:04 +01001{% extends 'edit.twig' %}
2
3{% block inner_content %}
4{% if result %}
5<ul class="nav nav-tabs responsive-tabs" role="tablist">
6 <li class="active"><a data-toggle="tab" href="#medit">{{ lang.edit.mailbox }}</a></li>
7 <li><a data-toggle="tab" href="#mpushover">{{ lang.edit.pushover }}</a></li>
8 <li><a data-toggle="tab" href="#macl">{{ lang.edit.acl }}</a></li>
9 <li><a data-toggle="tab" href="#mrl">{{ lang.edit.ratelimit }}</a></li>
10</ul>
11<hr>
12<div class="tab-content">
13 <div id="medit" class="tab-pane in active">
14 <form class="form-horizontal" data-id="editmailbox" role="form" method="post">
15 <input type="hidden" value="default" name="sender_acl">
16 <input type="hidden" value="0" name="force_pw_update">
17 <input type="hidden" value="0" name="sogo_access">
18 <input type="hidden" value="0" name="protocol_access">
19 <div class="form-group">
20 <label class="control-label col-sm-2" for="name">{{ lang.edit.full_name }}</label>
21 <div class="col-sm-10">
22 <input type="text" class="form-control" name="name" value="{{ result.name }}">
23 </div>
24 </div>
25 <div class="form-group">
26 <label class="control-label col-sm-2" for="quota">{{ lang.edit.quota_mb }}
27 <br><span id="quotaBadge" class="badge">max. {{ (result.max_new_quota / 1048576) }} MiB</span>
28 </label>
29 <div class="col-sm-10">
30 <input type="number" name="quota" style="width:100%" min="0" max="{{ (result.max_new_quota / 1048576) }}" value="{{ (result.quota / 1048576) }}" class="form-control">
31 <small class="help-block">0 = ∞</small>
32 </div>
33 </div>
34 <div class="form-group">
35 <label class="control-label col-sm-2" for="sender_acl">{{ lang.edit.sender_acl }}</label>
36 <div class="col-sm-10">
37 <select data-live-search="true" data-width="100%" style="width:100%" id="editSelectSenderACL" name="sender_acl" size="10" multiple>
38 {% for domain in sender_acl_handles.sender_acl_domains.ro %}
39 <option data-subtext="Admin" value="{{ domain }}" disabled selected>
40 {{ lang.edit.dont_check_sender_acl|format(domain) }}
41 </option>
42 {% endfor %}
43 {% for alias in sender_acl_handles.sender_acl_addresses.ro %}
44 <option data-subtext="Admin" disabled selected>
45 {{ alias }}
46 </option>
47 {% endfor %}
48 {% for alias in sender_acl_handles.fixed_sender_aliases %}
49 <option data-subtext="Alias" disabled selected>{{ alias }}</option>
50 {% endfor %}
51 {% for domain in sender_acl_handles.sender_acl_domains.rw %}
52 <option value="{{ domain }}" selected>
53 {{ lang.edit.dont_check_sender_acl|format(domain) }}
54 </option>
55 {% endfor %}
56 {% for domain in sender_acl_handles.sender_acl_domains.selectable %}
57 <option value="{{ domain }}">
58 {{ lang.edit.dont_check_sender_acl|format(domain) }}
59 </option>
60 {% endfor %}
61 {% for address in sender_acl_handles.sender_acl_addresses.rw %}
62 <option selected>{{ address }}</option>
63 {% endfor %}
64 {% for address in sender_acl_handles.sender_acl_addresses.selectable %}
65 <option>{{ address }}</option>
66 {% endfor %}
67 </select>
68 <div id="sender_acl_disabled"><i class="bi bi-shield-exclamation"></i> {{ lang.edit.sender_acl_disabled|raw }}</div>
69 <small class="help-block">{{ lang.edit.sender_acl_info|raw }}</small>
70 </div>
71 </div>
72 <div class="form-group">
73 <label class="control-label col-sm-2" for="relayhost">{{ lang.edit.relayhost }}</label>
74 <div class="col-sm-10">
75 <select data-acl="{{ acl.mailbox_relayhost }}" data-live-search="true" id="relayhost" name="relayhost" class="form-control space20">
76 {% for rlyhost in rlyhosts %}
77 <option
78 style="{% if rlyhost.active != '1' %}background: #ff4136; color: #fff{% endif %}"
79 {% if result.attributes.relayhost == rlyhost.id %} selected{% endif %}
80 value="{{ rlyhost.id }}">
81 ID {{ rlyhost.id }}: {{ rlyhost.hostname }} ({{ rlyhost.username }})
82 </option>
83 {% endfor %}
84 <option value=""{% if not result.attributes.relayhost %} selected{% endif %}>
85 {{ lang.edit.none_inherit }}
86 </option>
87 </select>
88 <p class="visible-xs" style="margin: 0;padding: 0">&nbsp;</p>
89 <small class="help-block">{{ lang.edit.mailbox_relayhost_info }}</small>
90 </div>
91 </div>
92 <div class="form-group">
93 <label class="control-label col-sm-2">{{ lang.user.quarantine_notification }}</label>
94 <div class="col-sm-10">
95 <div class="btn-group" data-acl="{{ acl.quarantine_notification }}">
96 <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 %}"
97 data-action="edit_selected"
98 data-item="{{ mailbox }}"
99 data-id="quarantine_notification"
100 data-api-url='edit/quarantine_notification'
101 data-api-attr='{"quarantine_notification":"never"}'>{{ lang.user.never }}</button>
102 <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 %}"
103 data-action="edit_selected"
104 data-item="{{ mailbox }}"
105 data-id="quarantine_notification"
106 data-api-url='edit/quarantine_notification'
107 data-api-attr='{"quarantine_notification":"hourly"}'>{{ lang.user.hourly }}</button>
108 <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 %}"
109 data-action="edit_selected"
110 data-item="{{ mailbox }}"
111 data-id="quarantine_notification"
112 data-api-url='edit/quarantine_notification'
113 data-api-attr='{"quarantine_notification":"daily"}'>{{ lang.user.daily }}</button>
114 <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 %}"
115 data-action="edit_selected"
116 data-item="{{ mailbox }}"
117 data-id="quarantine_notification"
118 data-api-url='edit/quarantine_notification'
119 data-api-attr='{"quarantine_notification":"weekly"}'>{{ lang.user.weekly }}</button>
120 <div class="clearfix visible-xs"></div>
121 </div>
122 <p class="help-block"><small>{{ lang.user.quarantine_notification_info }}</small></p>
123 </div>
124 </div>
125 <div class="form-group">
126 <label class="control-label col-sm-2">{{ lang.user.quarantine_category }}</label>
127 <div class="col-sm-10">
128 <div class="btn-group" data-acl="{{ acl.quarantine_category }}">
129 <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 %}"
130 data-action="edit_selected"
131 data-item="{{ mailbox }}"
132 data-id="quarantine_category"
133 data-api-url='edit/quarantine_category'
134 data-api-attr='{"quarantine_category":"reject"}'>{{ lang.user.q_reject }}</button>
135 <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 %}"
136 data-action="edit_selected"
137 data-item="{{ mailbox }}"
138 data-id="quarantine_category"
139 data-api-url='edit/quarantine_category'
140 data-api-attr='{"quarantine_category":"add_header"}'>{{ lang.user.q_add_header }}</button>
141 <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 %}"
142 data-action="edit_selected"
143 data-item="{{ mailbox }}"
144 data-id="quarantine_category"
145 data-api-url='edit/quarantine_category'
146 data-api-attr='{"quarantine_category":"all"}'>{{ lang.user.q_all }}</button>
147 <div class="clearfix visible-xs"></div>
148 </div>
149 <p class="help-block"><small>{{ lang.user.quarantine_category_info }}</small></p>
150 </div>
151 </div>
152 <div class="form-group">
153 <label class="control-label col-sm-2" for="sender_acl">{{ lang.user.tls_policy }}</label>
154 <div class="col-sm-10">
155 <div class="btn-group" data-acl="{{ acl.tls_policy }}">
156 <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 %}"
157 data-action="edit_selected"
158 data-item="{{ mailbox }}"
159 data-id="tls_policy"
160 data-api-url='edit/tls_policy'
161 data-api-attr='{"tls_enforce_in": {% if get_tls_policy.tls_enforce_in == '1' %}0{% else %}1{% endif %} }'>{{ lang.user.tls_enforce_in }}</button>
162 <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 %}"
163 data-action="edit_selected"
164 data-item="{{ mailbox }}"
165 data-id="tls_policy"
166 data-api-url='edit/tls_policy'
167 data-api-attr='{"tls_enforce_out": {% if get_tls_policy.tls_enforce_out == '1' %}0{% else %}1{% endif %} }'>{{ lang.user.tls_enforce_out }}</button>
168 <div class="clearfix visible-xs"></div>
169 </div>
170 </div>
171 </div>
172 <div class="form-group">
173 <label class="control-label col-sm-2" for="password">{{ lang.edit.password }} (<a href="#" class="generate_password">{{ lang.edit.generate }}</a>)</label>
174 <div class="col-sm-10">
175 <input type="password" data-pwgen-field="true" data-hibp="true" class="form-control" name="password" placeholder="{{ lang.edit.unchanged_if_empty }}" autocomplete="new-password">
176 </div>
177 </div>
178 <div class="form-group">
179 <label class="control-label col-sm-2" for="password2">{{ lang.edit.password_repeat }}</label>
180 <div class="col-sm-10">
181 <input type="password" data-pwgen-field="true" class="form-control" name="password2" autocomplete="new-password">
182 </div>
183 </div>
184 <div data-acl="{{ acl.extend_sender_acl }}" class="form-group">
185 <label class="control-label col-sm-2" for="extended_sender_acl">{{ lang.edit.extended_sender_acl }}</label>
186 <div class="col-sm-10">
187 {% if sender_acl_handles.external_sender_aliases %}
188 {% set ext_sender_acl = sender_acl_handles.external_sender_aliases|join(', ') %}
189 {% endif %}
190 <input type="text" class="form-control" name="extended_sender_acl" value="{{ ext_sender_acl }}" placeholder="user1@example.com, user2@example.org, @example.com, ...">
191 <small class="help-block">{{ lang.edit.extended_sender_acl_info|raw }}</small>
192 </div>
193 </div>
194 <div class="form-group">
195 <label class="control-label col-sm-2" for="protocol_access">{{ lang.edit.allowed_protocols }}</label>
196 <div class="col-sm-10">
197 <select data-acl="{{ acl.protocol_access }}" name="protocol_access" multiple class="form-control">
198 <option value="imap"{% if result.attributes.imap_access == '1' %} selected{% endif %}>IMAP</option>
199 <option value="pop3"{% if result.attributes.pop3_access == '1' %} selected{% endif %}>POP3</option>
200 <option value="smtp"{% if result.attributes.smtp_access == '1' %} selected{% endif %}>SMTP</option>
201 <option value="sieve"{% if result.attributes.sieve_access == '1' %} selected{% endif %}>Sieve</option>
202 </select>
203 </div>
204 </div>
205 <div hidden data-acl="{{ acl.smtp_ip_access }}" class="form-group">
206 <label class="control-label col-sm-2" for="allow_from_smtp">{{ lang.edit.allow_from_smtp }}</label>
207 <div class="col-sm-10">
208 <input type="text" class="form-control" name="allow_from_smtp" value="{{ allow_from_smtp }}" placeholder="1.1.1.1, 10.2.0.0/24, ...">
209 <small class="help-block">{{ lang.edit.allow_from_smtp_info }}</small>
210 </div>
211 </div>
212 <hr>
213 <div class="form-group">
214 <div class="col-sm-offset-2 col-sm-10">
215 <select name="active" class="form-control">
216 <option value="1"{% if result.active == '1' %} selected{% endif %}>{{ lang.edit.active }}</option>
217 <option value="2"{% if result.active == '2' %} selected{% endif %}>{{ lang.edit.disable_login }}</option>
218 <option value="0"{% if result.active == '0' %} selected{% endif %}>{{ lang.edit.inactive }}</option>
219 </select>
220 </div>
221 </div>
222 <div class="form-group">
223 <div class="col-sm-offset-2 col-sm-10">
224 <div class="checkbox">
225 <label><input type="checkbox" value="1" name="force_pw_update"{% if result.attributes.force_pw_update == '1' %} checked{% endif %}> {{ lang.edit.force_pw_update }}</label>
226 <small class="help-block">{{ lang.edit.force_pw_update_info|format(ui_texts.main_name) }}</small>
227 </div>
228 </div>
229 </div>
230 {% if not skip_sogo %}
231 <div data-acl="{{ acl.sogo_access }}" class="form-group">
232 <div class="col-sm-offset-2 col-sm-10">
233 <div class="checkbox">
234 <label><input type="checkbox" value="1" name="sogo_access"{% if result.attributes.sogo_access == '1' %} checked{% endif %}> {{ lang.edit.sogo_access }}</label>
235 <small class="help-block">{{ lang.edit.sogo_access_info }}</small>
236 </div>
237 </div>
238 </div>
239 {% endif %}
240 <div class="form-group">
241 <div class="col-sm-offset-2 col-sm-10">
242 <button class="btn btn-xs-lg visible-xs-block visible-sm-inline visible-md-inline visible-lg-inline btn-success" data-action="edit_selected" data-id="editmailbox" data-item="{{ result.username }}" data-api-url='edit/mailbox' data-api-attr='{}' href="#">{{ lang.edit.save }}</button>
243 </div>
244 </div>
245 </form>
246 </div>
247 <div id="mpushover" class="tab-pane">
248 <form data-id="pushover" class="form well" method="post">
249 <input type="hidden" value="0" name="evaluate_x_prio">
250 <input type="hidden" value="0" name="only_x_prio">
251 <input type="hidden" value="0" name="active">
252 <div class="row">
253 <div class="col-sm-1">
254 <p class="help-block"><a href="https://pushover.net" target="_blank"><img src="data:image/png;base64,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" class="img img-fluid"></a></p>
255 </div>
256 <div class="col-sm-10">
257 <p class="help-block">{{ lang.user.pushover_info|format(mailbox)|raw }}</p>
258 <p class="help-block">{{ lang.edit.pushover_vars|raw }}: <code>{SUBJECT}</code>, <code>{SENDER}</code></p>
259 <div class="form-group">
260 <div class="row">
261 <div class="col-sm-6">
262 <div class="form-group">
263 <label for="token">API Token/Key (Application)</label>
264 <input type="text" class="form-control" name="token" maxlength="30" value="{{ pushover_data.token }}" required>
265 </div>
266 </div>
267 <div class="col-sm-6">
268 <div class="form-group">
269 <label for="key">User/Group Key</label>
270 <input type="text" class="form-control" name="key" maxlength="30" value="{{ pushover_data.key }}" required>
271 </div>
272 </div>
273 <div class="col-sm-6">
274 <div class="form-group">
275 <label for="title">{{ lang.edit.pushover_title }}</label>
276 <input type="text" class="form-control" name="title" value="{{ pushover_data.title }}" placeholder="Mail">
277 </div>
278 </div>
279 <div class="col-sm-6">
280 <div class="form-group">
281 <label for="text">{{ lang.edit.pushover_text }}</label>
282 <input type="text" class="form-control" name="text" value="{{ pushover_data.text }}" placeholder="You've got mail 📧">
283 </div>
284 </div>
285 <div class="col-sm-12">
286 <div class="form-group">
287 <label for="text">{{ lang.edit.pushover_sender_array|raw }}</label>
288 <input type="text" class="form-control" name="senders" value="{{ pushover_data.senders }}" placeholder="sender1@example.com, sender2@example.com">
289 </div>
290 </div>
291 <div class="col-sm-12">
292 <div class="checkbox">
293 <label><input type="checkbox" value="1" name="active"{% if pushover_data.active == '1' %} checked{% endif %}> {{ lang.edit.active }}</label>
294 </div>
295 </div>
296 <div class="col-sm-12">
297 <legend style="cursor:pointer;margin-top:10px" data-target="#po_advanced" unselectable="on" data-toggle="collapse">
298 <i class="bi bi-plus"></i> {{ lang.edit.advanced_settings }}
299 </legend>
300 </div>
301 <div class="col-sm-12">
302 <div id="po_advanced" class="collapse">
303 <div class="form-group">
304 <label for="text">{{ lang.edit.pushover_sender_regex }}</label>
305 <input type="text" class="form-control" name="senders_regex" value="{{ pushover_data.senders_regex }}" placeholder="/(.*@example\.org$|^foo@example\.com$)/i" regex="true">
306 <div class="checkbox">
307 <label><input type="checkbox" value="1" name="evaluate_x_prio"{% if pushover_data.attributes.evaluate_x_prio == '1' %} checked{% endif %}> {{ lang.edit.pushover_evaluate_x_prio|raw }}</label>
308 </div>
309 <div class="checkbox">
310 <label><input type="checkbox" value="1" name="only_x_prio"{% if pushover_data.attributes.only_x_prio == '1' %} checked{% endif %}> {{ lang.edit.pushover_only_x_prio|raw }}</label>
311 </div>
312 </div>
313 </div>
314 </div>
315 </div>
316 </div>
317 <div class="btn-group" data-acl="{{ acl.pushover }}">
318 <a class="btn btn-sm btn-xs-half visible-xs-block visible-sm-inline visible-md-inline visible-lg-inline btn-success" data-action="edit_selected" data-id="pushover" data-item="{{ mailbox }}" data-api-url='edit/pushover' data-api-attr='{}' href="#">{{ lang.edit.save }}</a>
319 <a class="btn btn-sm btn-xs-half visible-xs-block visible-sm-inline visible-md-inline visible-lg-inline btn-default" data-action="edit_selected" data-id="pushover-test" data-item="{{ mailbox }}" data-api-url='edit/pushover-test' data-api-attr='{}' href="#"><i class="bi bi-check-lg"></i> {{ lang.edit.pushover_verify }}</a>
320 <div class="clearfix visible-xs"></div>
321 <a id="pushover_delete" class="btn btn-sm visible-xs-block visible-sm-inline visible-md-inline visible-lg-inline btn-danger" data-action="edit_selected" data-id="pushover-delete" data-item="{{ mailbox }}" data-api-url='edit/pushover' data-api-attr='{"delete":"true"}' href="#"><i class="bi bi-trash"></i> {{ lang.edit.remove }}</a>
322 </div>
323 </div>
324 </div>
325 </form>
326 </div>
327 <div id="macl" class="tab-pane">
328 <form data-id="useracl" class="form-inline well" method="post">
329 <div class="row">
330 <div class="col-sm-1">
331 <p class="help-block">ACL</p>
332 </div>
333 <div class="col-sm-10">
334 <div class="form-group">
335 <select id="user_acl" name="user_acl" size="10" multiple>
336 {% for acl, val in user_acls %}
337 <option value="{{ acl }}"{% if val == 1 %} selected{% endif %}>{{ lang.acl[acl] }}</option>
338 {% endfor %}
339 </select>
340 </div>
341 <div class="form-group">
342 <button class="btn btn-xs-lg visible-xs-block visible-sm-inline visible-md-inline visible-lg-inline btn-default" data-action="edit_selected" data-id="useracl" data-item="{{ mailbox }}" data-api-url='edit/user-acl' data-api-attr='{}' href="#">{{ lang.edit.save }}</button>
343 </div>
344 </div>
345 </div>
346 </form>
347 </div>
348 <div id="mrl" class="tab-pane">
349 <form data-id="mboxratelimit" class="form-inline well" method="post">
350 <div class="row">
351 <div class="col-sm-1">
352 <p class="help-block">{{ lang.acl.ratelimit }}</p>
353 </div>
354 <div class="col-sm-10">
355 <div class="form-group">
356 <input name="rl_value" type="number" autocomplete="off" value="{{ rl.value }}" class="form-control" placeholder="{{ lang.ratelimit.disabled }}">
357 </div>
358 <div class="form-group">
359 <select name="rl_frame" class="form-control">
360 {% include 'mailbox/rl-frame.twig' %}
361 </select>
362 </div>
363 <div class="form-group">
364 <button class="btn btn-xs-lg visible-xs-block visible-sm-inline visible-md-inline visible-lg-inline btn-default" data-action="edit_selected" data-id="mboxratelimit" data-item="{{ mailbox }}" data-api-url='edit/rl-mbox' data-api-attr='{}' href="#">{{ lang.edit.save }}</button>
365 </div>
366 <p class="help-block">{{ lang.edit.mbox_rl_info }}</p>
367 </div>
368 </div>
369 </form>
370 </div>
371</div>
372{% else %}
373 {{ parent() }}
374{% endif %}
375{% endblock %}