{% extends "base.html" %} {% load i18n %} {% load render_table from django_tables2 %} {% block title %} {% trans "Staffs" %} {% endblock title %} {% block content %} {%if users %}
{% if request.user.userplan %} {% trans "Add New Staff" %} {% trans "Manage Groups & Permissions" %} {% else %} {% url "pricing_page" request.dealer.slug as pricing_page_url %} {% include "message-illustration.html" with value1="No Active Plan, please create your subscription plan." value2="Manage Subscription" message_image="images/messages/haikal_plan_message.jpg" url=pricing_page_url %} {% endif %}
{% for user in users %} {% endfor %}
{% trans 'name'|capfirst %} {% trans 'email'|capfirst %} {% trans 'phone number'|capfirst %} {% trans 'role'|capfirst %} {% trans 'actions'|capfirst %}
{% if user.logo %} Logo {% endif %}
{{ user.arabic_name }}
{{ user.email }} {{ user.phone_number }} {% for group in user.groups %} {% trans group.name|title %} {% endfor %} {% trans 'view'|capfirst %}
{% if is_paginated %} {% include 'partials/pagination.html' %} {% endif %}
{% else %} {% if request.user.userplan %} {% url "user_create" request.dealer.slug as create_staff_url image="images/no_content/no_user.png" %} {% include "empty-illustration-page.html" with value="staff" url=create_staff_url %} {% else %} {% url "pricing_page" request.dealer.slug as pricing_page_url %} {% include "message-illustration.html" with value1="No Active Plan, please create your subscription plan." value2="Buy Plan" message_image="images/no_content/no_plan.jpg" url=pricing_page_url %} {% endif %} {% endif %} {% endblock %}