PluginProbe
Fluent Support – Helpdesk & Customer Support Ticket System / trunk
Fluent Support – Helpdesk & Customer Support Ticket System vtrunk
2.3.2 2.3.1 2.3.0 2.2.1 2.2.0 trunk 1.10.0 1.10.1 1.10.2 1.10.3 1.10.4 1.10.5 1.4.0 1.4.1 1.4.2 1.4.5 1.4.6 1.4.7 1.5.0 1.5.1 1.5.2 1.5.3 1.5.4 1.5.5 1.5.6 All 67 releases
fluent-support / app / Services / Tickets / CustomFieldsService.php

CustomFieldsService.php in Fluent Support – Helpdesk & Customer Support Ticket System trunk, at app/Services/Tickets/CustomFieldsService.php

46 lines 1.7 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 namespace FluentSupport\App\Services\Tickets;
4
5 class CustomFieldsService
6 {
7 public function getCustomFields()
8 {
9 $customFields = [
10 [
11 'data_key' => 'ticket_type',
12 'admin_label' => __('Support Type', 'fluent-support'),
13 'public_label' => __('Please let us know about this support type', 'fluent-support'),
14 'type' => 'input-select',
15 'placeholder' => __('Support Type', 'fluent-support'),
16 'options' => [
17 'bug_report' => __('Bug Report', 'fluent-support'),
18 'feature_request' => __('Feature Request', 'fluent-support'),
19 'integration_issues' => __('Integration Issues', 'fluent-support')
20 ],
21 'required' => true
22 ],
23 [
24 'data_key' => 'invoice_number',
25 'admin_label' => __('Invoice Number', 'fluent-support'),
26 'public_label' => __('Please let us know your invoice number', 'fluent-support'),
27 'type' => 'input-text',
28 'placeholder' => __('Invoice Number', 'fluent-support'),
29 'data-type' => 'text', // number / text
30 'required' => false
31 ],
32 [
33 'data_key' => 'details_about_issue',
34 'admin_label' => __('Details about the issue', 'fluent-support'),
35 'public_label' => __('Please let us know more details about this issue', 'fluent-support'),
36 'type' => 'input-textarea',
37 'placeholder' => __('Details about the issue', 'fluent-support'),
38 'required' => false
39 ]
40 ];
41 }
42
43
44
45 }
46