You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
96 lines
4.4 KiB
96 lines
4.4 KiB
<?php
|
|
|
|
//application details
|
|
$apps[$x]['name'] = 'Email Templates';
|
|
$apps[$x]['uuid'] = '8173e738-2523-46d5-8943-13883befd2fd';
|
|
$apps[$x]['category'] = '';
|
|
$apps[$x]['subcategory'] = '';
|
|
$apps[$x]['version'] = '';
|
|
$apps[$x]['license'] = 'Mozilla Public License 1.1';
|
|
$apps[$x]['url'] = 'http://www.fusionpbx.com';
|
|
$apps[$x]['description']['en-us'] = '';
|
|
$apps[$x]['description']['en-gb'] = '';
|
|
|
|
//permission details
|
|
$y = 0;
|
|
$apps[$x]['permissions'][$y]['name'] = 'email_template_view';
|
|
$apps[$x]['permissions'][$y]['groups'][] = 'superadmin';
|
|
//$apps[$x]['permissions'][$y]['groups'][] = 'admin';
|
|
$y++;
|
|
$apps[$x]['permissions'][$y]['name'] = 'email_template_add';
|
|
$apps[$x]['permissions'][$y]['groups'][] = 'superadmin';
|
|
//$apps[$x]['permissions'][$y]['groups'][] = 'admin';
|
|
$y++;
|
|
$apps[$x]['permissions'][$y]['name'] = 'email_template_edit';
|
|
$apps[$x]['permissions'][$y]['groups'][] = 'superadmin';
|
|
//$apps[$x]['permissions'][$y]['groups'][] = 'admin';
|
|
$y++;
|
|
$apps[$x]['permissions'][$y]['name'] = 'email_template_delete';
|
|
$apps[$x]['permissions'][$y]['groups'][] = 'superadmin';
|
|
//$apps[$x]['permissions'][$y]['groups'][] = 'admin';
|
|
$y++;
|
|
$apps[$x]['permissions'][$y]['name'] = 'email_template_all';
|
|
$apps[$x]['permissions'][$y]['groups'][] = 'superadmin';
|
|
//$apps[$x]['permissions'][$y]['groups'][] = 'admin';
|
|
$y++;
|
|
|
|
//Email Templates
|
|
$y = 2;
|
|
$apps[$x]['db'][$y]['table']['name'] = 'v_email_templates';
|
|
$apps[$x]['db'][$y]['table']['parent'] = '';
|
|
$z = 0;
|
|
$apps[$x]['db'][$y]['fields'][$z]['name'] = 'email_template_uuid';
|
|
$apps[$x]['db'][$y]['fields'][$z]['type']['pgsql'] = 'uuid';
|
|
$apps[$x]['db'][$y]['fields'][$z]['type']['sqlite'] = 'text';
|
|
$apps[$x]['db'][$y]['fields'][$z]['type']['mysql'] = 'char(36)';
|
|
$apps[$x]['db'][$y]['fields'][$z]['key']['type'] = 'primary';
|
|
$z++;
|
|
$apps[$x]['db'][$y]['fields'][$z]['name'] = 'domain_uuid';
|
|
$apps[$x]['db'][$y]['fields'][$z]['type']['pgsql'] = 'uuid';
|
|
$apps[$x]['db'][$y]['fields'][$z]['type']['sqlite'] = 'text';
|
|
$apps[$x]['db'][$y]['fields'][$z]['type']['mysql'] = 'char(36)';
|
|
$apps[$x]['db'][$y]['fields'][$z]['key']['type'] = 'foreign';
|
|
$apps[$x]['db'][$y]['fields'][$z]['key']['reference']['table'] = 'v_domains';
|
|
$apps[$x]['db'][$y]['fields'][$z]['key']['reference']['field'] = 'domain_uuid';
|
|
$z++;
|
|
$apps[$x]['db'][$y]['fields'][$z]['name'] = 'template_language';
|
|
$apps[$x]['db'][$y]['fields'][$z]['type'] = 'text';
|
|
$apps[$x]['db'][$y]['fields'][$z]['search'] = 'true';
|
|
$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = 'Enter the language.';
|
|
$z++;
|
|
$apps[$x]['db'][$y]['fields'][$z]['name'] = 'template_category';
|
|
$apps[$x]['db'][$y]['fields'][$z]['type'] = 'text';
|
|
$apps[$x]['db'][$y]['fields'][$z]['search'] = 'true';
|
|
$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = 'Select the category.';
|
|
$z++;
|
|
$apps[$x]['db'][$y]['fields'][$z]['name'] = 'template_subcategory';
|
|
$apps[$x]['db'][$y]['fields'][$z]['type'] = 'text';
|
|
$apps[$x]['db'][$y]['fields'][$z]['search'] = 'true';
|
|
$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = 'Enter the subcategory.';
|
|
$z++;
|
|
$apps[$x]['db'][$y]['fields'][$z]['name'] = 'template_subject';
|
|
$apps[$x]['db'][$y]['fields'][$z]['type'] = 'text';
|
|
$apps[$x]['db'][$y]['fields'][$z]['search'] = 'true';
|
|
$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = 'Enter the template subject.';
|
|
$z++;
|
|
$apps[$x]['db'][$y]['fields'][$z]['name'] = 'template_body';
|
|
$apps[$x]['db'][$y]['fields'][$z]['type'] = 'text';
|
|
$apps[$x]['db'][$y]['fields'][$z]['search'] = 'true';
|
|
$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = 'Enter the template body.';
|
|
$z++;
|
|
$apps[$x]['db'][$y]['fields'][$z]['name'] = 'template_type';
|
|
$apps[$x]['db'][$y]['fields'][$z]['type'] = 'text';
|
|
$apps[$x]['db'][$y]['fields'][$z]['search'] = 'true';
|
|
$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = 'Set the type as html or text.';
|
|
$z++;
|
|
$apps[$x]['db'][$y]['fields'][$z]['name'] = 'template_enabled';
|
|
$apps[$x]['db'][$y]['fields'][$z]['type'] = 'text';
|
|
$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = 'Set the status of the template.';
|
|
$z++;
|
|
$apps[$x]['db'][$y]['fields'][$z]['name'] = 'template_description';
|
|
$apps[$x]['db'][$y]['fields'][$z]['type'] = 'text';
|
|
$apps[$x]['db'][$y]['fields'][$z]['search'] = 'true';
|
|
$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = 'Enter the description.';
|
|
$z++;
|
|
|
|
?>
|