|
|
|
@ -21,20 +21,22 @@
|
|
|
|
|
</script>
|
|
|
|
|
<script type="text/ng-template" id="newDialog.html">
|
|
|
|
|
<div class="sj_new_box">
|
|
|
|
|
<div class=" mb10">
|
|
|
|
|
<ng-form name="volumeForm" class=" mb10" novalidate="novalidate">
|
|
|
|
|
<table class="sj_new_table clear">
|
|
|
|
|
<tbody>
|
|
|
|
|
<tr>
|
|
|
|
|
<th class="new_left sj_c_green">已启用</th>
|
|
|
|
|
<th ng-show="ngDialogData.status" class="new_left sj_c_green">启用</th>
|
|
|
|
|
<th ng-hide="ngDialogData.status" class="new_left sj_c_green">停止</th>
|
|
|
|
|
<th colspan="10">
|
|
|
|
|
<input type="text" class="sj_txt_box03 mr10" ng-model="ngDialogData.name " />
|
|
|
|
|
<input type="text" class="sj_txt_box03 mr10" ng-model="ngDialogData.name " pattern="^\w{4,20}$" ng-disabled="!{{ngDialogData.editable}}"/>
|
|
|
|
|
</th>
|
|
|
|
|
<th>云目录:</th>
|
|
|
|
|
<th>
|
|
|
|
|
<input type="text" class="sj_txt_box02 mr5" ng-model="ngDialogData.path" />
|
|
|
|
|
<input type="text" class="sj_txt_box02 mr5" ng-model="ngDialogData.path" ng-disabled="!{{ngDialogData.editable}}"/>
|
|
|
|
|
</th>
|
|
|
|
|
<th>
|
|
|
|
|
<button class="sj_btn_red fl">停止</button>
|
|
|
|
|
<button ng-show="ngDialogData.status" class="sj_btn_red fl" ng-click="stopVolume(ngDialogData)">停止</button>
|
|
|
|
|
<button ng-hide="ngDialogData.status" class="sj_btn_red fl" ng-click="startVolume(ngDialogData)">启动</button>
|
|
|
|
|
</th>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr ng-repeat = "row in ngDialogData.brick">
|
|
|
|
@ -43,29 +45,29 @@
|
|
|
|
|
<span ng-hide = "row.status" class="sj_icon_warning">
|
|
|
|
|
</th>
|
|
|
|
|
<th colspan="3">
|
|
|
|
|
<input type="text" class="sj_txt_box04 mr5" value="服务器 {{$index + 1}} "/>
|
|
|
|
|
<input type="text" class="sj_txt_box04 mr5" value="服务器 {{$index + 1}} " ng-disabled="true" />
|
|
|
|
|
</th>
|
|
|
|
|
<th>
|
|
|
|
|
<input type="text" class="sj_txt_box05" ng-model="row.ip[0]" />
|
|
|
|
|
<input type="text" class="sj_txt_box05" ng-model="row.ip[0]" ng-disabled="!{{row.editable}}" />
|
|
|
|
|
</th>
|
|
|
|
|
<th>.</th>
|
|
|
|
|
<th>
|
|
|
|
|
<input type="text" class="sj_txt_box05" ng-model="row.ip[1]" />
|
|
|
|
|
<input type="text" class="sj_txt_box05" ng-model="row.ip[1]" ng-disabled="!{{row.editable}}" />
|
|
|
|
|
</th>
|
|
|
|
|
<th>.</th>
|
|
|
|
|
<th>
|
|
|
|
|
<input type="text" class="sj_txt_box05" ng-model="row.ip[2]" />
|
|
|
|
|
<input type="text" class="sj_txt_box05" ng-model="row.ip[2]" ng-disabled="!{{row.editable}}" />
|
|
|
|
|
</th>
|
|
|
|
|
<th>.</th>
|
|
|
|
|
<th>
|
|
|
|
|
<input type="text" class="sj_txt_box05 mr10" ng-model="row.ip[3]"/>
|
|
|
|
|
<input type="text" class="sj_txt_box05 mr10" ng-model="row.ip[3]" ng-disabled="!{{row.editable}}" />
|
|
|
|
|
</th>
|
|
|
|
|
<th>存储块:</th>
|
|
|
|
|
<th>
|
|
|
|
|
<input type="text" class="sj_txt_box02 mr5" ng-model="row.path" />
|
|
|
|
|
<input type="text" class="sj_txt_box02 mr5" ng-model="row.path" ng-disabled="!{{row.editable}}"/>
|
|
|
|
|
</th>
|
|
|
|
|
<th>
|
|
|
|
|
<button class="sj_btn_grey fl">连接</button>
|
|
|
|
|
<!--<button class="sj_btn_grey fl">连接</button>-->
|
|
|
|
|
<a href="#" class="sj_icon_del ml5 fl" ng-click="deleteBrock(ngDialogData, row)"></a>
|
|
|
|
|
<a href="#" ng-hide ="$index < ngDialogData.brick.length-1" class="sj_icon_add ml5 fl" ng-click="addBrock(ngDialogData)"></a>
|
|
|
|
|
</th>
|
|
|
|
@ -73,12 +75,12 @@
|
|
|
|
|
<tr>
|
|
|
|
|
<th> </th>
|
|
|
|
|
<th>
|
|
|
|
|
<button class="sj_btn_blue mr5" ng-click="save()">保存</button>
|
|
|
|
|
<button class="sj_btn_blue mr5" ng-click="save(ngDialogData)" ng-disabled="volumeForm.$invalid">保存</button>
|
|
|
|
|
</th>
|
|
|
|
|
<th>
|
|
|
|
|
<button class="sj_btn_grey mr5" ng-click="cancel()">删除</button>
|
|
|
|
|
<button class="sj_btn_grey mr5" ng-click="cancel()">取消</button>
|
|
|
|
|
</th>
|
|
|
|
|
<th>
|
|
|
|
|
<!--<th>
|
|
|
|
|
<button class="sj_btn_grey mr5" ng-click="cancel()">取消</button>
|
|
|
|
|
</th>
|
|
|
|
|
<!--<th colspan="5"> {{message}}</th>-->
|
|
|
|
@ -86,7 +88,7 @@
|
|
|
|
|
</tbody>
|
|
|
|
|
</table>
|
|
|
|
|
<div class="alert alert-warning" role="alert" ng-show="showMessage">"删除存储块失败:集群中至少包含一个存储块!"</div>
|
|
|
|
|
</div>
|
|
|
|
|
</ng-form>
|
|
|
|
|
</div>
|
|
|
|
|
</script>
|
|
|
|
|
<div ng-controller="Kubernetes.TopLevel">
|
|
|
|
|