Update button labels
Update button labels in Server Config Atom whitespace removal in hardware.phone
This commit is contained in:
parent
0fa539bd6a
commit
5ad6f5bae0
|
@ -34,6 +34,7 @@ trait bmoFunctions {
|
||||||
}
|
}
|
||||||
|
|
||||||
public function getActionBar($request) {
|
public function getActionBar($request) {
|
||||||
|
dbug('request',$request);
|
||||||
$buttons = array();
|
$buttons = array();
|
||||||
switch ($request['display']) {
|
switch ($request['display']) {
|
||||||
case 'sccp_adv':
|
case 'sccp_adv':
|
||||||
|
@ -92,13 +93,13 @@ trait bmoFunctions {
|
||||||
'submit' => array(
|
'submit' => array(
|
||||||
'name' => 'ajaxsubmit',
|
'name' => 'ajaxsubmit',
|
||||||
'id' => 'ajaxsubmit',
|
'id' => 'ajaxsubmit',
|
||||||
'value' => _("Submit")
|
'value' => _("Save")
|
||||||
),
|
),
|
||||||
'reset' => array(
|
'reset' => array(
|
||||||
'name' => 'reset',
|
'name' => 'reset',
|
||||||
'id' => 'ajaxcancel',
|
'id' => 'ajaxcancel',
|
||||||
'data-reload' => 'reload',
|
'data-reload' => 'reload',
|
||||||
'value' => _("Reset")
|
'value' => _("Cancel")
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
|
@ -35,7 +35,7 @@
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th data-checkbox="true"></th>
|
<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-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-formatter="DispayTypeFormatter" data-field="type"><?php echo _('Device type') ?></th>
|
||||||
<th data-sortable="true" data-field="button" data-formatter="LineFormatter"><?php echo _('Line') ?></th>
|
<th data-sortable="true" data-field="button" data-formatter="LineFormatter"><?php echo _('Line') ?></th>
|
||||||
|
@ -62,7 +62,7 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return exp_model;
|
return exp_model;
|
||||||
|
|
||||||
}
|
}
|
||||||
function DispayDeviceActionsKeyFormatter(value, row, index) {
|
function DispayDeviceActionsKeyFormatter(value, row, index) {
|
||||||
var exp_model = '';
|
var exp_model = '';
|
||||||
|
@ -70,9 +70,9 @@
|
||||||
exp_model += '<a href="?display=sccp_phone&tech_hardware=cisco&new_id=' + row['name'] + '&type='+ row['type'];
|
exp_model += '<a href="?display=sccp_phone&tech_hardware=cisco&new_id=' + row['name'] + '&type='+ row['type'];
|
||||||
if (row['addon'] !== null ) {
|
if (row['addon'] !== null ) {
|
||||||
exp_model += '&addon='+ row['addon'];
|
exp_model += '&addon='+ row['addon'];
|
||||||
}
|
}
|
||||||
exp_model += '"><i class="fa fa-pencil"></i></a> \n';
|
exp_model += '"><i class="fa fa-pencil"></i></a> \n';
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
exp_model += '<a href="?display=sccp_phone&tech_hardware=cisco&id=' + row['name'] + '"><i class="fa fa-pencil"></i></a> \n';
|
exp_model += '<a href="?display=sccp_phone&tech_hardware=cisco&id=' + row['name'] + '"><i class="fa fa-pencil"></i></a> \n';
|
||||||
exp_model += '</a> <a class="btn-item-delete" data-for="hardware" data-id="' + row['name'] + '"><i class="fa fa-trash"></i></a>';
|
exp_model += '</a> <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) {
|
if (value === null) {
|
||||||
return '-- EMPTY --';
|
return '-- EMPTY --';
|
||||||
}
|
}
|
||||||
var data = value.split(";");
|
var data = value.split(";");
|
||||||
result = '';
|
result = '';
|
||||||
for (var i = 0; i < data.length; i++) {
|
for (var i = 0; i < data.length; i++) {
|
||||||
var val = data[i].split(',');
|
var val = data[i].split(',');
|
||||||
|
@ -94,5 +94,5 @@
|
||||||
}
|
}
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
|
|
Loading…
Reference in a new issue