Skip to content

Commit 7e9060a

Browse files
committed
Merge branch 'settings' into dev
2 parents feea50f + eb65ed9 commit 7e9060a

8 files changed

Lines changed: 149 additions & 291 deletions

File tree

src/Controllers/ConfigurationsController.php

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -21,18 +21,14 @@ public function index()
2121
{
2222
$configurations = Configuration::all();
2323
$configurations_by_sections = ['init' => [], 'table' => [], 'features' => [], 'email' => [], 'tickets' => [], 'perms' => [], 'editor' => [], 'other' => []];
24-
$init_section = ['main_route', 'main_route_path', 'admin_route', 'admin_route_path', 'master_template', 'member_model_class', 'routes', 'include_font_awesome', 'user_route', 'admin_button_text'];
24+
$init_section = ['main_route', 'main_route_path', 'admin_route', 'admin_route_path', 'master_template', 'member_model_class', 'user_route', 'admin_button_text'];
2525
$table_section = ['subject_content_column', 'list_text_max_length', 'check_last_update_seconds', 'length_menu', 'max_agent_buttons', 'calendar_month_filter', 'paginate_items'];
2626
$features_section = ['departments_feature', 'departments_notices_feature', 'ticket_attachments_feature'];
2727
$email_section = ['status_notification', 'comment_notification', 'queue_emails', 'assigned_notification',
28-
'list_owner_notification', 'status_owner_notification',
29-
'email.template', 'email.owner.newticket.template', 'email.header', 'email.signoff', 'email.signature', 'email.dashboard',
30-
'email.google_plus_link', 'email.facebook_link', 'email.twitter_link', 'email.footer', 'email.footer_link',
31-
'email.color_body_bg', 'email.color_header_bg', 'email.color_content_bg', 'email.color_footer_bg',
32-
'email.color_button_bg', 'email.account.name', 'email.account.mailbox', 'custom_recipients' ];
28+
'list_owner_notification', 'status_owner_notification', 'email.template', 'email.owner.newticket.template', 'email.account.name', 'email.account.mailbox', 'custom_recipients' ];
3329
$tickets_section = ['default_priority_id', 'default_status_id', 'default_close_status_id', 'default_reopen_status_id',
3430
'attachments_ticket_max_size', 'attachments_ticket_max_files_num', 'attachments_mimes',
35-
'attachments_path', 'thumbnails_path', 'oldest_year', 'html_replacements', 'use_default_status_id', 'delete_modal_type', 'new_ticket_autoassign'];
31+
'attachments_path', 'thumbnails_path', 'oldest_year', 'html_replacements', 'use_default_status_id', 'delete_modal_type'];
3632
$perms_section = ['agent_restrict', 'close_ticket_perm', 'reopen_ticket_perm'];
3733
$editor_section = ['editor_enabled', 'editor_html_highlighter', 'codemirror_theme',
3834
'summernote_locale', 'summernote_options_json_file', 'summernote_options_user', 'purifier_config', ];

src/Seeds/SettingsTableSeeder.php

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -123,22 +123,6 @@ public function getDefaults()
123123
*/
124124
'email.template' => 'panichd::emails.templates.panichd',
125125
'email.owner.newticket.template' => 'panichd::emails.templates.simple',
126-
// resources/views/emails/templates/ticketit.blade.php
127-
'email.header' => 'Ticket Update',
128-
'email.signoff' => 'Thank you for your patience!',
129-
'email.signature' => 'Your friends',
130-
'email.dashboard' => 'My Dashboard',
131-
'email.google_plus_link' => '#', // Toogle icon link: false or string
132-
'email.facebook_link' => '#', // Toogle icon link: false or string
133-
'email.twitter_link' => '#', // Toogle icon link: false or string
134-
'email.footer' => 'Powered by Ticketit',
135-
'email.footer_link' => 'https://github.com/panichelpdesk/panichd',
136-
'email.color_body_bg' => '#FFFFFF',
137-
'email.color_header_bg' => '#44B7B7',
138-
'email.color_content_bg' => '#F46B45',
139-
'email.color_footer_bg' => '#414141',
140-
'email.color_button_bg' => '#AC4D2F',
141-
142126

143127
/**
144128
* Configurable notifications.

src/Translations/ca/settings.php

Lines changed: 72 additions & 117 deletions
Large diffs are not rendered by default.

src/Translations/en/settings.php

Lines changed: 71 additions & 116 deletions
Original file line numberDiff line numberDiff line change
@@ -10,125 +10,80 @@
1010
$summernoteVersion = PanicHD\PanicHD\Helpers\Cdn::Summernote;
1111

1212
return [
13-
14-
'main_route' => '<p><b>Panic Help Desk main route</b>: Where to load the ticket system (ex. <code>http://url/tickets</code>)</p>', 'admin_route' => '<p><b>Panic Help Desk admin route</b>: Where to load the ticket administration dashboard (ex. <code>http://url/panichd</code>)</p>', 'master_template' => '<p><b>Template adherence</b>: The master blade template to be extended</p>', 'email.template' => '<p><b>Template adherence</b>: The email blade template to be extended</p>', 'email.header' => '<p><img src="http://i.imgur.com/5aJjuZL.jpg"/></p>', 'email.signoff' => '<p><img src="http://i.imgur.com/jONMwgF.jpg"/></p>', 'email.signature' => '<p><img src="http://i.imgur.com/coi3R63.jpg"/></p>', 'email.dashboard' => '<p><img src="http://i.imgur.com/qzNzJD4.jpg"/></p>', 'email.google_plus_link' => '<p><b>Toogle icon link</b>: empty or string</p><p><img src="http://i.imgur.com/fzyxfSg.jpg"/></p>', 'email.facebook_link' => '<p><b>Toogle icon link</b>: empty or string</p><p><img src="http://i.imgur.com/FQQzr98.jpg"/></p>', 'email.twitter_link' => '<p><b>Toogle icon link</b>: empty or string</p><p><img src="http://i.imgur.com/5JmkrF1.jpg"/></p>', 'email.footer' => '', 'email.footer_link' => '', 'email.color_body_bg' => '<p><img src="http://i.imgur.com/KTF7rEJ.jpg"/></p>', 'email.color_header_bg' => '<p><img src="http://i.imgur.com/wenw5H5.jpg"/></p>', 'email.color_content_bg' => '<p><img src="http://i.imgur.com/7r8dAFj.jpg"/></p>', 'email.color_footer_bg' => '<p><img src="http://i.imgur.com/KTjkdSN.jpg"/></p>', 'email.color_button_bg' => '<p><img src="http://i.imgur.com/0TbGIyt.jpg"/></p>', 'default_status_id' => '<p>The default status for new created tickets</p>', 'default_close_status_id' => '<p>The default closing status</p>', 'default_reopen_status_id' => '<p>The default reopening status</p>', 'paginate_items' => '<p><b>Pagination length</b>: For standard pagination.</p>', 'length_menu' => '<p><b>Pagination length</b>: For tickets table</p>', 'status_notification' => <<<'ENDHTML'
13+
// init
14+
'main_route' => 'PanicHD prefix used in Laravel route names (ex. route(\'<code>tickets</code>.index\'))',
15+
'main_route_path' => 'URL prefix to see tickets (ex. http://hostname/<code>tickets</code>/)',
16+
'admin_route' => 'PanicHD configuration menues prefix for Laravel route names (ex. route(\'<code>panichd</code>.status.index\')). Dashboard doesn\'t use it because it has it\'ts own route name "dashboard"',
17+
'admin_route_path' => 'URL prefix for PanicHD dashboard and configuration menues (ex. http://url/<code>panichd</code>/priority)',
18+
'master_template' => 'The blade template that all PanicHD views will extend',
19+
'user_route' => 'Route name for Member pages. If configured, any Member name within a view will have a link to it\'s own page',
20+
'member_model_class' => 'PanicHD "Member" model <b>full</b> namespace. Default is <code>PanicHD\PanicHD\Models\Member</code> and it\'s loaded as <code>\PanicHDMember</code>',
21+
'admin_button_text' => 'PanicHD cofiguration nav menu name',
22+
23+
// features
24+
'departments_feature' => 'View Member department related information. This feature is under development <a href="https://github.com/panichelpdesk/panichd/wiki/Under-development">as described in our wiki</a><br /><code>0</code>: disabled<br /><code>1</code>: enabled',
25+
'departments_notices_feature' => 'Ability to link specific Members to a noticed department. If a ticket is created with any of these special users as an owner, all related department members will see that ticket as a Notice. This feature is under development <a href="https://github.com/panichelpdesk/panichd/wiki/Under-development">as described in our wiki</a><br /><code>0</code>: disabled<br /><code>1</code>: enabled',
26+
'ticket_attachments_feature' => 'Ability to attach files to tickets and/or comments. <br /><code>0</code>: disabled<br /><code>1</code>: enabled',
27+
28+
// table
29+
'paginate_items' => 'Default table row number',
30+
'length_menu' => 'Options for table pagination menu',
31+
'max_agent_buttons' => 'Max agent number that will be shown as separate butttons in filter panel. If there are more agents available, they will be shown as a select list',
32+
'subject_content_column' => 'Group subject and content column in table<br /><code>0</code>: disabled<br /><code>1</code>: enabled',
33+
'calendar_month_filter' => 'View calendar filter available options by calendar periods (week, month).<br /><code>0</code>: View options by day counts (7 dies, 14 dies)<br /><code>1</code>: View options by calendar periods (week, month)',
34+
'list_text_max_length' => 'Max visible length for description and intervention fields. If any of these is bigger than this setting, the text will be cutted to this length and a button to view full text will be shown<br /><code>0</code>: Disable',
35+
'check_last_update_seconds' => 'Interval in seconds in which an AJAX last updated ticket check will be done to trigger data reload',
36+
37+
// tickets
38+
'default_status_id' => 'The default status for new tickets',
39+
'default_close_status_id' => 'The default ticket closing status',
40+
'default_reopen_status_id' => 'The default ticket reopening status',
41+
'delete_modal_type' => 'Choose which confirmation message type to use when confirming a deleting<br /><code>builtin</code>: javascript confirmation<br /><code>modal</code>: jquery modal message',
42+
'attachments_path' => 'Subfolder inside <b>storage</b> where to save attached files',
43+
'attachments_ticket_max_size' => 'Max size in <b>MB</b> for all attachments in a single ticket, including comments',
44+
'attachments_ticket_max_files_num' => 'Max number of attachments in a single ticket including comments',
45+
'attachments_mimes' => 'List of allowed attachment file extensions separated by comma',
46+
'thumbnails_path' => 'Subfolder within "storage\\app\\public" where to save attached images thumbnails',
47+
'oldest_year' => 'Allowed oldest year for ticket start date or limit date',
48+
'html_replacements' => 'Automatic string replacements for content and intervention HTML fields',
49+
'default_priority_id' => 'The default priority for new tickets',
50+
'use_default_status_id' => 'Whether to allow or not the default_status_id to be assignable in any ticket',
51+
52+
// notifications
53+
'email.template' => 'The email blade template that all notifications extend',
54+
'comment_notification' => 'Send notification when new comment is posted<br /><code>1</code>: Send notification<br /><code>0</code>: Do not send notification',
55+
'queue_emails' => 'Use Queue method when sending emails (Mail::queue).<br /><code>0</code>: Notificate via Mail::send<br /><code>1</code>: Notificate via Laravel Mail::queue. Note that it requires to be configured <a target="_blank" href="http://laravel.com/docs/master/queues">in Laravel</a>.',
56+
'assigned_notification' => 'Send notification to any newly assigned agent<br /><code>0</code>: Don\'t send notification<br /><code>1</code>: Send notification',
57+
'email.account.name' => 'The email sender name for all PanicHD notifications<br /><code>default</code>: Use Laravel defaults',
58+
'email.account.mailbox' => 'The email address for all PanicHD notifications<br /><code>default</code>: Use Laravel defaults',
59+
'list_owner_notification' => 'Notify owner when ticket list changes from active to complete or vice versa<br /><code>0</code>: disabled<br /><code>1</code>: enabled',
60+
'status_owner_notification' => 'Notify owner when ticket status changes<br /><code>0</code>: disabled<br /><code>1</code>: enabled. Requires <b>status_notification</b> setting to be enabled too',
61+
'custom_recipients' => 'Show option in a comment form to select one or many custom recipients for it',
62+
'status_notification' => 'Send email notification to ticket owner/agent when ticket status is changed<br /><code>1</code>: Send notification<br /><code>0</code>: Do not send notification',
63+
'email.owner.newticket.template' => 'Notice notification to ticket owner uses the email blade template specified here',
64+
65+
// TODO: Delete deprecated settings email.*
66+
'email.header' => '<p><img src="http://i.imgur.com/5aJjuZL.jpg"/></p>', 'email.signoff' => '<p><img src="http://i.imgur.com/jONMwgF.jpg"/></p>', 'email.signature' => '<p><img src="http://i.imgur.com/coi3R63.jpg"/></p>', 'email.dashboard' => '<p><img src="http://i.imgur.com/qzNzJD4.jpg"/></p>', 'email.google_plus_link' => '<p><b>Toogle icon link</b>: empty or string</p><p><img src="http://i.imgur.com/fzyxfSg.jpg"/></p>', 'email.facebook_link' => '<p><b>Toogle icon link</b>: empty or string</p><p><img src="http://i.imgur.com/FQQzr98.jpg"/></p>', 'email.twitter_link' => '<p><b>Toogle icon link</b>: empty or string</p><p><img src="http://i.imgur.com/5JmkrF1.jpg"/></p>', 'email.footer' => '', 'email.footer_link' => '', 'email.color_body_bg' => '<p><img src="http://i.imgur.com/KTF7rEJ.jpg"/></p>', 'email.color_header_bg' => '<p><img src="http://i.imgur.com/wenw5H5.jpg"/></p>', 'email.color_content_bg' => '<p><img src="http://i.imgur.com/7r8dAFj.jpg"/></p>', 'email.color_footer_bg' => '<p><img src="http://i.imgur.com/KTjkdSN.jpg"/></p>', 'email.color_button_bg' => '<p><img src="http://i.imgur.com/0TbGIyt.jpg"/></p>',
67+
68+
// permissions
69+
'agent_restrict' => 'Restrict agents access to only their assigned tickets<br /><code>0</code>: disabled<br /><code>1</code>: enable restricted access',
70+
'close_ticket_perm' => 'Array specifying which member types may <b>close</b> a ticket',
71+
'reopen_ticket_perm' => 'Array specifying which member types may <b>reopen</b> a ticket',
72+
73+
// editor
74+
'editor_enabled' => 'Enable summernote editor on textareas',
75+
'summernote_locale' => 'Which language should summernote js texteditor use. If value is <code>laravel</code>, locale set in <code>config/app.php</code> will be used<br /><br />Example: <code>hu-HU</code> for Hungarian. <a target="_blank" href="https://github.com/summernote/summernote/tree/master/lang">See available language codes</a>',
76+
'editor_html_highlighter' => 'Whether include <a target="_blank" href="http://summernote.org/examples/#codemirror-as-codeview">codemirror syntax highlighter</a> or not<br /><code>0</code>: Don\'t include<br /><code>1</code>: Include',
77+
'codemirror_theme' => '<p>Theme for <b>codemirror</b> syntax highlighter</p><a target="_blank" href="https://cdnjs.com/libraries/codemirror/$codemirrorVersion">View available themes</a>',
78+
'summernote_options_json_file' => 'App relative path for file that contains init values for summernote in JSON. <a target="_blank" href="http://summernote.org/deep-dive/#initialization-options">See avaiable options</a><br /><code>default</code>: Use default options',
79+
'purifier_config' => <<<'ENDHTML'
80+
<p>Set which HTML tags are allowed</p>
1581
<p>
16-
<b>Status notification</b>: send email notification to ticket owner/agent when ticket status is changed
17-
</p>
18-
19-
<p>
20-
Default is send notification: <code>1</code><br>
21-
Do not send notification: <code>0</code>
22-
</p>
23-
ENDHTML
24-
25-
, 'comment_notification' => <<<'ENDHTML'
26-
<p>
27-
<b>Comment notification</b>: Send notification when new comment is posted
28-
</p>
29-
30-
<p>
31-
Default is send notification: <code>1</code><br>
32-
Do not send notification: <code>0</code>
33-
</p>
34-
ENDHTML
35-
36-
, 'queue_emails' => <<<'ENDHTML'
37-
<p>
38-
Use Queue method when sending emails (Mail::queue instead of Mail::send).
39-
Note that Mail::queue needs to be configured first <a target="_blank" href="http://laravel.com/docs/master/queues">http://laravel.com/docs/master/queues</a>
40-
</p>
41-
42-
<p>
43-
Default is to not use queue: <code>0</code><br>
44-
Use queue: <code>1</code>
45-
</p>
46-
ENDHTML
47-
48-
, 'assigned_notification' => <<<'ENDHTML'
49-
<p><b>Agent notify</b>: To notify assigned agent (either auto or manual assignment) of new assigned or transferred tickets</p>
50-
51-
<p>
52-
Not to notify agent: <code>0</code><br>
53-
Notify agent: <code>1</code>
54-
</p>
55-
ENDHTML
56-
57-
, 'agent_restrict' => <<<'ENDHTML'
58-
<p><b>Agent restrict</b>: Restrict agents access to only their assigned tickets</p>
59-
60-
<p>
61-
Agent access only assigned tickets: <code>1</code>
62-
</p>
63-
ENDHTML
64-
65-
, 'close_ticket_perm' => '<p><b>Close Ticket Perm</b>: Who has a permission to close tickets</p>', 'reopen_ticket_perm' => '<p><b>Reopen Ticket Perm</b>: Who has a permission to reopen tickets</p>', 'delete_modal_type' => <<<'ENDHTML'
66-
<p><b>Delete Confirmation</b>: Choose which confirmation message type to use when confirming a deleting</p>
67-
68-
<p>Options: <code>builtin</code>, <code>modal</code></p>
69-
ENDHTML
70-
71-
/* ------------------ JS EDITOR ------------------ */, 'editor_enabled' => <<<'ENDHTML'
72-
<p>Enable summernote editor on textareas</p>
73-
74-
<p>
75-
Disable: <code>0</code><br>
76-
Enable: <code>1</code>
77-
</p>
78-
ENDHTML
79-
80-
, 'summernote_locale' => <<<"ENDHTML"
81-
<p>
82-
Which language should summernote js texteditor use<br>
83-
If value is <code>laravel</code>, locale set in <code>config/app.php</code> will be used
84-
</p>
85-
86-
<p>Example: <code>hu-HU</code> for Hungarian</p>
87-
88-
<p>See available language codes <a target="_blank" href="https://cdnjs.com/libraries/summernote/$summernoteVersion">here</a></p>
89-
ENDHTML
90-
91-
, 'editor_html_highlighter' => <<<'ENDHTML'
92-
<p>Whether include codemirror sytax highlighter or not</p>
93-
94-
<p><a target="_blank" href="http://summernote.org/examples/#codemirror-as-codeview">http://summernote.org/examples/#codemirror-as-codeview</a></p>
95-
96-
<p>
97-
Don't include: <code>0</code><br>
98-
Include: <code>1</code>
99-
</p>
100-
ENDHTML
101-
102-
, 'codemirror_theme' => <<<'ENDHTML'
103-
<p>Theme for sytax highlighter</p>
104-
105-
<p>Available themes <a target="_blank" href="https://cdnjs.com/libraries/codemirror/$codemirrorVersion">here</a></p>
106-
ENDHTML
107-
108-
, 'summernote_options_json_file' => <<<'ENDHTML'
109-
<p>
110-
Init values for summernote js texteditor in JSON<br>
111-
See avaiable options <a target="_blank" href="http://summernote.org/deep-dive/#initialization-options">here</a>
112-
</p>
113-
114-
<p>This setting stores the path to the json config file, relative to project route</p>
115-
ENDHTML
116-
117-
, 'purifier_config' => <<<'ENDHTML'
118-
<p>Set which html tags are allowed</p>
119-
<p>
120-
This overrides the settings part of <a target="_blank" href="https://github.com/mewebstudio/Purifier/blob/master/config/purifier.php">this file</a><br>
82+
Configuring this parameter overrides the settings in <a target="_blank" href="https://github.com/mewebstudio/Purifier/blob/master/config/purifier.php">Purifier config file</a><br>
12183
The same config can be achived by running <code>php artisan vendor:publish</code> and modifying <code>config/purifier.php</code>
12284
</p>
12385
124-
<p>Full docs: <a target="_blank" href="http://htmlpurifier.org/docs">http://htmlpurifier.org/docs</a></p>
125-
ENDHTML
126-
127-
, 'routes' => <<<'ENDHTML'
128-
<p>Set custom routes file</p>
129-
<p>
130-
Useful if you want to replace any of the Panic Help Desk components
131-
</p>
86+
<p><a target="_blank" href="http://htmlpurifier.org/docs">Purifier documentation</a></p>
13287
ENDHTML
133-
88+
, 'summernote_options_user' => 'Member without current permissions uses it\'s own summernote options if specified in this setting<br /><code>default</code>: Summernote default options'
13489
];

src/Translations/it/settings.php

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -123,12 +123,4 @@
123123
124124
<p>Full docs: <a target="_blank" href="http://htmlpurifier.org/docs">http://htmlpurifier.org/docs</a></p>
125125
ENDHTML
126-
127-
, 'routes' => <<<'ENDHTML'
128-
<p>Set custom routes file</p>
129-
<p>
130-
Useful if you want to replace any of the Panic Help Desk components
131-
</p>
132-
ENDHTML
133-
134126
];

src/Translations/ru/settings.php

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -162,13 +162,4 @@
162162
163163
<p>Документация: <a target="_blank" href="http://htmlpurifier.org/docs">http://htmlpurifier.org/docs</a></p>
164164
HTML
165-
,
166-
167-
'routes' => <<<'HTML'
168-
<p>Использовать собственный routes-файл вместо поставляемого пакетом</p>
169-
<p>
170-
Пригодится, если необходимо заменить или исключить некоторые компоненты Panic Help Desk
171-
</p>
172-
HTML
173-
174165
];

0 commit comments

Comments
 (0)