{% extends "base.html" %} {% load i18n %} {% load rules %} {% block title %}{% trans "Clients" %}{% endblock %} {% block breadcrumb %} {{ block.super }}
{% trans 'Clients' %}
{% endblock breadcrumb %} {% block content %} {% has_perm 'sous_chef.edit' request.user as can_edit_data %}
{% if can_edit_data %} {% trans 'New client' %}
{% trans 'Or' %}
{% endif %} {% include 'client/partials/filters.html' %}
{% if display == 'block' %} {% if clients %}
{% for obj in clients %}
{{ obj.member }}
{{ obj.age }} {% trans "years old" %}

{% blocktrans trimmed with member_firstname=obj.member.firstname delivery_type=obj.get_delivery_type_display route=obj.route %} {{ member_firstname }} is an {{ delivery_type }} client on the {{ route }} route. {% endblocktrans %}

{% trans "This client is currently" %} {{ obj.get_status_display }}.

{{ obj.member.home_phone }}
{% if obj.alert %} {% endif %}
{% endfor %}
{% else %}

{% trans 'Sorry, no result found.' %}

{% endif %} {% else %} {% if clients %} {% for obj in clients %} {% endfor %}
{% trans 'Name' %} {% trans 'Status' %} {% trans 'Delivery type' %} {% trans 'Route' %} {% trans 'Geolocalized' %} {% trans 'Last update' %}
{{ obj.member }}
{{ obj.age }} {% trans "years old" %}
{{ obj.get_status_display }} {{ obj.get_delivery_type_display }} {{ obj.route }} {% if obj.is_geolocalized %} {% trans 'Yes' %} {% else %} {% trans 'No' %} {% endif %} {{ obj.member.updated_at|date:"Y/m/d H:h:m" }}
{% include "system/_button_export.html" %}
{% else %}

{% trans 'Sorry, no result found.' %}

{% endif %} {% endif %} {% if is_paginated %} {% endif %} {% endblock %}