NewTicketWizard.xml
24 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
<?xml version="1.0" encoding="UTF-8" ?>
<otrs_config init="Application" version="2.0">
<!-- Customer settings -->
<Setting Name="CustomerFrontend::Module###NewTicketWizard" Required="0" Valid="1">
<Description>Front-end module registration for the customer interface</Description>
<Navigation>Frontend::Customer::ModuleRegistration</Navigation>
<Value>
<Item ValueType="FrontendRegistration">
<Hash>
<Item Key="Group">
<Array>
</Array>
</Item>
<Item Key="GroupRo">
<Array>
</Array>
</Item>
<Item Key="Description">Module for creating custom new tickets</Item>
<Item Key="NavBarName">NewTicketWizard</Item>
</Hash>
</Item>
</Value>
</Setting>
<Setting Name="Loader::Module::NewTicketWizard###002-NewTicketWizard" Required="0" Valid="1">
<Description Translatable="1">Front-end module loader for the customer interface</Description>
<Navigation>Frontend::Customer::ModuleRegistration::Loader</Navigation>
<Value>
<Hash>
<Item Key="CSS">
<Array>
<Item>alpaca/alpaca.min.css</Item>
<Item>jqueryfileupload/jquery.fileupload.css</Item>
<Item>jqueryfileupload/jquery.fileupload-ui.css</Item>
<Item>bootstrap/bootstrap-theme.min.css</Item>
<Item>bootstrap/bootstrap.min.css</Item>
<Item>bootstrap/bootstrap-select.min.css</Item>
</Array>
</Item>
<Item Key="JavaScript">
<Array>
<Item>thirdparty/jqueryfileupload/jquery.fileupload.js</Item>
<Item>thirdparty/jqueryfileupload/jquery.fileupload-process.js</Item>
<Item>thirdparty/jqueryfileupload/jquery.fileupload-ui.js</Item>
<Item>thirdparty/jqueryfileupload/jquery.iframe-transport.js</Item>
<Item>thirdparty/jqueryfileupload/jquery.ui.widget.js</Item>
<Item>thirdparty/bootstrap/bootstrap.min.js</Item>
<Item>thirdparty/bootstrap/bootstrap-select.min.js</Item>
<Item>thirdparty/alpaca/handlebars.js</Item>
<Item>thirdparty/alpaca/alpaca.min.js</Item>
<Item>NewTicketWizard.js</Item>
</Array>
</Item>
</Hash>
</Value>
</Setting>
<Setting Name="CustomerFrontend::Navigation###NewTicketWizard###002-NewTicketWizard" Required="0" Valid="1">
<Description Translatable="1">Front-end module main menu item registration</Description>
<Navigation>Frontend::Customer::ModuleRegistration::MainMenu</Navigation>
<Value>
<Array>
<DefaultItem ValueType="FrontendNavigation">
<Hash>
</Hash>
</DefaultItem>
<Item>
<Hash>
<Item Key="Group">
<Array>
</Array>
</Item>
<Item Key="GroupRo">
<Array>
</Array>
</Item>
<Item Key="Description">New ticket</Item>
<Item Key="Name">New ticket</Item>
<Item Key="Link">Action=NewTicketWizard</Item>
<Item Key="LinkOption"></Item>
<Item Key="NavBar">NewTicketWizard</Item>
<Item Key="Type">Menu</Item>
<Item Key="Block"></Item>
<Item Key="AccessKey"></Item>
<Item Key="Prio">8400</Item>
</Hash>
</Item>
</Array>
</Value>
</Setting>
<Setting Name="Ticket::Frontend::Customer::NewTicketWizard###BasicSchema"
Required="0" Valid="1">
<Description>Describe the form basic schema (AlpacaJS Syntax). "DF_*" identify dynamic fields. CF_SCHEMA placeholder gets replaced by the services custom fields. It must be followed by a comma (,) and have no preceeding comma (,). See the package documentation for examples</Description>
<Navigation>Frontend::Customer::NewTicketWizard</Navigation>
<Value>
<Item ValueType="Textarea" Regex="">
"service": {
"type": "string",
"required": true
},
"type": {
"type": "number",
"enum": [
OTRS_type_values
],
"required": true
}
CF_SCHEMA
,
"subject": {
"type": "string",
"required": true
},
"description": {
"type": "string",
"required": true
},
"attachment": {
"type": "string",
"format": "uri"
},
"Action": {
"type": "string",
"default": "NewTicketWizard"
},
"FormID": {
"type": "string"
},
"Subaction": {
"type": "string",
"default": "CreateTicket"
}
</Item>
</Value>
</Setting>
<Setting Name="Ticket::Frontend::Customer::NewTicketWizard###BasicForm"
Required="0" Valid="1">
<Description>Describe the form basic fields (AlpacaJS Syntax). "DF_*" identify dynamic fields. CF_FORM placeholder gets replaced by the services custom fields. It must be followed by a comma (,) and have no preceeding comma (,). See the package documentation for examples</Description>
<Navigation>Frontend::Customer::NewTicketWizard</Navigation>
<Value>
<Item ValueType="Textarea" Regex="">
"type": {
"type": "select",
"removeDefaultNone": false,
"label": "Type:",
"optionLabels": [
OTRS_type_labels
]
},
"service": {
"type": "hidden"
}
CF_FORM,
"subject": {
"type": "text",
"label": "Subject:",
"size": 80
},
"description": {
"type": "ckeditor",
"label": "Description:",
"cols": 80,
"ckeditor": {
"toolbar": [
["Font", "FontSize", "-", "Bold", "Italic", "Underline", "-", "NumberedList", "BulletedList", "-", "Paste"],
["Image", "Table", "-", "Link"]
],
"language": "en"
},
"helper": "To insert images, drag from your computer or use the insert image button."
},
"attachment": {
"type": "upload",
"maxNumberOfFiles": 100,
"maxFileSize": 24000000,
"multiple": true,
"showUploadPreview": false,
"upload": {
"url": "/otrs/customer.pl?Action=NewTicketWizard;UploadFileCmd=UploadFile",
"autoUpload" : true,
"method": "post"
},
"label": "Attachment:",
"helper": "Attach a file if necessary."
},
"Action": {
"type": "hidden"
},
"FormID": {
"type": "hidden"
},
"Subaction": {
"type": "hidden"
}
</Item>
</Value>
</Setting>
<Setting Name="Ticket::Frontend::Customer::NewTicketWizard###MessageChooseService"
Required="0" Valid="1">
<Description>Initial message orienting the user to choose a service</Description>
<Navigation>Frontend::Customer::NewTicketWizard</Navigation>
<Value>
<Item ValueType="String" ValueRegex="">Choose the service to which you desire support</Item>
</Value>
</Setting>
<!-- Common settings (public & customer) -->
<Setting Name="Ticket::Frontend::Customer::NewTicketWizard###QueueField"
Required="0" Valid="1">
<Description>Name of the field in the form which indicates the queue to send the ticket. Non-obligatory.</Description>
<Navigation>Frontend::Customer::NewTicketWizard</Navigation>
<Value>
<Item ValueType="String" ValueRegex=""></Item>
</Value>
</Setting>
<Setting Name="Ticket::Frontend::Customer::NewTicketWizard###QueuePrefix"
Required="0" Valid="1">
<Description>When the queue comes from a field in the form, a prefix can be attached to the value while searching for the queue. A space is added between this and the queue name.</Description>
<Navigation>Frontend::Customer::NewTicketWizard</Navigation>
<Value>
<Item ValueType="String" ValueRegex=""></Item>
</Value>
</Setting>
<Setting Name="Ticket::Frontend::Customer::NewTicketWizard###ShowQueue" Required="0" Valid="1">
<Description>When false, forces the queue to be pre-selected</Description>
<Navigation>Frontend::Customer::NewTicketWizard</Navigation>
<Value>
<Item ValueType="String" ValueRegex="^\d+$">0</Item>
</Value>
</Setting>
<Setting Name="Ticket::Frontend::Customer::NewTicketWizard###CustomTemplate"
Required="0" Valid="1">
<Description>Custom template suffix for header and footer, to be loaded from the templates</Description>
<Navigation>Frontend::Customer::NewTicketWizard</Navigation>
<Value>
<Item ValueType="String"></Item>
</Value>
</Setting>
<Setting Name="PublicFrontend::Module###PictureUpload" Required="1" Valid="1">
<Description Translatable="1">Frontend module registration for image uploading in public environment</Description>
<Navigation>Frontend::Public::ModuleRegistration</Navigation>
<Value>
<Item ValueType="FrontendRegistration">
<Hash>
<Item Key="Group">
<Array>
</Array>
</Item>
<Item Key="GroupRo">
<Array>
</Array>
</Item>
<Item Key="Description">Picture upload module</Item>
<Item Key="Title">Picture upload</Item>
<Item Key="NavBarName">Ticket</Item>
</Hash>
</Item>
</Value>
</Setting>
<!-- Admin settings -->
<Setting Name="Frontend::Module###NewTicketWizardServiceForm" Required="0" Valid="1">
<Description>Frontend module registration for the agent interface service forms editor</Description>
<Navigation>Frontend::Admin::ModuleRegistration</Navigation>
<Value>
<Item ValueType="FrontendRegistration">
<Hash>
<Item Key="GroupRo">
<Array>
</Array>
</Item>
<Item Key="Group">
<Array>
<Item>admin</Item>
</Array>
</Item>
<Item Key="Description">Admin</Item>
<Item Key="Title">Service forms</Item>
<Item Key="NavBarName">Admin</Item>
</Hash>
</Item>
</Value>
</Setting>
<Setting Name="Loader::Module::NewTicketWizardServiceForm###002-NewTicketWizard" Required="0" Valid="1">
<Description Translatable="1">Loader module registration for the agent services forms editor interface</Description>
<Navigation>Frontend::Admin::ModuleRegistration::Loader</Navigation>
<Value>
<Hash>
<Item Key="CSS">
<Array>
<Item>jquery.jsonview.css</Item>
</Array>
</Item>
<Item Key="JavaScript">
<Array>
<Item>thirdparty/jqueryjsonview/jquery.jsonview.js</Item>
<Item>thirdparty/jquerychili/jquery.chili.js</Item>
<Item>thirdparty/jquerychili/jquery.chili.recipes.javascript.js</Item>
<Item>thirdparty/jquerychili/jquery.chili.recipes.js</Item>
<Item>NewTicketWizardServiceForm.js</Item>
</Array>
</Item>
</Hash>
</Value>
</Setting>
<Setting Name="Frontend::Navigation###NewTicketWizardServiceForm###002-NewTicketWizard" Required="0" Valid="0">
<Description Translatable="1">Main menu item registration</Description>
<Navigation>Frontend::Admin::ModuleRegistration::MainMenu</Navigation>
<Value>
<Array>
<DefaultItem ValueType="FrontendNavigation">
<Hash>
</Hash>
</DefaultItem>
</Array>
</Value>
</Setting>
<Setting Name="Frontend::NavigationModule###NewTicketWizardServiceForm" Required="0" Valid="1">
<Description Translatable="1">Admin area navigation for the agent interface</Description>
<Navigation>Frontend::Admin::ModuleRegistration::AdminOverview</Navigation>
<Value>
<Hash>
<Item Key="Group">
<Array>
<Item>admin</Item>
</Array>
</Item>
<Item Key="GroupRo">
<Array>
</Array>
</Item>
<Item Key="Module">Kernel::Output::HTML::NavBar::ModuleAdmin</Item>
<Item Key="Name">Service forms</Item>
<Item Key="Block">Ticket</Item>
<Item Key="Description">Create and manage service forms</Item>
<Item Key="IconBig"></Item>
<Item Key="IconSmall"></Item>
</Hash>
</Value>
</Setting>
<Setting Name="Frontend::Module###NewTicketWizardRestrictedService" Required="0" Valid="1">
<Description>Frontend module registration for the agent interface restricted service</Description>
<Navigation>Frontend::Admin::ModuleRegistration</Navigation>
<Value>
<Item ValueType="FrontendRegistration">
<Hash>
<Item Key="GroupRo">
<Array>
</Array>
</Item>
<Item Key="Group">
<Array>
<Item>admin</Item>
</Array>
</Item>
<Item Key="Description">Admin</Item>
<Item Key="Title">Service forms</Item>
<Item Key="NavBarName">Admin</Item>
</Hash>
</Item>
</Value>
</Setting>
<Setting Name="Frontend::Navigation###NewTicketWizardRestrictedService###002-NewTicketWizard" Required="0" Valid="0">
<Description Translatable="1">Main menu item registration</Description>
<Navigation>Frontend::Admin::ModuleRegistration::MainMenu</Navigation>
<Value>
<Array>
<DefaultItem ValueType="FrontendNavigation">
<Hash>
</Hash>
</DefaultItem>
</Array>
</Value>
</Setting>
<Setting Name="Frontend::NavigationModule###NewTicketWizardRestrictedService" Required="0" Valid="1">
<Description Translatable="1">Admin area navigation for the agent interface</Description>
<Navigation>Frontend::Admin::ModuleRegistration::AdminOverview</Navigation>
<Value>
<Hash>
<Item Key="Group">
<Array>
<Item>admin</Item>
</Array>
</Item>
<Item Key="GroupRo">
<Array>
</Array>
</Item>
<Item Key="Module">Kernel::Output::HTML::NavBar::ModuleAdmin</Item>
<Item Key="Name">Restricted services</Item>
<Item Key="Block">Ticket</Item>
<Item Key="Description">Create and manage restricted service</Item>
<Item Key="IconBig"></Item>
<Item Key="IconSmall"></Item>
</Hash>
</Value>
</Setting>
<!-- Public settings -->
<Setting Name="Ticket::Frontend::Customer::NewTicketWizard###MessageChooseServicePublic"
Required="0" Valid="1">
<Description>Initial message orienting the user to choose a service</Description>
<Navigation>Frontend::Customer::NewTicketWizard</Navigation>
<Value>
<Item ValueType="String" ValueRegex="">Choose the service to which you desire support.</Item>
</Value>
</Setting>
<Setting Name="Ticket::Frontend::Customer::NewTicketWizard###DefaultCustomerID"
Required="1" Valid="1">
<Description>Customer ID to use when public ticket is created, since the public user has no customerID</Description>
<Navigation>Frontend::Customer::NewTicketWizard</Navigation>
<Value>
<Item ValueType="String" ValueRegex=""></Item>
</Value>
</Setting>
<Setting Name="Ticket::Frontend::Customer::NewTicketWizard###DefaultUserID"
Required="1" Valid="1">
<Description>Default agent for created tickets. Per-default it is 1 (OTRS Admin)</Description>
<Navigation>Frontend::Customer::NewTicketWizard</Navigation>
<Value>
<Item ValueType="String" ValueRegex="^\d+$">1</Item>
</Value>
</Setting>
<Setting Name="Ticket::Frontend::Customer::NewTicketWizard###DefaultUserDomain"
Required="1" Valid="1">
<Description>Default domain for user e-mails. This setting helps the module finding the associated user automatically through the e-mail, even though he didn't use the authenticated customer interface</Description>
<Navigation>Frontend::Customer::NewTicketWizard</Navigation>
<Value>
<Item ValueType="String" ValueRegex=""></Item>
</Value>
</Setting>
<Setting Name="PublicFrontend::Module###NewTicketWizardPublic" Required="0" Valid="1">
<Description>Module registration for NewTicketWizardPublic module</Description>
<Navigation>Frontend::Public::ModuleRegistration</Navigation>
<Value>
<Item ValueType="FrontendRegistration">
<Hash>
<Item Key="Group">
<Array>
</Array>
</Item>
<Item Key="GroupRo">
<Array>
</Array>
</Item>
<Item Key="Description">Module for creating custom new tickets in public interface</Item>
<Item Key="NavBarName">NewTicketWizardPublic</Item>
</Hash>
</Item>
</Value>
</Setting>
<Setting Name="Loader::Module::NewTicketWizardPublic###002-NewTicketWizard" Required="0" Valid="1">
<Description Translatable="1">Loader module registration for the public new ticket interface</Description>
<Navigation>Frontend::Public::ModuleRegistration</Navigation>
<Value>
<Hash>
<Item Key="CSS">
<Array>
<Item>alpaca/alpaca.min.css</Item>
<Item>jqueryfileupload/jquery.fileupload.css</Item>
<Item>jqueryfileupload/jquery.fileupload-ui.css</Item>
<Item>bootstrap/bootstrap-theme.min.css</Item>
<Item>bootstrap/bootstrap.min.css</Item>
<Item>bootstrap/bootstrap-select.min.css</Item>
</Array>
</Item>
<Item Key="JavaScript">
<Array>
<Item>thirdparty/jqueryfileupload/jquery.fileupload.js</Item>
<Item>thirdparty/jqueryfileupload/jquery.fileupload-process.js</Item>
<Item>thirdparty/jqueryfileupload/jquery.fileupload-ui.js</Item>
<Item>thirdparty/jqueryfileupload/jquery.iframe-transport.js</Item>
<Item>thirdparty/jqueryfileupload/jquery.ui.widget.js</Item>
<Item>thirdparty/bootstrap/bootstrap.min.js</Item>
<Item>thirdparty/bootstrap/bootstrap-select.min.js</Item>
<Item>thirdparty/alpaca/handlebars.js</Item>
<Item>thirdparty/alpaca/alpaca.min.js</Item>
<Item>NewTicketWizard.js</Item>
</Array>
</Item>
</Hash>
</Value>
</Setting>
<Setting Name="PublicFrontend::Navigation###NewTicketWizardPublic###002-NewTicketWizard" Required="0" Valid="1">
<Description Translatable="1">Main menu item registration for the public interface</Description>
<Navigation>Frontend::Public::ModuleRegistration</Navigation>
<Value>
<Array>
<DefaultItem ValueType="FrontendNavigation">
<Hash>
</Hash>
</DefaultItem>
<Item>
<Hash>
<Item Key="Group">
<Array>
</Array>
</Item>
<Item Key="GroupRo">
<Array>
</Array>
</Item>
<Item Key="Description">New ticket wizard public</Item>
<Item Key="Name">New ticket public</Item>
<Item Key="Link">Action=NewTicketWizardPublic</Item>
<Item Key="LinkOption"></Item>
<Item Key="NavBar">NewTicketWizardPublic</Item>
<Item Key="Type">Menu</Item>
<Item Key="Block"></Item>
<Item Key="AccessKey"></Item>
<Item Key="Prio">8400</Item>
</Hash>
</Item>
</Array>
</Value>
</Setting>
<Setting Name="Ticket::Frontend::Customer::NewTicketWizard###BasicSchemaPublic"
Required="0" Valid="1">
<Description>Describe the form basic schema (AlpacaJS Syntax). "DF_*" identify dynamic fields. CF_SCHEMA placeholder gets replaced by the services custom fields. It must be followed by a comma (,) and have no preceeding comma (,). See the package documentation for examples.</Description>
<Navigation>Frontend::Customer::NewTicketWizard</Navigation>
<Value>
<Item ValueType="Textarea" Regex="">
"service": {
"type": "string",
"required": true
},
"name": {
"type": "string",
"required": true
},
"email": {
"type": "string",
"required": true
},
"type": {
"type": "number",
"enum": [
OTRS_type_values
],
"required": true
}
CF_SCHEMA
,
"subject": {
"type": "string",
"required": true
},
"description": {
"type": "string",
"required": true
},
"attachment": {
"type": "array"
},
"Action": {
"type": "string",
"default": "NewTicketWizardPublic"
},
"FormID": {
"type": "string"
},
"Subaction": {
"type": "string",
"default": "CreateTicket"
}
</Item>
</Value>
</Setting>
<Setting Name="Ticket::Frontend::Customer::NewTicketWizard###BasicFormPublic"
Required="0" Valid="1">
<Description>Describe the form basic fields (AlpacaJS Syntax). "DF_*" identify dynamic fields. CF_FORM placeholder gets replaced by the services custom fields. It must be followed by a comma (,) and have no preceeding comma (,). See the package documentation for examples.</Description>
<Navigation>Frontend::Customer::NewTicketWizard</Navigation>
<Value>
<Item ValueType="Textarea" Regex="">
"name": {
"type": "text",
"label": "Name:"
},
"email": {
"type": "email",
"label": "E-mail:",
"helper": ""
},
"type": {
"type": "select",
"removeDefaultNone": false,
"label": "Type:",
"optionLabels": [
OTRS_type_labels
]
},
"service": {
"type": "hidden"
}
CF_FORM,
"subject": {
"type": "text",
"label": "Subject:",
"size": 80
},
"description": {
"type": "ckeditor",
"label": "Description:",
"cols": 80,
"ckeditor": {
"toolbar": [
["Font", "FontSize", "-", "Bold", "Italic", "Underline", "-", "NumberedList", "BulletedList", "-", "Paste"],
["Image", "Table", "-", "Link"]
],
"language": "pt-br"
},
"helper": "To insert images, drag from your computer or use the insert image button."
},
"attachment": {
"type": "upload",
"maxNumberOfFiles": 100,
"maxFileSize": 24000000,
"multiple": true,
"showUploadPreview": false,
"upload": {
"url": "/otrs/public.pl?Action=NewTicketWizardPublic;UploadFileCmd=UploadFile",
"autoUpload" : true,
"method": "post"
},
"label": "Attachment:",
"helper": "Attach a file if necessary."
},
"Action": {
"type": "hidden"
},
"FormID": {
"type": "hidden"
},
"Subaction": {
"type": "hidden"
}
</Item>
</Value>
</Setting>
</otrs_config>