<vc>
    <servicebar id="servicebar" name="ctdb" />

    <body>
        <pad>
            <tabs>
                <tab title="{Status}">
                    <vc>
                        <label style="bold" text="{Status}" />
                        <codearea id="status" />

                        <label style="bold" text="{Public IPs}" />
                        <codearea id="status-ip" />

                        <button id="refresh" icon="refresh" text="Refresh" />
                    </vc>
                </tab>

                <tab title="General" id="main-config">
                    <vc>
                        <formgroup text="{General}">
                            <formline text="{Manage Samba}">
                                <checkbox bind="manages_samba" />
                            </formline>
                            <formline text="{Debug level}">
                                <textbox bind="debug_level" />
                            </formline>
                        </formgroup>
                        <formgroup text="{Files}">
                            <formline text="{Recovery lock file}">
                                <pathbox bind="recovery_lock_file" style="big" />
                            </formline>
                            <formline text="{Public addresses file}">
                                <pathbox bind="public_addresses_file" style="big" />
                            </formline>
                            <formline text="{Nodes file}">
                                <pathbox bind="nodes_file" style="big" />
                            </formline>
                            <formline text="{Log file}">
                                <pathbox bind="log_file" style="big" />
                            </formline>
                        </formgroup>
                        <formgroup text="{Networking}">
                            <formline text="{Public interface}">
                                <textbox bind="public_interface" />
                            </formline>
                            <formline text="{Public network}">
                                <textbox bind="public_network" />
                            </formline>
                            <formline text="{Public gateway}">
                                <textbox bind="public_gateway" />
                            </formline>
                        </formgroup>
                    </vc>
                </tab>

                <tab title="{Nodes}" id="nodes-config">
                    <bind:collection bind="nodes" id="nodes">
                        <dt bind="__items" addrow="{Add}" />
                        <bind:template>
                            <collapserow>
                                <box>
                                    <right>
                                        <button bind="__delete" icon="remove" style="icon" warning="{Confirm deletion}" />
                                    </right>
                                    <hc>
                                        <icon icon="desktop" />
                                        <label bind="address" />
                                    </hc>
                                </box>

                                <indent>
                                    <formline text="{Address}">
                                        <textbox bind="address" />
                                    </formline>
                                </indent>
                            </collapserow>
                        </bind:template>
                    </bind:collection>
                </tab>

                <tab title="{Public addresses}" id="addresses-config">
                    <bind:collection bind="addresses" id="addresses">
                        <dt bind="__items" addrow="{Add}" />
                        <bind:template>
                            <collapserow>
                                <box>
                                    <right>
                                        <button bind="__delete" icon="remove" style="icon" warning="{Confirm deletion}" />
                                    </right>
                                    <hc>
                                        <icon icon="desktop" />
                                        <label bind="address" />
                                    </hc>
                                </box>

                                <indent>
                                    <hc>
                                        <formline text="{Address}">
                                            <textbox bind="address" />
                                        </formline>
                                        <formline text="{Interface}">
                                            <textbox bind="interface" />
                                        </formline>
                                    </hc>
                                </indent>
                            </collapserow>
                        </bind:template>
                    </bind:collection>
                </tab>
            </tabs>
        </pad>
    </body>

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