Update button labels

Update button labels in Server Config
Atom whitespace removal in hardware.phone
This commit is contained in:
steve-lad 2021-06-08 12:50:48 +02:00
parent 0fa539bd6a
commit 5ad6f5bae0
2 changed files with 10 additions and 9 deletions

View file

@ -34,6 +34,7 @@ trait bmoFunctions {
}
public function getActionBar($request) {
dbug('request',$request);
$buttons = array();
switch ($request['display']) {
case 'sccp_adv':
@ -92,13 +93,13 @@ trait bmoFunctions {
'submit' => array(
'name' => 'ajaxsubmit',
'id' => 'ajaxsubmit',
'value' => _("Submit")
'value' => _("Save")
),
'reset' => array(
'name' => 'reset',
'id' => 'ajaxcancel',
'data-reload' => 'reload',
'value' => _("Reset")
'value' => _("Cancel")
),
);

View file

@ -35,7 +35,7 @@
<thead>
<tr>
<th data-checkbox="true"></th>
<th data-sortable="true" data-field="mac"><?php echo _('Device SEP ID') ?></th>
<th data-sortable="true" data-field="mac"><?php echo _('Device SEP ID') ?></th>
<th data-sortable="true" data-field="description"><?php echo _('Device Descriptions') ?></th>
<th data-sortable="true" data-formatter="DispayTypeFormatter" data-field="type"><?php echo _('Device type') ?></th>
<th data-sortable="true" data-field="button" data-formatter="LineFormatter"><?php echo _('Line') ?></th>
@ -62,7 +62,7 @@
}
}
return exp_model;
}
function DispayDeviceActionsKeyFormatter(value, row, index) {
var exp_model = '';
@ -70,9 +70,9 @@
exp_model += '<a href="?display=sccp_phone&tech_hardware=cisco&new_id=' + row['name'] + '&type='+ row['type'];
if (row['addon'] !== null ) {
exp_model += '&addon='+ row['addon'];
}
}
exp_model += '"><i class="fa fa-pencil"></i></a> &nbsp; &nbsp;\n';
} else {
exp_model += '<a href="?display=sccp_phone&tech_hardware=cisco&id=' + row['name'] + '"><i class="fa fa-pencil"></i></a> &nbsp; &nbsp;\n';
exp_model += '</a> &nbsp;<a class="btn-item-delete" data-for="hardware" data-id="' + row['name'] + '"><i class="fa fa-trash"></i></a>';
@ -84,7 +84,7 @@
if (value === null) {
return '-- EMPTY --';
}
var data = value.split(";");
var data = value.split(";");
result = '';
for (var i = 0; i < data.length; i++) {
var val = data[i].split(',');
@ -94,5 +94,5 @@
}
return result;
}
</script>
</script>