[
  {
    blockid=delete;
    title="Delete Discussion Group";
    buttonsat=south;

    localvar=
    {
      .delete.node.text.size=400;

      .delete.options.items=
      [
        "local",
        "replicated"
      ];
      .delete.options.labels=
      [
        "Delete on this server only",
        "Delete on this server and all replicated servers"
      ];
    };

    content=
    [ /* delete dialog contents */

      {
        ctrl=label;
        text=$delete.nodename.text;
        wrap=$.delete.node.text.size;
      },

      { /* component space */
        ctrl=vstrut;
        size=$g.comp.space.sep;
      }, /* component space */

      { /* separator */
        ctrl=separator;
      }, /* separator */

      { /* component space */
        ctrl=vstrut;
        size=$g.comp.space.sep;
      }, /* component space */

      { /* choice to delete locally or on all servers */
        ctrl=choice;
        style=radio;
        items=$.delete.options.items;
        labels=$.delete.options.labels;
        val=$delete.options.mode;
      } /* choice to delete locally or on all servers */

    ] /* delete dialog contents */
  },

  {
    blockid=layout.folders.node.delete.children;
    title="Delete Discussion Groups";
    buttonsat=south;
    resizable=true;

    localvar=
    {
      .delete.node.text.size=400;

      .delete.options.border=[titled, "Delete options"];
      .delete.options.items=
      [
        "local",
        "replicated"
      ];
      .delete.options.labels=
      [
        "Delete on this server only",
        "Delete on this server and all replicated servers"
      ];

      .delete.pattern.text = "Delete groups under the current group that match a pattern";
      .delete.pattern.label = "Enter pattern :";
      .label.size = 80;
      .delete.nodes.text = "Delete the selected groups";

      .select.all.text="Select All";
      .select.none.text="Select None";
    };

    content=
    [

      {
        ctrl=label;
        text=$delete.nodename.text;
        wrap=$.delete.node.text.size;
      },

      { /* component space */
        ctrl=vstrut;
        size=$g.comp.space.sep;
      }, /* component space */

      { /* separator */
        ctrl=separator;
      }, /* separator */

      { /* component space */
        ctrl=vstrut;
        size=$g.comp.space.sep;
      }, /* component space */

      { /* choice to delete locally or on all servers */
        ctrl=choice;
        style=radio;
        items=$.delete.options.items;
        labels=$.delete.options.labels;
        val=$delete.options.mode;
      }, /* choice to delete locally or on all servers */

      { /* component space */
        ctrl=vstrut;
        size=$g.comp.space.sep;
      }, /* component space */

      { /* separator */
        ctrl=separator;
      }, /* separator */

      { /* component space */
        ctrl=vstrut;
        size=$g.comp.space.sep;
      }, /* component space */

      { /* delete selected nodes */
        ctrl=togglepane;
        style=radio;
        group=deletenodes;
        text=$.delete.nodes.text;
        id=deletenodes;
        inline=false;
        content=
        [ /* delete selected nodes contents */

          { /* table and buttons */
            ctrl=pane;
            layout=[xbox];
            content=
            [ /* table and buttons contents */

              { /* nodes table */
                ctrl=table;
                id=nodestable;
                stdtable=false;
                showadd=false;
                showedit=false;
                showdelete=false;
                columns=
                [
                  {
                    header="";
                  }
                ];
              }, /* nodes table */

              { /* component space */
                ctrl=hstrut;
                size=$g.comp.space.sep;
              }, /* component space */

              { /* button array */
                ctrl=pane;
                layout=[ybox];
                content=
                [

                  { /* select all */
                    ctrl=button;
                    cmd=.select.all;
                    text=$.select.all.text;
                    id=selectallbtn;
                  }, /* select all */

                  { /* component space */
                    ctrl=vstrut;
                    size=$g.comp.space;
                  }, /* component space */

                  { /* select none */
                    ctrl=button;
                    cmd=.select.none;
                    text=$.select.none.text;
                    id=selectnonebtn;
                  } /* select none */

                ];
              } /* button array */

            ]; /* table and buttons contents */
          }, /* table and buttons */

          { /* component space */
            ctrl=vstrut;
            size=$g.comp.space;
          }, /* component space */

          { /* status label */
            ctrl=label;
            text=$status.text;
            alignh=left;
            id=statustext;
          } /* status label */

        ]; /* delete selected nodes contents */
      }, /* delete selected nodes */

      { /* component space */
        ctrl=vstrut;
        size=$g.comp.space.sep;
      }, /* component space */

      { /* delete pattern */
        ctrl=togglepane;
        style=radio;
        id=deletepatt;
        inline=false;
        group=deletenodes;
        text=$.delete.pattern.text;
        content=
        [ /* delete pattern contents */

          {
            ctrl=pane;
            layout=[xbox];
            content=
            [

              {
                ctrl=label;
                text=$.delete.pattern.label;
                wrap=$.label.size;
                id=deletepatternlabel;
                alignh=left;
                aligny=0.5;
              },

              { /* component space */
                ctrl=vstrut;
                size=$g.comp.space.sep;
              }, /* component space */

              {
                ctrl=text;
                label=deletepatternlabel;
                aligny=0.5;
                id=deletepattern;
              }

            ]
          }

        ]; /* delete pattern contents */
      } /* delete pattern */

    ];
  }

]

