<vc>
    <hc>
        <button icon="refresh" id="refresh" text="{Refresh}" />
        <button icon="hdd" id="mount-all" text="{Mount all}" style="normal big" />
    </hc>

    <body>
        <pad id="fstab" binder:context="fstab">
            <label text="fstab" style="bold" />
            <bind:collection bind="filesystems" id="filesystems">
                <dt bind="__items" addrow="{Add}" />
                <bind:template>
                    <collapserow>
                        <box>
                            <right>
                                <button bind="__delete" icon="remove" style="icon" warning="{Confirm deletion}" />
                            </right>
                            <hc>
                                <icon icon="hdd" />
                                <label bind="device" />
                                <label text=" → " />
                                <label bind="mountpoint" />
                            </hc>
                        </box>

                        <pad>
                            <hc>
                                <vc>
                                    <formline text="{Device}">
                                        <combobox id="device" bind="device" />
                                    </formline>
                                    <formline text="{Mountpoint}">
                                        <pathbox directory="True" bind="mountpoint" />
                                    </formline>
                                    <formline text="{FS type}">
                                        <combobox id="type" bind="type" />
                                    </formline>
                                </vc>
                                <vc>
                                    <formline text="{Options}">
                                        <textbox bind="options" />
                                    </formline>
                                    <formline text="{Scan frequency}">
                                        <textbox bind="freq" />
                                    </formline>
                                    <formline text="{Scan pass}">
                                        <textbox bind="passno" />
                                    </formline>
                                </vc>
                            </hc>
                        </pad>
                    </collapserow>
                </bind:template>
            </bind:collection>
        </pad>

        <pad id="mounts" binder:context="mounts">
            <label text="{Mounted filesystems}" style="bold" />
            <bind:collection bind="filesystems" id="filesystems">
                <vc>
                    <dt bind="__items">
                        <dtr header="True">
                            <dth text="{Device}" />
                            <dth text="{Mountpoint}" />
                            <dth text="{Used}" />
                            <dth text="{Size}" />
                            <dth text="{Usage}" />
                            <dth width="1" />
                        </dtr>
                    </dt>
                    <bind:template>
                        <dtr>
                            <dtd>
                                <label bind="device" />
                            </dtd>
                            <dtd>
                                <label bind="mountpoint" />
                            </dtd>
                            <dtd>
                                <label bind="used" bindtransform="str_fsize" />
                            </dtd>
                            <dtd>
                                <label bind="size" bindtransform="str_fsize" />
                            </dtd>
                            <dtd>
                                <progressbar bind="usage" width="200" />
                            </dtd>
                            <dtd>
                                <tooltip text="{Unmount}">
                                    <button icon="eject" style="mini" id="umount" />
                                </tooltip>
                            </dtd>
                        </dtr>
                    </bind:template>
                </vc>
            </bind:collection>
        </pad>
    </body>
    <button id="save" text="{Save}" icon="ok" />
</vc>