{% load django_bootstrap5 %} {% load bootstrap_helpers %} {% load community_utils %} {% load community_buttons %} {% load sekizai_tags %}
{% csrf_token %} {% bootstrap_form_errors form %} {% bootstrap_field form.subject %}
{% collapsible_card "Recipients" "recipients" "recipientsAccordion" show=True %} {% bootstrap_field form.recipients %} {% endcollapsible_card %}
{% bootstrap_field form.reply_to %} {% bootstrap_field form.sender %} {% bootstrap_field form.one_mail_per_user %}
{% with active_tab=preview|ifthenelse:",previewTab,bodyTab" %} {% tab_listcard bodyTab="Edit" previewTab="Preview" %} {% tab_content "bodyTab" %} {% bootstrap_field form.body %} {% endtab_content %} {% tab_content "previewTab" %}
{% endtab_content %} {% endtab_listcard %} {% endwith %}
{% collapsible_card "Mail specific content" "memberContent" "contentInfo" show=True %} The following items will be replaced by a mail specific content:
    {% for key, desc in member_elements.items %}
  • {{ key|braced }} {% clipboard_button key|braced %}: will be replaced by {{ desc }}
  • {% endfor %}
{% endcollapsible_card %} {% if general_elements %} {% collapsible_card "General content" "generalContent" "contentInfo" %} In general, you can use the following items in the mail body:
    {% for key, desc in general_elements.items %}
  • {{ key|braced }} {% clipboard_button key|braced %}: will be replaced by {{ desc }}
  • {% endfor %}
{% endcollapsible_card %} {% endif %}
{% bootstrap_button "Send" button_type="submit" %} {% addtoblock "js" %} {{ filter.form.cleaned_data|replace_with_pk|json_script:"filter_data" }} {% endaddtoblock %}