Sip Profiles: Add toggle confirmation for true/false button (#7719)
This commit is contained in:
@@ -205,7 +205,8 @@
|
|||||||
echo " <td>".escape($row['sip_profile_hostname'])." </td>\n";
|
echo " <td>".escape($row['sip_profile_hostname'])." </td>\n";
|
||||||
if (permission_exists('sip_profile_edit')) {
|
if (permission_exists('sip_profile_edit')) {
|
||||||
echo " <td class='no-link center'>\n";
|
echo " <td class='no-link center'>\n";
|
||||||
echo button::create(['type'=>'submit','class'=>'link','label'=>$text['label-'.$row['sip_profile_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['sip_profile_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 {
|
else {
|
||||||
echo " <td class='center'>\n";
|
echo " <td class='center'>\n";
|
||||||
|
|||||||
Reference in New Issue
Block a user