text: //---------------------------------------------------------------------
  // fm.eventtrigger application
  //---------------------------------------------------------------------
  // Copyright (C) 2007-2018 The NOC Project
  // See LICENSE for details
  //---------------------------------------------------------------------
  console.debug("Defining NOC.fm.eventtrigger.Application");
  
  Ext.define("NOC.fm.eventtrigger.Application", {
      extend: "NOC.core.ModelApplication",
      requires: [
          "NOC.fm.eventtrigger.Model",
          "NOC.main.timepattern.LookupField",
          "NOC.core.combotree.ComboTree",
          "NOC.main.notificationgroup.LookupField",
          "NOC.main.template.LookupField"
      ],
      model: "NOC.fm.eventtrigger.Model",
      search: true,
      columns: [
          {
              text: __("Name"),
              dataIndex: "name"
          },
          {
              text: __("Enabled"),
              dataIndex: "is_enabled",
              width: 50,
              renderer: NOC.render.Bool
          },
          {
              text: __("Event Class RE"),
              dataIndex: "event_class_re",
              width: 200
          },
          {
              text: __("Condition"),
              dataIndex: "condition",
              width: 200
          },
          {
              text: __("Time Pattern"),
              dataIndex: "time_pattern",
              renderer: NOC.render.Lookup("time_pattern")
          },
          {
              text: __("Notification Group"),
              dataIndex: "notification_group",
              renderer: NOC.render.Lookup("notification_group")
          },
          {
              text: __("Template"),
              dataIndex: "template",
              renderer: NOC.render.Lookup("template")
          },
          {
              text: __("Handler"),
              dataIndex: "handler",
              flex: 1
          }
      ],
      fields: [
          {
              name: "name",
              xtype: "textfield",
              fieldLabel: __("Name"),
              allowBlank: false,
              uiStyle: "medium"
          },
          {
              name: "is_enabled",
              xtype: "checkboxfield",
              boxLabel: __("Is Enabled"),
              allowBlank: false
          },
          {
              name: "description",
              xtype: "textarea",
              fieldLabel: __("Description"),
              allowBlank: true
          },
          {
              name: "event_class_re",
              xtype: "textfield",
              fieldLabel: __("Event class RE"),
              allowBlank: false
          },
          {
              name: "condition",
              xtype: "textfield",
              fieldLabel: __("Condition"),
              allowBlank: false
          },
          {
              name: "time_pattern",
              xtype: "main.timepattern.LookupField",
              fieldLabel: __("Time Pattern"),
              allowBlank: true
          },
          {
              name: "resource_group",
              xtype: "noc.core.combotree",
              restUrl: "/inv/resourcegroup/",
              fieldLabel: __("Resource Group"),
              listWidth: 1,
              listAlign: 'left',
              labelAlign: "left",
              width: 500
          },
          {
              name: "notification_group",
              xtype: "main.notificationgroup.LookupField",
              fieldLabel: __("Notification Group"),
              allowBlank: true
          },
          {
              name: "template",
              xtype: "main.template.LookupField",
              fieldLabel: __("Template"),
              allowBlank: true
          },
          {
              name: "handler",
              xtype: "textfield",
              fieldLabel: __("Handler"),
              allowBlank: true,
              vtype: "handler"
          }
      ],
      filters: [
          {
              title: __("By Enabled"),
              name: "is_enabled",
              ftype: "boolean"
          }
      ]
  });
  