{% load i18n creme_ctype creme_perms mobile_tags %}{# {% load has_perm_to from creme_core_tags %} #}
Creme Mobile - {% translate 'Directory' %}
{% include 'mobile/frags/phonecall_script.html' %}
{% translate 'Home' %}
{% translate 'Directory' %}
{% translate 'Activities' %}
{% include 'mobile/frags/search_div.html' %}
{# {% has_perm_to create contact_model as contact_creation_perm %}{% has_perm_to create orga_model as orga_creation_perm %} #} {% ctype_for_swappable 'PERSONS_CONTACT_MODEL' as contact_ctype %}{% ctype_for_swappable 'PERSONS_ORGANISATION_MODEL' as orga_ctype %} {% with contact_creation_perm=user|has_perm_to_create:contact_ctype orga_creation_perm=user|has_perm_to_create:orga_ctype %} {% if contact_creation_perm or orga_creation_perm %}
{% if contact_creation_perm %}
{% translate 'Create a contact' %}
{% endif %} {% if orga_creation_perm %}
{% translate 'Create an organisation' %}
{% endif %}
{% endif %} {% endwith %}
{% if favorite_contacts %} {% blocktranslate count counter=favorite_contacts|length %}{{counter}} favorite contact{% plural %}{{counter}} favorite contacts{% endblocktranslate %} {% else %} {% translate 'No favorite contact' %} {% endif %}
{% for contact in favorite_contacts %}
{% include 'mobile/frags/contact_card.html' %}
{% endfor %}
{% if favorite_organisations %} {% blocktranslate count counter=favorite_organisations|length %}{{counter}} favorite organisation{% plural %}{{counter}} favorite organisations{% endblocktranslate %} {% else %} {% translate 'No favorite organisation' %} {% endif %}
{% for orga in favorite_organisations %}
{% include 'mobile/frags/orga_card.html' %}
{% endfor %}
{% mobile_footer %}