unpopup the controlcaps views
This commit is contained in:
parent
eedf18073f
commit
582d85f083
|
@ -65,7 +65,7 @@ xhtmlHeaders(__FILE__, translate('ControlCaps'));
|
||||||
foreach( $controls as $control ) {
|
foreach( $controls as $control ) {
|
||||||
?>
|
?>
|
||||||
<tr>
|
<tr>
|
||||||
<td class="colName"><?php echo makePopupLink( '?view=controlcap&cid='.$control['Id'], 'zmControlCap', 'controlcap', validHtmlStr($control['Name']), canView( 'Control' ) ) ?></td>
|
<td class="colName"><?php echo makeLink( '?view=controlcap&cid='.$control['Id'], validHtmlStr($control['Name']), canView( 'Control' ) ) ?></td>
|
||||||
<td class="colType"><?php echo $control['Type'] ?></td>
|
<td class="colType"><?php echo $control['Type'] ?></td>
|
||||||
<td class="colProtocol"><?php echo validHtmlStr($control['Protocol']) ?></td>
|
<td class="colProtocol"><?php echo validHtmlStr($control['Protocol']) ?></td>
|
||||||
<td class="colCanMove"><?php echo $control['CanMove']?translate('Yes'):translate('No') ?></td>
|
<td class="colCanMove"><?php echo $control['CanMove']?translate('Yes'):translate('No') ?></td>
|
||||||
|
@ -82,7 +82,7 @@ foreach( $controls as $control ) {
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
<div id="contentButtons">
|
<div id="contentButtons">
|
||||||
<?php echo makePopupButton('?view=controlcap', 'zmControlCap', 'controlcap', translate('AddNewControl'), canEdit( 'Control' )); ?>
|
<?php echo makeButton('?view=controlcap', 'AddNewControl', canEdit( 'Control' )); ?>
|
||||||
<input type="submit" name="deleteBtn" value="<?php echo translate('Delete') ?>" disabled="disabled"/>
|
<input type="submit" name="deleteBtn" value="<?php echo translate('Delete') ?>" disabled="disabled"/>
|
||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
|
|
|
@ -1,3 +1,9 @@
|
||||||
|
// Manage the Add New Control button
|
||||||
|
function AddNewControl(el) {
|
||||||
|
url = el.getAttribute('data-url');
|
||||||
|
window.location.assign(url);
|
||||||
|
}
|
||||||
|
|
||||||
function initPage() {
|
function initPage() {
|
||||||
// Manage the BACK button
|
// Manage the BACK button
|
||||||
document.getElementById("backBtn").addEventListener("click", function onBackClick(evt) {
|
document.getElementById("backBtn").addEventListener("click", function onBackClick(evt) {
|
||||||
|
|
|
@ -1011,7 +1011,7 @@ include('_monitor_source_nvsocket.php');
|
||||||
|
|
||||||
echo htmlSelect('newMonitor[ControlId]', $controlTypes, $monitor->ControlId());
|
echo htmlSelect('newMonitor[ControlId]', $controlTypes, $monitor->ControlId());
|
||||||
if ( canEdit('Control') ) {
|
if ( canEdit('Control') ) {
|
||||||
echo ' '.makePopupLink('?view=controlcaps', 'zmControlCaps', 'controlcaps', translate('Edit'));
|
echo ' '.makeLink('?view=controlcaps', 'zmControlCaps', 'controlcaps', translate('Edit'));
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
</td>
|
</td>
|
||||||
|
|
Loading…
Reference in New Issue