Add serial number to the device edit page (#7234)

* add device serial number

* add device serial number field

* add device serial number field
This commit is contained in:
denisent
2025-01-28 16:26:32 -07:00
committed by GitHub
parent 964865ae63
commit bb1006aca8
3 changed files with 78 additions and 0 deletions
+8
View File
@@ -224,6 +224,9 @@
$apps[$x]['permissions'][$y]['groups'][] = "superadmin";
$apps[$x]['permissions'][$y]['groups'][] = "admin";
$y++;
$apps[$x]['permissions'][$y]['name'] = "device_serial_number";
$apps[$x]['permissions'][$y]['groups'][] = "superadmin";
$y++;
$apps[$x]['permissions'][$y]['name'] = "device_model";
//$apps[$x]['permissions'][$y]['groups'][] = "superadmin";
$y++;
@@ -462,6 +465,11 @@
$apps[$x]['db'][$y]['fields'][$z]['search'] = 'true';
$apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = "";
$z++;
$apps[$x]['db'][$y]['fields'][$z]['name'] = "device_serial_number";
$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'] = "";
$z++;
$apps[$x]['db'][$y]['fields'][$z]['name']['text'] = "device_model";
$apps[$x]['db'][$y]['fields'][$z]['name']['deprecated'] = "phone_model";
$apps[$x]['db'][$y]['fields'][$z]['type'] = "text";