bcc.twig 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. {% extends 'edit.twig' %}
  2. {% block inner_content %}
  3. {% if result %}
  4. <h4>{{ lang.mailbox.bcc_map }}</h4>
  5. <br>
  6. <form class="form-horizontal" data-id="editbcc" role="form" method="post">
  7. <input type="hidden" value="0" name="active">
  8. <div class="row mb-2">
  9. <label class="control-label col-sm-2" for="bcc_dest">{{ lang.mailbox.bcc_destination }}</label>
  10. <div class="col-sm-10">
  11. <input value="{{ result.bcc_dest }}" type="text" class="form-control" name="bcc_dest" id="bcc_dest">
  12. <small>{{ lang.edit.bcc_dest_format|raw }}</small>
  13. </div>
  14. </div>
  15. <div class="row mb-4">
  16. <label class="control-label col-sm-2" for="type">{{ lang.mailbox.bcc_map_type }}</label>
  17. <div class="col-sm-10">
  18. <select id="addFilterType" name="type" id="type" required>
  19. <option value="sender"{% if result.type == 'sender'%} selected{% endif %}>{{ lang.mailbox.bcc_sender_map }}</option>
  20. <option value="rcpt"{% if result.type == 'rcpt'%} selected{% endif %}>{{ lang.mailbox.bcc_rcpt_map }}</option>
  21. </select>
  22. </div>
  23. </div>
  24. <div class="row mb-2">
  25. <div class="offset-sm-2 col-sm-10">
  26. <div class="form-check">
  27. <label><input type="checkbox" class="form-check-input" value="1" name="active"{% if result.active == '1' %} checked{% endif %}> {{ lang.edit.active }}</label>
  28. </div>
  29. </div>
  30. </div>
  31. <div class="row mb-2">
  32. <div class="offset-sm-2 col-sm-10">
  33. <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>
  34. </div>
  35. </div>
  36. </form>
  37. {% else %}
  38. {{ parent() }}
  39. {% endif %}
  40. {% endblock %}