<vc>
    <body>
        <pad id="hosts-config">
            <bind:collection bind="hosts" id="hosts">
                <dt bind="__items" addrow="{Add}" />
                <bind:template>
                    <collapserow>
                        <box>
                            <right>
                                <button bind="__delete" icon="remove" style="icon" warning="{Confirm deletion}" />
                            </right>
                            <hc>
                                <icon icon="globe" />
                                <label bind="name" />
                            </hc>
                        </box>

                        <indent>
                            <vc>
                                <formline text="{Name}">
                                    <textbox bind="name" />
                                </formline>
                                <formline text="{Address}">
                                    <textbox bind="address" />
                                </formline>
                                <bind:collection id="aliases" bind="aliases">
                                    <formline text="{Aliases}">
                                        <vc>
                                            <vc bind="__items" />
                                            <button bind="__add" icon="plus" text="{Create}" />
                                        </vc>
                                    </formline>
                                    <bind:template>
                                        <hc>
                                            <icon icon="tags" />
                                            <textbox bind="name" />
                                            <button bind="__delete" icon="remove" style="mini" />
                                        </hc>
                                    </bind:template>
                                </bind:collection>
                            </vc>
                        </indent>
                    </collapserow>
                </bind:template>
            </bind:collection>
        </pad>
    </body>

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