Added device_settings.php, device_settings_delete.php, and device_settings_edit.php as well as modified app_config.php and app_languages.php to include the new labels and permissions.
This commit is contained in:
parent
a9f39f7930
commit
04a76589ce
|
|
@ -86,6 +86,19 @@
|
|||
$apps[$x]['permissions'][$y]['name'] = "device_line_delete";
|
||||
$apps[$x]['permissions'][$y]['groups'][] = "superadmin";
|
||||
$apps[$x]['permissions'][$y]['groups'][] = "admin";
|
||||
|
||||
$apps[$x]['permissions'][$y]['name'] = "device_setting_view";
|
||||
$apps[$x]['permissions'][$y]['groups'][] = "superadmin";
|
||||
$y++;
|
||||
$apps[$x]['permissions'][$y]['name'] = "device_setting_add";
|
||||
$apps[$x]['permissions'][$y]['groups'][] = "superadmin";
|
||||
$y++;
|
||||
$apps[$x]['permissions'][$y]['name'] = "device_setting_edit";
|
||||
$apps[$x]['permissions'][$y]['groups'][] = "superadmin";
|
||||
$y++;
|
||||
$apps[$x]['permissions'][$y]['name'] = "device_setting_delete";
|
||||
$apps[$x]['permissions'][$y]['groups'][] = "superadmin";
|
||||
$y++;
|
||||
|
||||
//schema details
|
||||
$y = 0; //table array index
|
||||
|
|
@ -270,4 +283,48 @@
|
|||
$apps[$x]['db'][$y]['fields'][$z]['type'] = "text";
|
||||
$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "Enter the password.";
|
||||
$z++;
|
||||
|
||||
$y = 3; //table array index
|
||||
$z = 0; //field array index
|
||||
$apps[$x]['db'][$y]['table'] = "v_device_settings";
|
||||
$apps[$x]['db'][$y]['fields'][$z]['name'] = "device_setting_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";
|
||||
$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "";
|
||||
$z++;
|
||||
$apps[$x]['db'][$y]['fields'][$z]['name'] = "device_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_devices";
|
||||
$apps[$x]['db'][$y]['fields'][$z]['key']['reference']['field'] = "device_uuid";
|
||||
$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "";
|
||||
$z++;
|
||||
$apps[$x]['db'][$y]['fields'][$z]['name'] = "device_setting_category";
|
||||
$apps[$x]['db'][$y]['fields'][$z]['key']['type'] = "text";
|
||||
$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "";
|
||||
$z++;
|
||||
$apps[$x]['db'][$y]['fields'][$z]['name'] = "device_setting_subcategory";
|
||||
$apps[$x]['db'][$y]['fields'][$z]['key']['type'] = "text";
|
||||
$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "";
|
||||
$z++;
|
||||
$apps[$x]['db'][$y]['fields'][$z]['name'] = "device_setting_name";
|
||||
$apps[$x]['db'][$y]['fields'][$z]['type'] = "text";
|
||||
$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "";
|
||||
$z++;
|
||||
$apps[$x]['db'][$y]['fields'][$z]['name'] = "device_setting_value";
|
||||
$apps[$x]['db'][$y]['fields'][$z]['type'] = "text";
|
||||
$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "";
|
||||
$z++;
|
||||
$apps[$x]['db'][$y]['fields'][$z]['name'] = "device_setting_enabled";
|
||||
$apps[$x]['db'][$y]['fields'][$z]['type'] = "text";
|
||||
$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "";
|
||||
$z++;
|
||||
$apps[$x]['db'][$y]['fields'][$z]['name'] = "device_setting_description";
|
||||
$apps[$x]['db'][$y]['fields'][$z]['type'] = "text";
|
||||
$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "";
|
||||
$z++;
|
||||
?>
|
||||
|
|
|
|||
|
|
@ -217,6 +217,14 @@
|
|||
$text['button-back']['pt-pt'] = "Voltar";
|
||||
$text['button-back']['fr-fr'] = "Retour";
|
||||
|
||||
$text['label-tools']['en-us'] = "Tools";
|
||||
$text['label-tools']['pt-pt'] = "Ferramentas";
|
||||
$text['label-tools']['fr-fr'] = "Outils";
|
||||
|
||||
$text['label-settings']['en-us'] = "Settings";
|
||||
$text['label-settings']['pt-pt'] = "Definições";
|
||||
$text['label-settings']['fr-fr'] = "Configurations";
|
||||
|
||||
$text['confirm-delete']['en-us'] = "Do you really want to delete this?";
|
||||
$text['confirm-delete']['pt-pt'] = "Deseja realmente remover isto?";
|
||||
$text['confirm-delete']['fr-fr'] = "Voulez-vous vraiment supprimer cela?";
|
||||
|
|
@ -236,5 +244,53 @@
|
|||
$text['message-required']['en-us'] = "Please provide: ";
|
||||
$text['message-required']['pt-pt'] = "Por favor indique: ";
|
||||
$text['message-required']['fr-fr'] = "Merci d'indiquer: ";
|
||||
|
||||
$text['label-category']['en-us'] = "Category";
|
||||
$text['label-category']['pt-pt'] = "Categoria";
|
||||
$text['label-category']['fr-fr'] = "Catégorie";
|
||||
|
||||
$text['description-category']['en-us'] = "Enter the category.";
|
||||
$text['description-category']['pt-pt'] = "Introduza a categoria.";
|
||||
$text['description-category']['fr-fr'] = "";
|
||||
|
||||
$text['label-subcategory']['en-us'] = "Subcategory";
|
||||
$text['label-subcategory']['pt-pt'] = "Subcategoria";
|
||||
$text['label-subcategory']['fr-fr'] = "Sous-Catégorie";
|
||||
|
||||
$text['description-subcategory']['en-us'] = "Enter the subcategory.";
|
||||
$text['description-subcategory']['pt-pt'] = "Introduza a subcategoria";
|
||||
$text['description-subcategory']['fr-fr'] = "";
|
||||
|
||||
$text['label-type']['en-us'] = "Type";
|
||||
$text['label-type']['pt-pt'] = "Tipo";
|
||||
$text['label-type']['fr-fr'] = "Type";
|
||||
|
||||
$text['description-type']['en-us'] = "Enter the setting type (ie. uuid, name, var, dir, etc).";
|
||||
$text['description-type']['pt-pt'] = "Introduza o tipo de definição (ex: uuid, name, var, dir, etc).";
|
||||
$text['description-type']['fr-fr'] = "Entrer le type du paramètre (ie. uuid, nom, var, dir, etc).";
|
||||
|
||||
$text['label-value']['en-us'] = "Value";
|
||||
$text['label-value']['pt-pt'] = "Valor";
|
||||
$text['label-value']['fr-fr'] = "Valeur";
|
||||
|
||||
$text['description-value']['en-us'] = "Enter the value of this setting.";
|
||||
$text['description-value']['pt-pt'] = "Introduza o valor desta definição.";
|
||||
$text['description-value']['fr-fr'] = "";
|
||||
|
||||
$text['label-enabled']['en-us'] = "Enabled";
|
||||
$text['label-enabled']['pt-pt'] = "Activado";
|
||||
$text['label-enabled']['fr-fr'] = "Actif";
|
||||
|
||||
$text['description-enabled']['en-us'] = "Set the status of this default setting.";
|
||||
$text['description-enabled']['pt-pt'] = "Escolha o estado desta definição por omissão.";
|
||||
$text['description-enabled']['fr-fr'] = "Choisir l'état de ce paramètre";
|
||||
|
||||
$text['label-description']['en-us'] = "Description";
|
||||
$text['label-description']['pt-pt'] = "Descrição";
|
||||
$text['label-description']['fr-fr'] = "Description";
|
||||
|
||||
$text['description-description']['en-us'] = "Enter a description, if desired.";
|
||||
$text['description-description']['pt-pt'] = "Introduza uma descrição, caso queira.";
|
||||
$text['description-description']['fr-fr'] = "";
|
||||
|
||||
?>
|
||||
|
|
|
|||
|
|
@ -115,6 +115,7 @@ else {
|
|||
//echo th_order_by('device_username', $text['label-device_username'], $order_by, $order);
|
||||
//echo th_order_by('device_password', $text['label-device_password'], $order_by, $order);
|
||||
//echo th_order_by('device_time_zone', $text['label-device_time_zone'], $order_by, $order);
|
||||
echo "<th>".$text['label-tools']."</th>\n";
|
||||
echo th_order_by('device_description', $text['label-device_description'], $order_by, $order);
|
||||
echo "<td align='right' width='42'>\n";
|
||||
if (permission_exists('device_add')) {
|
||||
|
|
@ -143,6 +144,9 @@ else {
|
|||
//echo " <td valign='top' class='".$row_style[$c]."'>".$row['device_username']." </td>\n";
|
||||
//echo " <td valign='top' class='".$row_style[$c]."'>".$row['device_password']." </td>\n";
|
||||
//echo " <td valign='top' class='".$row_style[$c]."'>".$row['device_time_zone']." </td>\n";
|
||||
echo " <td valign='middle' class='".$row_style[$c]."'>\n";
|
||||
echo " <a href='device_settings.php?id=".$row['device_uuid']."'>".$text['label-settings']."</a> \n";
|
||||
echo " </td>\n";
|
||||
echo " <td valign='top' class='row_stylebg'>".$row['device_description']." </td>\n";
|
||||
echo " <td valign='top' align='right'>\n";
|
||||
if (permission_exists('device_edit')) {
|
||||
|
|
@ -159,10 +163,12 @@ else {
|
|||
} //end if results
|
||||
|
||||
echo "<tr>\n";
|
||||
echo "<td colspan='7' align='left'>\n";
|
||||
echo "<td colspan='8' align='left'>\n";
|
||||
echo " <table width='100%' cellpadding='0' cellspacing='0'>\n";
|
||||
echo " <tr>\n";
|
||||
echo " <td width='33.3%' nowrap='nowrap'> </td>\n";
|
||||
echo " <td width='33.3%' nowrap='nowrap'> </td>\n";
|
||||
echo " <td width='33.3%' nowrap='nowrap'> </td>\n";
|
||||
echo " <td width='33.3%' align='center' nowrap='nowrap'>$paging_controls</td>\n";
|
||||
echo " <td width='33.3%' align='right'>\n";
|
||||
if (permission_exists('device_add')) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue