<vc>
    <body>
        <pad>
            <bind:collection bind="interface_list" id="interfaces">
                <dt bind="__items">
                    <dtr header="True">
                        <dth width="1" />
                        <dth text="{Name}" />
                        <dth text="IP" width="50" />
                        <dth text="TX" width="60" />
                        <dth text="RX" width="60" />
                        <dth width="1" />
                    </dtr>
                </dt>
                <bind:template>
                    <dtr>
                        <dtd>
                            <icon bind:icon="up" bindtransform="lambda x: 'ok' if x else 'remove'" />
                        </dtd>
                        <dtd>
                            <collapse>
                                <label bind="name" />
                                <pad>
                                    <tabs id="bits" />
                                </pad>
                            </collapse>
                        </dtd>
                        <dtd><label id="ip" /></dtd>
                        <dtd><label bind="tx" bindtransform="str_fsize" /></dtd>
                        <dtd><label bind="rx" bindtransform="str_fsize" /></dtd>
                        <dtd>
                            <hc>
                                <tooltip bind:visible="up" bindtransform="lambda x: not x" text="{Bring up}">
                                    <button style="mini" icon="arrow-up" id="up" />
                                </tooltip>
                                <tooltip bind:visible="up" text="{Bring down}">
                                    <button style="mini" icon="arrow-down" id="down" warning="{Bringing down primary network connection may cut off any access to the server! Are you sure?}" />
                                </tooltip>
                                <tooltip bind:visible="up" text="{Restart}">
                                    <button style="mini" icon="refresh" id="restart" warning="{Restarting primary network connection may cut off any access to the server! Are you sure?}" />
                                </tooltip>
                            </hc>
                        </dtd>
                    </dtr>
                </bind:template>
            </bind:collection>
        </pad>
    </body>

    <button id="save" icon="ok" text="{Save}" />
</vc>
