mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2026-01-29 20:19:19 +00:00
Gateways: Add confirmation for start/stop and true/false buttons (#7726)
* Gateways: Add confirmation for start/stop and true/false buttons * Update app_languages.php
This commit is contained in:
@@ -189,6 +189,33 @@ $text['confirm-start_gateways']['zh-cn'] = "您确定要启动这些网关吗?
|
||||
$text['confirm-start_gateways']['ja-jp'] = "これらのゲートウェイを開始してもよろしいですか?";
|
||||
$text['confirm-start_gateways']['ko-kr'] = "이 게이트웨이를 시작하시겠습니까?";
|
||||
|
||||
$text['confirm-start_gateway']['en-us'] = "Are you sure you want to START this gateway?";
|
||||
$text['confirm-start_gateway']['en-gb'] = "Are you sure you want to START this gateway?";
|
||||
$text['confirm-start_gateway']['ar-eg'] = "هل أنت متأكد أنك ترغب في بدء تشغيل هذا البوابة؟";
|
||||
$text['confirm-start_gateway']['de-at'] = "Sind Sie sicher, dass Sie diese Gateway STARTEN möchten?";
|
||||
$text['confirm-start_gateway']['de-ch'] = "Sind Sie sicher, dass Sie dieses Gateway STARTEN möchten?";
|
||||
$text['confirm-start_gateway']['de-de'] = "Sind Sie sicher, dass Sie dieses Gateway STARTEN möchten?";
|
||||
$text['confirm-start_gateway']['el-gr'] = "Είστε βέβαιοι ότι θέλετε να ΞΕΚΙΝΗΣΕΤΕ αυτό το πύλον;";
|
||||
$text['confirm-start_gateway']['es-cl'] = "¿Está seguro de que desea START este gateway?";
|
||||
$text['confirm-start_gateway']['es-mx'] = "¿Está seguro de que desea START este gateway?";
|
||||
$text['confirm-start_gateway']['fr-ca'] = "Êtes-vous sûr de vouloir STARTER ce gateway ?";
|
||||
$text['confirm-start_gateway']['fr-fr'] = "Êtes-vous sûr de vouloir STARTER ce gateway ?";
|
||||
$text['confirm-start_gateway']['he-il'] = "האם אתה בטוח שברצונך להפעיל את הגלע הזה?";
|
||||
$text['confirm-start_gateway']['it-it'] = "Sei sicuro di voler STARTARE questo gateway?";
|
||||
$text['confirm-start_gateway']['ka-ge'] = "მართლა გნებავთ ამ კარიბჭის GAŞVEБΑ?";
|
||||
$text['confirm-start_gateway']['nl-nl'] = "Weet u zeker dat u dit gateway wilt STARTEN?";
|
||||
$text['confirm-start_gateway']['pl-pl'] = "Czy na pewno chcesz URUCHOMIĆ to bramę?";
|
||||
$text['confirm-start_gateway']['pt-br'] = "Tem certeza que deseja START este gateway?";
|
||||
$text['confirm-start_gateway']['pt-pt'] = "Tem certeza de que deseja START este gateway?";
|
||||
$text['confirm-start_gateway']['ro-ro'] = "Sigur doriți să PORNEȚI acest gateway?";
|
||||
$text['confirm-start_gateway']['ru-ru'] = "Вы уверены, что хотите ЗАПУСТИТЬ этот шлюз?";
|
||||
$text['confirm-start_gateway']['sv-se'] = "Är du säker på att du vill STARTA detta gateway?";
|
||||
$text['confirm-start_gateway']['uk-ua'] = "Ви впевнені, що бажаєте ЗАПУСТИТИ цей шлюз?";
|
||||
$text['confirm-start_gateway']['tr-tr'] = "Bu ağ geçidini BAŞLATMAK istediğinizden emin misiniz?";
|
||||
$text['confirm-start_gateway']['zh-cn'] = "您确定要启动这个网关吗?";
|
||||
$text['confirm-start_gateway']['ja-jp'] = "このゲートウェイを開始してもよろしいですか?";
|
||||
$text['confirm-start_gateway']['ko-kr'] = "이 게이트웨이를 시작하시겠습니까?";
|
||||
|
||||
$text['confirm-stop_gateways']['en-us'] = "Are you sure you wish to STOP these gateways?";
|
||||
$text['confirm-stop_gateways']['en-gb'] = "Are you sure you wish to STOP these gateways?";
|
||||
$text['confirm-stop_gateways']['ar-eg'] = "هل أنت متأكد من رغبتك في إيقاف هذه البوابات؟";
|
||||
@@ -216,6 +243,33 @@ $text['confirm-stop_gateways']['zh-cn'] = "您确定要停止这些网关吗?"
|
||||
$text['confirm-stop_gateways']['ja-jp'] = "これらのゲートウェイを停止してもよろしいですか?";
|
||||
$text['confirm-stop_gateways']['ko-kr'] = "이 게이트웨이를 중지하시겠습니까?";
|
||||
|
||||
$text['confirm-stop_gateway']['en-us'] = "Are you sure you want to STOP this gateway?";
|
||||
$text['confirm-stop_gateway']['en-gb'] = "Are you sure you want to STOP this gateway?";
|
||||
$text['confirm-stop_gateway']['ar-eg'] = "هل أنت متأكد من رغبتك في إيقاف هذا البوابة؟";
|
||||
$text['confirm-stop_gateway']['de-at'] = "Sind Sie sicher, dass Sie diese Gateway STOPPEN möchten?";
|
||||
$text['confirm-stop_gateway']['de-ch'] = "Sind Sie sicher, dass Sie dieses Gateway STOPPEN möchten?";
|
||||
$text['confirm-stop_gateway']['de-de'] = "Sind Sie sicher, dass Sie dieses Gateway STOPPEN möchten?";
|
||||
$text['confirm-stop_gateway']['el-gr'] = "Είστε βέβαιοι ότι θέλετε να ΣΤΑΜΑΤΗΣΕΤΕ αυτή την πύλη;";
|
||||
$text['confirm-stop_gateway']['es-cl'] = "¿Estás seguro de que deseas STOP este gateway?";
|
||||
$text['confirm-stop_gateway']['es-mx'] = "¿Estás seguro de que deseas STOP este gateway?";
|
||||
$text['confirm-stop_gateway']['fr-ca'] = "Êtes-vous sûr de vouloir STOPPER ce passerelle ?";
|
||||
$text['confirm-stop_gateway']['fr-fr'] = "Êtes-vous sûr de vouloir STOPPER cette passerelle ?";
|
||||
$text['confirm-stop_gateway']['he-il'] = "האם אתה בטוח שברצונך לעצור את הגateway הזה?";
|
||||
$text['confirm-stop_gateway']['it-it'] = "Sei sicuro di voler FERMARE questo gateway?";
|
||||
$text['confirm-stop_gateway']['ka-ge'] = "დარწმუნებული ხართ, რომ გისურვათ ამ გეითওეისი?";
|
||||
$text['confirm-stop_gateway']['nl-nl'] = "Weet u zeker dat u dit gateway wilt STOPPEN?";
|
||||
$text['confirm-stop_gateway']['pl-pl'] = "Czy na pewno chcesz ZATRZYMAĆ ten bramkę?";
|
||||
$text['confirm-stop_gateway']['pt-br'] = "Tem certeza de que deseja STOP este gateway?";
|
||||
$text['confirm-stop_gateway']['pt-pt'] = "Tem certeza de que deseja STOP este gateway?";
|
||||
$text['confirm-stop_gateway']['ro-ro'] = "Sigur doriți să OPRIȚI acest gateway?";
|
||||
$text['confirm-stop_gateway']['ru-ru'] = "Вы уверены, что хотите ОСТАНОВИТЬ этот шлюз?";
|
||||
$text['confirm-stop_gateway']['sv-se'] = "Är du säker på att du vill STOPPA detta gateway?";
|
||||
$text['confirm-stop_gateway']['uk-ua'] = "Ви впевнені, що бажаєте ЗУПИНИТИ цей шлюз?";
|
||||
$text['confirm-stop_gateway']['tr-tr'] = "Bu ağ geçidini DURDURMAK istediğinizden emin misiniz?";
|
||||
$text['confirm-stop_gateway']['zh-cn'] = "您确定要停止这个网关吗?";
|
||||
$text['confirm-stop_gateway']['ja-jp'] = "このゲートウェイを停止してもよろしいですか?";
|
||||
$text['confirm-stop_gateway']['ko-kr'] = "이 게이트웨이를 중지하시겠습니까?";
|
||||
|
||||
$text['label-username']['en-us'] = "Username";
|
||||
$text['label-username']['en-gb'] = "Username";
|
||||
$text['label-username']['ar-eg'] = "اسم المستخدم";
|
||||
|
||||
@@ -363,7 +363,8 @@
|
||||
echo " <td class='hide-sm-dn'>".$text['label-status-stopped']."</td>\n";
|
||||
if (permission_exists('gateway_edit')) {
|
||||
echo " <td class='no-link center'>";
|
||||
echo button::create(['type'=>'submit','class'=>'link','label'=>$text['label-action-start'],'title'=>$text['button-start'],'onclick'=>"list_self_check('checkbox_".$x."'); list_action_set('start'); list_form_submit('form_list')"]);
|
||||
echo button::create(['type'=>'button','class'=>'link','label'=>$text['label-action-start'],'title'=>$text['button-start'],'id'=>'btn_toggle_start','name'=>'btn_toggle_start','onclick'=>"list_self_check('checkbox_".$x."'); modal_open('modal-toggle_start','btn_toggle_start');"]);
|
||||
echo modal::create(['id'=>'modal-toggle_start','type'=>'start','message'=>$text['confirm-start_gateway'],'actions'=>button::create(['type'=>'button','label'=>$text['button-start'],'icon'=>'check','id'=>'btn_toggle_start','style'=>'float: right; margin-left: 15px;','collapse'=>'never','onclick'=>"modal_close(); list_action_set('start'); list_form_submit('form_list');"])]);
|
||||
echo " </td>\n";
|
||||
}
|
||||
echo " <td> </td>\n";
|
||||
@@ -376,7 +377,8 @@
|
||||
echo " <td class='hide-sm-dn'>".$text['label-status-running']."</td>\n";
|
||||
if (permission_exists('gateway_edit')) {
|
||||
echo " <td class='no-link center'>";
|
||||
echo button::create(['type'=>'submit','class'=>'link','label'=>$text['label-action-stop'],'title'=>$text['button-stop'],'onclick'=>"list_self_check('checkbox_".$x."'); list_action_set('stop'); list_form_submit('form_list')"]);
|
||||
echo button::create(['type'=>'button','class'=>'link','label'=>$text['label-action-stop'],'title'=>$text['button-stop'],'id'=>'btn_toggle_stop','name'=>'btn_toggle_stop','onclick'=>"list_self_check('checkbox_".$x."'); modal_open('modal-toggle_stop','btn_toggle_stop');"]);
|
||||
echo modal::create(['id'=>'modal-toggle_stop','type'=>'general','message'=>$text['confirm-stop_gateway'],'actions'=>button::create(['type'=>'button','label'=>$text['button-stop'],'icon'=>'check','id'=>'btn_toggle_stop','style'=>'float: right; margin-left: 15px;','collapse'=>'never','onclick'=>"modal_close(); list_action_set('stop'); list_form_submit('form_list');"])]);
|
||||
echo " </td>\n";
|
||||
}
|
||||
echo " <td>".escape($state)."</td>\n"; //REGED, NOREG, UNREGED
|
||||
@@ -397,7 +399,8 @@
|
||||
echo " <td class='hide-sm-dn'>".escape($row["hostname"])."</td>\n";
|
||||
if (permission_exists('gateway_edit')) {
|
||||
echo " <td class='no-link center'>";
|
||||
echo button::create(['type'=>'submit','class'=>'link','label'=>$text['label-'.$row['enabled']],'title'=>$text['button-toggle'],'onclick'=>"list_self_check('checkbox_".$x."'); list_action_set('toggle'); list_form_submit('form_list')"]);
|
||||
echo button::create(['type'=>'button','class'=>'link','label'=>$text['label-'.$row['enabled']],'title'=>$text['button-toggle'],'id'=>'btn_toggle_enabled','name'=>'btn_toggle_enabled','onclick'=>"list_self_check('checkbox_".$x."'); modal_open('modal-toggle_enabled','btn_toggle_enabled');"]);
|
||||
echo modal::create(['id'=>'modal-toggle_enabled','type'=>'toggle','actions'=>button::create(['type'=>'button','label'=>$text['button-continue'],'icon'=>'check','id'=>'btn_toggle_enabled','style'=>'float: right; margin-left: 15px;','collapse'=>'never','onclick'=>"modal_close(); list_action_set('toggle'); list_form_submit('form_list');"])]);
|
||||
}
|
||||
else {
|
||||
echo " <td class='center'>";
|
||||
|
||||
Reference in New Issue
Block a user