[
  { /* reports layout specs */

    blockid=reports;
    custom=com.netscape.management.msgserv.nntp.NNTPReports;

    localvar=
    {
      .comp.space.btns = 30;
      .comp.space.btns.left = 300;
      .comp.space.btns.sep = 12;

      .notif.title=[titled, "Notifications"];
      .notif.admin.label="Administrator's email :";
      .notif.stats.enabled="Enable statistics";
      .notif.warnings.text="Send emergency warnings to admin via email";
      .notif.newsdaily.text="Send news.daily reports to admin via email";

      .view.btn.daily.text="View Daily Reports";
      .view.btn.stats.text="View Statistics";
      .view.btn.daily.cmd=".view.daily";
      .view.btn.stats.cmd=".view.stats";
    },

    content=
    [ /* reports layout contents */

      { /* notifications group */
        ctrl=pane;
        layout=[ybox];
        border=$.notif.title;
        content=
        [ /* notifications content */

          { /* statistics enabled */
            ctrl=togglepane;
            text=$.notif.stats.enabled;
            val=$service.nntp.service.statsenabled.nsvalue;
          }, /* statistics enabled */

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

          { /* warnings enabled */
            ctrl=togglepane;
            text=$.notif.warnings.text;
            val=$service.nntp.service.sendwarnings.nsvalue;
          }, /* warnings enabled */

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

          { /* news.daily reports enabled */
            ctrl=togglepane;
            text=$.notif.newsdaily.text;
            val=$service.nntp.service.sendreports.nsvalue;
          }, /* news.daily reports enabled */

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

          { /* admin email */
            ctrl=pane;
            layout=[xbox];
            content=
            [ /* admin email contents */

              { /* label */
                ctrl=label;
                wrap=$.notif.label.size;
                alignh=left;
                aligny=0.5;
                text=$.notif.admin.label;
                id=newsmaster;
                label=newsmaster;
              },

              {
                ctrl=rigid;
              },

              { /* admin email textfield */
                ctrl=text;
                aligny=0.5;
                label=newsmaster;
                val=$service.nntp.service.newsmaster.nsvalue;
              } /* admin email textfield */

            ] /* admin email contents */
          } /* admin email */

        ] /* notifications content */
      }, /* notifications group */

      {
        ctrl=vstrut;
        size=$.comp.space.btns;
      },

      { /* view reports group */
        ctrl=pane;
        layout=[xbox];
        content=
        [ /* view reports contents */

          { /* glue buttons to the right */
            ctrl=hstrut;
            size=$.comp.space.btns.left;
          }, /* glue buttons to the right */

          { /* view daily reports */
            ctrl=pane;
            layout=[ybox];
            content=
            [ /* view daily reports contents */

              { /* btn. */
                ctrl=button;
                text=$.view.btn.daily.text;
                cmd=$.view.btn.daily.cmd;
              }, /* btn. */

              {
                ctrl=vstrut;
                size=$.comp.space.btns.sep;
              },

              { /* btn. */
                ctrl=button;
                text=$.view.btn.stats.text;
                cmd=$.view.btn.stats.cmd;
              } /* btn. */

            ] /* view daily reports contents */
          } /* view daily reports */

        ] /* view reports contents */
      } /* view reports group */

    ] /* reports layout contents */
  } /* reports layout specs */

]



