blob: e50239d41c9841113daf5dc846e0ff0595798d98 [file] [log] [blame]
Matthias Andreas Benkard12a57352021-12-28 18:02:04 +01001{% extends 'edit.twig' %}
2
3{% block inner_content %}
4{% if result %}
5<h4>{{ lang.mailbox.bcc_map }}</h4>
6<br>
7<form class="form-horizontal" data-id="editbcc" role="form" method="post">
8 <input type="hidden" value="0" name="active">
9 <div class="form-group">
10 <label class="control-label col-sm-2" for="bcc_dest">{{ lang.mailbox.bcc_destination }}</label>
11 <div class="col-sm-10">
12 <input value="{{ result.bcc_dest }}" type="text" class="form-control" name="bcc_dest" id="bcc_dest">
13 <small>{{ lang.edit.bcc_dest_format|raw }}</small>
14 </div>
15 </div>
16 <div class="form-group">
17 <label class="control-label col-sm-2" for="type">{{ lang.mailbox.bcc_map_type }}</label>
18 <div class="col-sm-10">
19 <select id="addFilterType" name="type" id="type" required>
20 <option value="sender"{% if result.type == 'sender'%} selected{% endif %}>{{ lang.mailbox.bcc_sender_map }}</option>
21 <option value="rcpt"{% if result.type == 'rcpt'%} selected{% endif %}>{{ lang.mailbox.bcc_rcpt_map }}</option>
22 </select>
23 </div>
24 </div>
25 <div class="form-group">
26 <div class="col-sm-offset-2 col-sm-10">
27 <div class="checkbox">
28 <label><input type="checkbox" value="1" name="active"{% if result.active == '1' %} checked{% endif %}> {{ lang.edit.active }}</label>
29 </div>
30 </div>
31 </div>
32 <div class="form-group">
33 <div class="col-sm-offset-2 col-sm-10">
34 <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="editbcc" data-item="{{ bcc }}" data-api-url='edit/bcc' data-api-attr='{}' href="#">{{ lang.edit.save }}</button>
35 </div>
36 </div>
37</form>
38{% else %}
39 {{ parent() }}
40{% endif %}
41{% endblock %}