{% extends 'layouts/main-layout.html' %} {% block content %}

位置

{% if perms.authentication.add_location %}
{% endif %}
{% if page_object %}
{% endif %} {% if perms.authentication.view_location or perms.authentication.delete_location or perms.authentication.edit_location %} {% endif %} {% if page_object %} {% for location in page_object %} {% endfor %} {% else %} {% endif %}
序号 办公室名称 联系人姓名 省份 城市 邮编 状态操作
{{page_object.start_index|add:forloop.counter0}} {{location.office_name}} {{location.contact_person_name}} {{location.address.state}} {{location.address.city}} {{location.address.pin_code}} {% if request.user.is_superuser %}
{% else %} {% if location.status %} Active {% else %} Inactive {% endif %} {% endif %}
{% if perms.authentication.view_location %} {% endif %} {% if perms.authentication.edit_location %} {% endif %} {% if perms.authentication.delete_location %}
{% csrf_token %}
{% endif %}
{% include 'commons/pagination.html' %}
{% endblock content%}