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

    <body>
        <pad>
            <tabs id="config">
                <tab title="{Shares}">
                    <bind:collection bind="shares" id="shares">
                        <dt bind="__items" addrow="{Add}" />

                        <bind:template>
                            <collapserow>
                                <box>
                                    <right>
                                        <hc>
                                            <button bind="__delete" icon="remove" style="icon" warning="{Confirm deletion}" />
                                        </hc>
                                    </right>
                                    <hc>
                                        <icon icon="folder-close" />
                                        <box width="200">
                                            <label bind="name" style="bold" />
                                        </box>
                                        <label bind="path" />
                                    </hc>
                                </box>
                                <pad>
                                    <vc>
                                        <formline text="{Name}">
                                            <textbox bind="name" />
                                        </formline>
                                        <formline text="{Path}">
                                            <pathbox directory="True" bind="path" />
                                        </formline>
                                        <formline text="{Password}">
                                            <textbox bind="password" />
                                        </formline>
                                        <formline text="{Valid users}">
                                            <textbox bind="valid_users" />
                                        </formline>
                                        <formline text="{Resource forks}">
                                            <dropdown bind="appledouble"
                                                labels="['v2', 'ea']"
                                                values="['v2', 'ea']"
                                                />
                                        </formline>
                                        <formline text="{Extended attributes}">
                                            <dropdown bind="ea"
                                                labels="['none', 'ea', 'auto', 'sys']"
                                                values="['none', 'ea', 'auto', 'sys']"
                                                />
                                        </formline>
                                        <formline text="{CNID scheme}">
                                            <textbox bind="cnid_scheme" />
                                        </formline>
                                    </vc>
                                </pad>
                            </collapserow>
                        </bind:template>
                    </bind:collection>
                </tab>

                <tab title="{Config}" binder:context="global">
                    <vc>
                        <formline text="{AFP port}">
                            <textbox bind="afp_port" />
                        </formline>
                        <formline text="{CNID address}">
                            <textbox bind="cnid_listen" />
                        </formline>
                    </vc>
                </tab>
            </tabs>
        </pad>
    </body>

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