More work on device alternate.

This commit is contained in:
Mark Crane 2015-05-22 04:34:31 +00:00
parent 12e2020362
commit 2a8481888f
3 changed files with 22 additions and 9 deletions

View File

@ -999,14 +999,14 @@ $text['label-device_label']['pl'] = "Etykieta";
$text['label-device_label']['uk'] = "";
$text['label-device_label']['sv-se'] = "Etikett";
$text['label-device_alternate']['en-us'] = "Alternate";
$text['label-device_alternate']['es-cl'] = "Suplente";
$text['label-device_alternate']['pt-pt'] = "Alternado";
$text['label-device_alternate']['fr-fr'] = "Alterné";
$text['label-device_alternate']['pt-br'] = "Alternado";
$text['label-device_alternate']['pl'] = "Alternatywny";
$text['label-device_alternate']['uk'] = "заступник";
$text['label-device_alternate']['sv-se'] = "Alternate";
$text['label-device_uuid_alternate']['en-us'] = "Alternate";
$text['label-device_uuid_alternate']['es-cl'] = "Suplente";
$text['label-device_uuid_alternate']['pt-pt'] = "Alternado";
$text['label-device_uuid_alternate']['fr-fr'] = "Alterné";
$text['label-device_uuid_alternate']['pt-br'] = "Alternado";
$text['label-device_uuid_alternate']['pl'] = "Alternatywny";
$text['label-device_uuid_alternate']['uk'] = "заступник";
$text['label-device_uuid_alternate']['sv-se'] = "Alternate";
$text['label-device_key_value']['en-us'] = "Value";
$text['label-device_key_value']['es-cl'] = "Valor";

View File

@ -137,6 +137,7 @@ require_once "resources/require.php";
$_POST["device_mac_address"] = $device_mac_address;
$device_label = check_str($_POST["device_label"]);
$device_vendor = check_str($_POST["device_vendor"]);
$device_uuid_alternate = check_str($_POST["device_uuid_alternate"]);
$device_model = check_str($_POST["device_model"]);
$device_firmware_version = check_str($_POST["device_firmware_version"]);
$device_provision_enable = check_str($_POST["device_provision_enable"]);
@ -329,6 +330,7 @@ require_once "resources/require.php";
$device_username = $row["device_username"];
$device_password = $row["device_password"];
$device_vendor = $row["device_vendor"];
$device_uuid_alternate = $row["device_uuid_alternate"];
$device_model = $row["device_model"];
$device_firmware_version = $row["device_firmware_version"];
$device_provision_enable = $row["device_provision_enable"];
@ -1122,6 +1124,17 @@ require_once "resources/require.php";
echo "</td>\n";
echo "</tr>\n";
echo "<tr>\n";
echo "<td class='vncell' valign='top' align='left' nowrap='nowrap'>\n";
echo " ".$text['label-device_uuid_alternate']."\n";
echo "</td>\n";
echo "<td class='vtable' align='left'>\n";
echo " <input class='formfld' type='text' name='device_uuid_alternate' maxlength='255' value=\"$device_uuid_alternate\">\n";
echo "<br />\n";
echo $text['description-device_uuid_alternate']."\n";
echo "</td>\n";
echo "</tr>\n";
echo "<tr>\n";
echo "<td class='vncell' valign='top' align='left' nowrap='nowrap'>\n";
echo " ".$text['label-device_model']."\n";

View File

@ -193,7 +193,7 @@ else {
echo th_order_by('device_mac_address', $text['label-device_mac_address'], $order_by, $order);
echo th_order_by('device_label', $text['label-device_label'], $order_by, $order);
if ($device_alternate) {
echo th_order_by('device_template', $text['label-device_alternate'], $order_by, $order);
echo th_order_by('device_template', $text['label-device_uuid_alternate'], $order_by, $order);
}
echo th_order_by('device_vendor', $text['label-device_vendor'], $order_by, $order);
echo th_order_by('device_template', $text['label-device_template'], $order_by, $order);