Set each input's ng-model for remote monitor type
This commit is contained in:
parent
6d921a2a1a
commit
d5c8de6cb7
|
@ -1,38 +1,37 @@
|
||||||
<div ng-show="sourceType == 'Remote'">
|
<div ng-show="sourceType == 'Remote'">
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label for=""><?= $SLANG['RemoteProtocol'] ?></label>
|
<label for="newMonitor[Protocol]"><?= $SLANG['RemoteProtocol'] ?></label>
|
||||||
<select name="newMonitor[Protocol]" id="newMonitor[Protocol]" onchange="updateMethods( this )">
|
<select ng-model="Protocol" id="newMonitor[Protocol]" onchange="updateMethods( this )">
|
||||||
<option value="http">HTTP</option>
|
<option value="http">HTTP</option>
|
||||||
<option value="rtsp">RTSP</option>
|
<option value="rtsp">RTSP</option>
|
||||||
</select>
|
</select>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label for=""><?= $SLANG['RemoteMethod'] ?></label>
|
<label for="newMonitor[Method]"><?= $SLANG['RemoteMethod'] ?></label>
|
||||||
<?php
|
<?php if ( empty($newMonitor['Protocol']) || $newMonitor['Protocol'] == "http" ) { ?>
|
||||||
if ( empty($newMonitor['Protocol']) || $newMonitor['Protocol'] == "http" )
|
<select ng-model="Method" id="newMonitor[Method]">
|
||||||
{
|
<option value="simple">Simple</option>
|
||||||
?>
|
<option value="regexp">Regexp</option>
|
||||||
<?= buildSelect( "newMonitor[Method]", $httpMethods ); ?>
|
</select>
|
||||||
<?php
|
<?php } else { ?>
|
||||||
}
|
<select ng-model="Method" id="newMonitor[Method]">
|
||||||
else
|
<option value="rtpUni">RTP/Unicast</option>
|
||||||
{
|
<option value="rtpMulti">RTP/Multicast</option>
|
||||||
?>
|
<option value="rtpRtsp">RTP/RTSP</option>
|
||||||
<?= buildSelect( "newMonitor[Method]", $rtspMethods ); ?>
|
<option value="rtpRtspHttp">RTP/RTSP/HTTP</option>
|
||||||
<?php
|
</select>
|
||||||
}
|
<?php } ?>
|
||||||
?>
|
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label><?= $SLANG['RemoteHostName'] ?></label>
|
<label><?= $SLANG['RemoteHostName'] ?></label>
|
||||||
<input type="text" class="form-control" name="newMonitor[Host]" value="<?= validHtmlStr($newMonitor['Host']) ?>" size="36"/>
|
<input type="text" class="form-control" ng-model="Host" placeholder="HostName or ip.add.re.ss" />
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label for=""><?= $SLANG['RemoteHostPort'] ?></label>
|
<label for=""><?= $SLANG['RemoteHostPort'] ?></label>
|
||||||
<input type="number" class="form-control" name="newMonitor[Port]" value="<?= validHtmlStr($newMonitor['Port']) ?>" size="6"/>
|
<input type="number" class="form-control" ng-model="Port" placeholder="Usually 80 for http, 554 for rtsp" />
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label><?= $SLANG['RemoteHostPath'] ?></label>
|
<label><?= $SLANG['RemoteHostPath'] ?></label>
|
||||||
<input type="text" class="form-control" name="newMonitor[Path]" value="<?= validHtmlStr($newMonitor['Path']) ?>" size="36"/>
|
<input type="text" class="form-control" ng-model="Path" placeholder="/path/to/stream.mpg" />
|
||||||
</div>
|
</div>
|
||||||
</div> <!-- End Remote -->
|
</div> <!-- End Remote -->
|
||||||
|
|
Loading…
Reference in New Issue