{% extends 'creme_core/base.html' %} {% load i18n creme_bricks creme_ctype creme_widgets %} {% block page_title %}{% translate 'Synchronization of incoming emails with Creme' %} - {% endblock %} {% block content %} {% ctype_for_naturalkey app_label='emails' model='emailsyncconfigitem' as conf_item_ctype %} {% url 'creme_config__app_portal' 'emails' as config_url %} {% with config_items=conf_item_ctype.model_class.objects.all %} {% if config_items %} {% blocktranslate with email=user.email asvar help_msg %}If an email is sent to one of the configured addresses (Carbon Copy & Blind Carbon Copy work too), and your email address "{{email}}" is found (as sender or recipient), the email can be synchronized (i.e. transformed as a Creme Email entity).{% endblocktranslate %} {% else %} {% blocktranslate asvar help_msg %}You have no email server configured; you can configure them here.{% endblocktranslate %} {% endif %} {% widget_help_sign message=help_msg|safe %} {% endwith %} {% if not job.enabled %} {% widget_help_sign message=_('The job (which fetches emails to synchronise) is currently disabled.') %} {% endif %}
{% widget_icon name='email' size='brick-hat-bar' label=_('Emails') %}

{% translate 'Synchronization of incoming emails with Creme' %}

{% comment %} TODO ???? {% endcomment %}
{% brick_import app='emails' name='emails_to_sync' as sync_brick %} {% brick_display sync_brick %} {% brick_end %} {% endblock %}