Select box blank option adjustments, added Port, Transport, Register Expires to Device Edit page with other fields, minor language file adjustment.

This commit is contained in:
Nate Jones 2014-04-27 09:53:45 +00:00
parent 1b651f7f2a
commit 59f47e9576
2 changed files with 27 additions and 15 deletions

View File

@ -379,9 +379,9 @@
$text['label-eventlist_blf']['fr-fr'] = "Eventlist BLF";
$text['label-speed_dial_active']['en-us'] = "Speed Dial Active";
$text['label-speed_dial_active']['es-cl'] = "Speed Dial activo";
$text['label-speed_dial_active']['es-cl'] = "Speed ??Dial activo";
$text['label-speed_dial_active']['pt-pt'] = "Discagem Rápida Ativa";
$text['label-speed_dial_active']['fr-fr'] = "Speed Dial active";
$text['label-speed_dial_active']['fr-fr'] = "Speed ??Dial active";
$text['label-voicemail']['en-us'] = "Voicemail";
$text['label-voicemail']['es-cl'] = "Correo de voz";
@ -609,14 +609,14 @@
$text['label-keypad_lock']['fr-fr'] = "Verrouiller le clavier";
//general translations
$text['label-true']['en-us'] = "true";
$text['label-true']['es-cl'] = "verdadero";
$text['label-true']['pt-pt'] = "sim";
$text['label-true']['en-us'] = "True";
$text['label-true']['es-cl'] = "Verdadero";
$text['label-true']['pt-pt'] = "Sim";
$text['label-true']['fr-fr'] = "Oui";
$text['label-false']['en-us'] = "false";
$text['label-false']['es-cl'] = "falso";
$text['label-false']['pt-pt'] = "não";
$text['label-false']['en-us'] = "False";
$text['label-false']['es-cl'] = "Falso";
$text['label-false']['pt-pt'] = "Não";
$text['label-false']['fr-fr'] = "Non";
$text['button-add']['en-us'] = "Add";

View File

@ -477,6 +477,9 @@ require_once "resources/require.php";
echo " <td class='vtable'>".$text['label-user_id']."</td>\n";
echo " <td class='vtable'>".$text['label-auth_id']."</td>\n";
echo " <td class='vtable'>".$text['label-password']."</td>\n";
echo " <td class='vtable'>".$text['label-sip_port']."</td>\n";
echo " <td class='vtable'>".$text['label-sip_transport']."</td>\n";
echo " <td class='vtable'>".$text['label-register_expires']."</td>\n";
echo " <td>&nbsp;</td>\n";
echo " </tr>\n";
@ -540,14 +543,27 @@ require_once "resources/require.php";
echo " <input class='formfld' style='width: 90px;' type='password' name='device_lines[".$x."][password]' onmouseover=\"this.type='text';\" onfocus=\"this.type='text';\" onmouseout=\"if (!$(this).is(':focus')) { this.type='password'; }\" onblur=\"this.type='password';\" maxlength='255' value=\"".$row['password']."\">\n";
echo " </td>\n";
echo " <td class='vtable' align='left'>\n";
echo " <input class='formfld' style='width: 75px;' type='text' name='device_lines[".$x."][sip_port]' maxlength='255' value=\"".$row['sip_port']."\">\n";
echo " </td>\n";
echo " <td class='vtable' align='left'>\n";
echo " <select class='formfld' style='width: 60px;' name='device_lines[".$x."][sip_transport]'>\n";
echo " <option value='tcp' ".(($row['sip_transport'] == 'tcp') ? "selected" : null).">TCP</option>\n";
echo " <option value='udp' ".(($row['sip_transport'] == 'udp') ? "selected" : null).">UDP</option>\n";
echo " <option value='tls' ".(($row['sip_transport'] == 'tls') ? "selected" : null).">TLS</option>\n";
echo " </select>\n";
echo " </td>\n";
echo " <td class='vtable' align='left'>\n";
echo " <input class='formfld' style='width: 75px;' type='text' name='device_lines[".$x."][register_expires]' maxlength='255' value=\"".$row['register_expires']."\">\n";
echo " </td>\n";
//echo " <td class='vtable' align='left'>\n";
//echo " <input type='submit' class='btn' value='".$text['button-save']."'>\n";
//echo " </td>\n";
echo " <td>\n";
if (strlen($row['device_line_uuid']) > 0) {
if (permission_exists('device_edit')) {
echo " <a href='device_line_edit.php?device_uuid=".$row['device_uuid']."&id=".$row['device_line_uuid']."' alt='".$text['button-edit']."'>$v_link_label_edit</a>\n";
}
if (permission_exists('device_delete')) {
echo " <a href='device_line_delete.php?device_uuid=".$row['device_uuid']."&id=".$row['device_line_uuid']."' alt='".$text['button-delete']."' onclick=\"return confirm('".$text['confirm-delete']."')\">$v_link_label_delete</a>\n";
}
@ -768,9 +784,6 @@ require_once "resources/require.php";
//echo " </td>\n";
echo " <td nowrap='nowrap'>\n";
if (strlen($row['device_key_uuid']) > 0) {
if (permission_exists('device_key_edit')) {
echo " <a href='device_key_edit.php?device_uuid=".$row['device_uuid']."&id=".$row['device_key_uuid']."' alt='".$text['button-edit']."'>$v_link_label_edit</a>\n";
}
if (permission_exists('device_key_delete')) {
echo " <a href='device_key_delete.php?device_uuid=".$row['device_uuid']."&id=".$row['device_key_uuid']."' alt='".$text['button-delete']."' onclick=\"return confirm('".$text['confirm-delete']."')\">$v_link_label_delete</a>\n";
}
@ -940,7 +953,6 @@ require_once "resources/require.php";
echo "</td>\n";
echo "<td class='vtable' align='left'>\n";
echo " <select class='formfld' name='device_provision_enable'>\n";
echo " <option value=''></option>\n";
if ($device_provision_enable == "true" || strlen($device_provision_enable) == 0) {
echo " <option value='true' selected='selected'>".$text['label-true']."</option>\n";
}