{% extends "Acc_Door_Set.html" %}
{% load i18n %}

{% block acc_door_set %}
    {% if request.user|HasPerm:"iaccess.browse_acclinkageio" %}
        $("#id_datalist").model_grid({
            "model_url": "{{ model_url }}",
            {% if "mysite.video"|hasApp %}
                "disable_cols":[],		
            {% else %}
                "disable_cols":['video_linkageio', 'lchannel_num'],
            {% endif %}
            "disabled_actions": ["_change"]
        });
    {% else %}<!--browse_acclinkageio-->
        $("#id_search").remove();
        alert(gettext("对不起，您没有访问该页面的权限，不能浏览更多信息！"));
        window.location.href = "/{{ request.surl }}accounts/login/";
    {% endif %}<!--browse_acclinkageio-->
{% endblock %}




