{% load i18n mobile_tags %}{% load has_perm_to from creme_core_tags %} Creme Mobile - {% translate 'Directory' %} {% include 'mobile/frags/phonecall_script.html' %} {% 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 %} {% 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 %}
{% 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 %}