«
Předchozí
|
Další
»
Revize 6f7e4d6a
Přidáno uživatelem Michal Kliment před více než 3 roky(ů)
- ID 6f7e4d6aa44ab18ea756efc7bae2163ddde4ecb2
- Rodič e0da3ee3
application/views/js/device_templates_add.php | ||
---|---|---|
}).html(wiface_mode_options).css('margin', '4px 15px')
|
||
)
|
||
).append(
|
||
$('<td>').html($('<label>').text('<?php echo __('Antenna') ?>:')).append(
|
||
$('<td>').html(
|
||
$('<label>').text('<?php echo __('Antenna') ?>:').css('font-weight', 'bold')
|
||
)
|
||
).append(
|
||
$('<td>').html($('<label>').text('<?php echo __('Type') ?>:')).append(
|
||
$('<select>').attr({
|
||
'name' : 'values[<?php echo Iface_Model::TYPE_WIRELESS ?>][items][' + i + '][wireless_antenna]',
|
||
'class' : 'dropdown',
|
||
'type' : 'dropdown'
|
||
}).html(wiface_antenna_options).css('margin', '4px 15px')
|
||
)
|
||
).append(
|
||
$('<td>').html($('<label>').text('<?php echo __('Gain') ?>:')).append(
|
||
$('<input>').attr({
|
||
'name' : 'values[<?php echo Iface_Model::TYPE_WIRELESS ?>][items][' + i + '][wireless_antenna_gain]',
|
||
'class' : 'number',
|
||
'type' : 'number'
|
||
}).html(wiface_antenna_options).css('margin', '4px 15px')
|
||
)
|
||
).append(
|
||
$('<td>').html($('<label>').text('<?php echo __('Azimuth') ?>:')).append(
|
||
$('<input>').attr({
|
||
'name' : 'values[<?php echo Iface_Model::TYPE_WIRELESS ?>][items][' + i + '][wireless_antenna_azimuth]',
|
||
'class' : 'number',
|
||
'type' : 'number'
|
||
}).html(wiface_antenna_options).css('margin', '4px 15px')
|
||
)
|
||
));
|
||
}
|
||
}
|
||
... | ... | |
<?php $i = 0; foreach ($device_template_value[Iface_Model::TYPE_WIRELESS]['items'] as $item): ?>
|
||
$('input[name="values[<?php echo Iface_Model::TYPE_WIRELESS ?>][items][<?php echo $i ?>][name]"]').val('<?php echo $item['name'] ?>');
|
||
$('select[name="values[<?php echo Iface_Model::TYPE_WIRELESS ?>][items][<?php echo $i ?>][wireless_mode]"]').val('<?php echo $item['wireless_mode'] ?>');
|
||
$('select[name="values[<?php echo Iface_Model::TYPE_WIRELESS ?>][items][<?php echo $i++ ?>][wireless_antenna]"]').val('<?php echo $item['wireless_antenna'] ?>');
|
||
$('select[name="values[<?php echo Iface_Model::TYPE_WIRELESS ?>][items][<?php echo $i ?>][wireless_antenna]"]').val('<?php echo $item['wireless_antenna'] ?>');
|
||
$('input[name="values[<?php echo Iface_Model::TYPE_WIRELESS ?>][items][<?php echo $i ?>][wireless_antenna_gain]"]').val('<?php echo @$item['wireless_antenna_gain'] ?>');
|
||
$('input[name="values[<?php echo Iface_Model::TYPE_WIRELESS ?>][items][<?php echo $i++ ?>][wireless_antenna_azimuth]"]').val('<?php echo @$item['wireless_antenna_azimuth'] ?>');
|
||
<?php endforeach; ?>
|
||
// set values of port items
|
||
<?php $i = 0; foreach ($device_template_value[Iface_Model::TYPE_PORT]['items'] as $item): ?>
|
Také k dispozici: Unified diff
Add gain and azimuth to wireless ifaces (fixes #1166)