2015-01-18 01:25:33 +08:00
|
|
|
<div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true" ng-controller="StateController">
|
2014-11-16 00:47:42 +08:00
|
|
|
<div class="modal-dialog">
|
2015-01-18 01:25:33 +08:00
|
|
|
<div class="modal-content">
|
2014-11-16 00:47:42 +08:00
|
|
|
<div class="modal-header">
|
|
|
|
<button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">×</span><span class="sr-only">Close</span></button>
|
|
|
|
<p class="modal-title">State</p>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
2015-01-18 01:25:33 +08:00
|
|
|
<form name="contentForm" ng-submit="changestate('fubar')" novalidate>
|
|
|
|
<div class="modal-body">
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-md-6">
|
|
|
|
<div class="form-group">
|
|
|
|
<label for="runState">Change State</label>
|
|
|
|
<select class="form-control" name="runState" id="runState">
|
|
|
|
<option ng-if="isRunning" value="stop" selected="selected">Stop</option>
|
|
|
|
<option ng-if="isRunning" value="restart">Restart</option>
|
|
|
|
<option ng-if="!isRunning" value="start" selected="selected">Start</option>
|
|
|
|
<option ng-repeat="state in states" ng-value="state.State.Name">{{state.State.Name}}</option>
|
|
|
|
</select>
|
|
|
|
</div> <!-- end .form-group -->
|
|
|
|
</div> <!-- end .col-md-6 -->
|
2014-11-16 00:47:42 +08:00
|
|
|
|
2015-01-18 01:25:33 +08:00
|
|
|
<div class="col-md-6">
|
|
|
|
<div class="form-group">
|
|
|
|
<label for="newState"> <?= $SLANG['NewState'] ?></label>
|
|
|
|
<input class="form-control" type="text" id="newState" name="newState" value="" size="16" />
|
|
|
|
</div> <!-- end .form-group -->
|
|
|
|
</div> <!-- end .col-md-6 -->
|
|
|
|
</div> <!-- end .row -->
|
|
|
|
</div> <!-- End .modal-body -->
|
2014-11-16 00:47:42 +08:00
|
|
|
|
2015-01-18 01:25:33 +08:00
|
|
|
<div class="modal-footer">
|
|
|
|
<button ng-if="!isRunning" type="button" class="btn btn-success" ng-click="changeState('start')">Start</button>
|
|
|
|
<button ng-if="isRunning" type="button" class="btn btn-success" ng-click="changeState('restart')">Restart</button>
|
|
|
|
<button ng-if="isRunning" type="button" class="btn btn-danger" ng-click="changeState('stop')">Stop</button>
|
|
|
|
</div> <!-- End .modal-footer -->
|
2014-11-16 00:47:42 +08:00
|
|
|
|
2015-01-18 01:25:33 +08:00
|
|
|
</form>
|
|
|
|
</div> <!-- End .modal-content -->
|
|
|
|
</div> <!-- End .modal-dialog -->
|
|
|
|
</div> <!-- End .modal -->
|