Matthias Andreas Benkard | 12a5735 | 2021-12-28 18:02:04 +0100 | [diff] [blame] | 1 | {% 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 Benkard | 1ba5381 | 2022-12-27 17:32:58 +0100 | [diff] [blame] | 9 | <div class="row mb-2"> |
Matthias Andreas Benkard | 12a5735 | 2021-12-28 18:02:04 +0100 | [diff] [blame] | 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> |
Matthias Andreas Benkard | 1ba5381 | 2022-12-27 17:32:58 +0100 | [diff] [blame] | 16 | <div class="row mb-4"> |
Matthias Andreas Benkard | 12a5735 | 2021-12-28 18:02:04 +0100 | [diff] [blame] | 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> |
Matthias Andreas Benkard | 1ba5381 | 2022-12-27 17:32:58 +0100 | [diff] [blame] | 25 | <div class="row mb-2"> |
| 26 | <div class="offset-sm-2 col-sm-10"> |
Matthias Andreas Benkard | d1f5b68 | 2023-11-18 13:18:30 +0100 | [diff] [blame] | 27 | <div class="form-check"> |
| 28 | <label><input type="checkbox" class="form-check-input" value="1" name="active"{% if result.active == '1' %} checked{% endif %}> {{ lang.edit.active }}</label> |
Matthias Andreas Benkard | 12a5735 | 2021-12-28 18:02:04 +0100 | [diff] [blame] | 29 | </div> |
| 30 | </div> |
| 31 | </div> |
Matthias Andreas Benkard | 1ba5381 | 2022-12-27 17:32:58 +0100 | [diff] [blame] | 32 | <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 Benkard | 12a5735 | 2021-12-28 18:02:04 +0100 | [diff] [blame] | 35 | </div> |
| 36 | </div> |
| 37 | </form> |
| 38 | {% else %} |
| 39 | {{ parent() }} |
| 40 | {% endif %} |
| 41 | {% endblock %} |