Move Recording to General tab. Improve help links

This commit is contained in:
Isaac Connor 2022-01-11 10:46:08 -05:00
parent 4c16557192
commit 2a83e26fb2
1 changed files with 18 additions and 18 deletions

View File

@ -542,7 +542,7 @@ if (count($available_monitor_ids)) {
if ($monitor->Type() != 'WebSite') { if ($monitor->Type() != 'WebSite') {
?> ?>
<tr class="Capturing"> <tr class="Capturing">
<td class="text-right pr-3"><?php echo translate('Capturing') ?></td> <td class="text-right pr-3"><?php echo translate('Capturing'); echo makeHelpLink('OPTIONS_CAPTURING'); ?></td>
<td> <td>
<?php <?php
echo htmlSelect('newMonitor[Capturing]', ZM\getMonitorCapturingOptions(), $monitor->Capturing()); echo htmlSelect('newMonitor[Capturing]', ZM\getMonitorCapturingOptions(), $monitor->Capturing());
@ -568,6 +568,23 @@ if (count($available_monitor_ids)) {
?> ?>
</td> </td>
</tr> </tr>
<tr>
<td class="text-right pr-3"><?php echo translate('Recording') ?></td>
<td>
<?php
echo htmlSelect('newMonitor[Recording]', ZM\getMonitorRecordingOptions(), $monitor->Recording(), array('on-change-this'=>'Recording_onChange'));
?>
<div id="Recording_help">
<?php
foreach (ZM\getMonitorRecordingOptions() as $fn => $translated) {
if (isset($OLANG['RECORDING_'.strtoupper($fn)])) {
echo '<div class="form-text" id="'.$fn.'Help">'.$OLANG['RECORDING_'.strtoupper($fn)]['Help'].'</div>';
}
}
?>
</div>
</td>
</tr>
<tr class="LinkedMonitors"> <tr class="LinkedMonitors">
<td class="text-right pr-3"><?php echo translate('LinkedMonitors'); echo makeHelpLink('OPTIONS_LINKED_MONITORS') ?></td> <td class="text-right pr-3"><?php echo translate('LinkedMonitors'); echo makeHelpLink('OPTIONS_LINKED_MONITORS') ?></td>
<td> <td>
@ -973,23 +990,6 @@ include('_monitor_source_nvsocket.php');
} }
case 'storage' : case 'storage' :
?> ?>
<tr>
<td class="text-right pr-3"><?php echo translate('Recording') ?></td>
<td>
<?php
echo htmlSelect('newMonitor[Recording]', ZM\getMonitorRecordingOptions(), $monitor->Recording(), array('on-change-this'=>'Recording_onChange'));
?>
<div id="Recording_help">
<?php
foreach (ZM\getMonitorRecordingOptions() as $fn => $translated) {
if (isset($OLANG['RECORDING_'.strtoupper($fn)])) {
echo '<div class="form-text" id="'.$fn.'Help">'.$OLANG['RECORDING_'.strtoupper($fn)]['Help'].'</div>';
}
}
?>
</div>
</td>
</tr>
<tr id="RecordingSource"<?php echo $monitor->SecondPath() ? '' : ' style="display:none;"' ?>> <tr id="RecordingSource"<?php echo $monitor->SecondPath() ? '' : ' style="display:none;"' ?>>
<td class="text-right pr-3"><?php echo translate('RecordingSource') ?></td> <td class="text-right pr-3"><?php echo translate('RecordingSource') ?></td>
<td> <td>