<vc>
    <servicebar
        id="servicebar"
        name="supervisor"
        buttons="
            [{
                'command': 'force-reload',
                'text': _('Reload'),
                'icon': 'step-forward',
            }]
        " />

    <body>
        <pad id="main">
            <bind:collection bind="programs" id="programs">
                <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 bind="icon" />
                                <box width="200">
                                    <label bind="name" style="bold" />
                                </box>
                                <label bind="status" />
                            </hc>
                        </box>
                        <pad>
                            <hc>
                                <vc>
                                    <formline text="{Name}">
                                        <textbox bind="name" />
                                    </formline>
                                    <formline text="{Command}">
                                        <pathbox bind="command" />
                                    </formline>
                                    <formline text="{Working directory}">
                                        <pathbox directory="True" bind="directory" />
                                    </formline>
                                    <formline text="{Autostart}">
                                        <dropdown bind="autostart" values="['true', 'false']"
                                            labels="[_('Enabled'), _('Disabled')]" />
                                    </formline>
                                    <formline text="{Autorestart}">
                                        <dropdown bind="autorestart" values="['true', 'unexpected', 'false']"
                                            labels="[_('Enabled'), _('On crash'), _('Disabled')]" />
                                    </formline>
                                </vc>
                                <vc>
                                    <formline text="{Start timeout}">
                                        <textbox bind="startsecs" />
                                    </formline>
                                    <formline text="{Start retries}">
                                        <textbox bind="startretries" />
                                    </formline>
                                    <formline text="{Username}">
                                        <textbox bind="user" />
                                    </formline>
                                    <formline text="{Environment}">
                                        <textbox bind="environment" />
                                    </formline>
                                    <formline text="umask">
                                        <textbox bind="umask" />
                                    </formline>
                                </vc>
                            </hc>
                        </pad>
                    </collapserow>
                </bind:template>
            </bind:collection>
        </pad>
    </body>

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