blob: f7d0c5ca74f4a5ecbf9e98be232c9db4403d4833 [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">
Matthias Andreas Benkard1ba53812022-12-27 17:32:58 +01009 <div class="row mb-2">
Matthias Andreas Benkard12a57352021-12-28 18:02:04 +010010 <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>
Matthias Andreas Benkard1ba53812022-12-27 17:32:58 +010016 <div class="row mb-4">
Matthias Andreas Benkard12a57352021-12-28 18:02:04 +010017 <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>
Matthias Andreas Benkard1ba53812022-12-27 17:32:58 +010025 <div class="row mb-2">
26 <div class="offset-sm-2 col-sm-10">
Matthias Andreas Benkard12a57352021-12-28 18:02:04 +010027 <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>
Matthias Andreas Benkard1ba53812022-12-27 17:32:58 +010032 <div class="row mb-2">
33 <div class="offset-sm-2 col-sm-10">
34 <button class="btn btn-xs-lg d-block d-sm-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>
Matthias Andreas Benkard12a57352021-12-28 18:02:04 +010035 </div>
36 </div>
37</form>
38{% else %}
39 {{ parent() }}
40{% endif %}
41{% endblock %}