]>
git.proxmox.com Git - pmg-gui.git/blob - js/Utils.js
3 console
.log("Starting PMG Manager");
6 Ext
.define('PMG.Utils', {
9 // this singleton contains miscellaneous utilities
11 senderText
: gettext('Sender'),
12 receiverText
: gettext('Receiver'),
15 who
: gettext('Who Objects'),
16 what
: gettext('What Objects'),
17 when
: gettext('When Objects'),
18 action
: gettext('Action Objects')
21 format_otype: function(otype
) {
22 var editor
= PMG
.Utils
.object_editors
[otype
];
24 return editor
.subject
;
32 subject
: gettext("Regular Expression"),
39 fieldLabel
: gettext("Regular Expression")
44 subdir
: 'receiver_regex',
45 subject
: gettext("Regular Expression"),
53 fieldLabel
: gettext("Regular Expression")
59 subject
: gettext("Email"),
65 fieldLabel
: gettext("Email")
71 subject
: gettext("Email"),
78 fieldLabel
: gettext("Email")
84 subject
: gettext("Domain"),
90 fieldLabel
: gettext("Domain")
95 subdir
: 'receiver_domain',
96 subject
: gettext("Domain"),
103 fieldLabel
: gettext("Domain")
109 subject
: gettext("IP Address"),
115 fieldLabel
: gettext("IP Address")
121 subject
: gettext("IP Network"),
127 fieldLabel
: gettext("IP Network")
133 subject
: gettext("TimeFrame"),
139 fieldLabel
: gettext("Start Time")
145 fieldLabel
: gettext("End Time")
151 constructor: function() {
154 // do whatever you want here