{% load mytags %}
<html>
    <head>
        {% include 'link_css.html' %}

        <style type="text/css">
        body
        {
        background: #FFFFFF;
        }
        </style>
    </head>

    <body>
        <div class="row">
            <div class="contact-box">
                <h2 class="text-center">{{ user.name }} 授权详情</h2>
                <div class="ibox-content">

                    <table class="table table-striped table-bordered table-hover " id="editable" >
                        <thead>
                            <tr>
                                <th class="text-center">ID</th>
                                <th class="text-center">IP</th>
                                <th class="text-center">主机组</th>
                                <th class="text-center">IDC</th>
                            </tr>
                        </thead>
                        <tbody>
                        {% for asset in host_permed %}
                        <tr class="gradeX">
                            <td class="text-center">{{ asset.id }}</td>
                            <td class="text-center">{{ asset.ip }}</td>
                            <td class="text-center">
                                {% for group in asset.bis_group.all %}
                                        {{ group }}
                                {% endfor %}
                            </td>
                            <td class="text-center">{{ asset.idc.name }}</td>
                        </tr>
                        {% endfor %}

                    </table>
            </div>
        </div>
    </body>
</html>