|
|
|
@ -28,23 +28,24 @@
|
|
|
|
|
</script>
|
|
|
|
|
<script type="text/ng-template" id="newDialog.html">
|
|
|
|
|
<div class="sj_new_box">
|
|
|
|
|
<form name="volumeForm" class=" mb10" ng-submit="onSubmit(ngDialogData)" novalidate="novalidate">
|
|
|
|
|
<form name="volumeForm" class=" mb10" novalidate="novalidate">
|
|
|
|
|
<table class="sj_new_table clear">
|
|
|
|
|
<tbody>
|
|
|
|
|
<tr>
|
|
|
|
|
<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 class="new_left">云盘名</th>
|
|
|
|
|
<th colspan="10">
|
|
|
|
|
<input type="text" class="sj_txt_box03 mr10" name="volumeName" ng-model="ngDialogData.name " ng-disabled="!{{ngDialogData.editable}}" ng-pattern="/^\w{2,15}$/" required="required"/>
|
|
|
|
|
</th>
|
|
|
|
|
<th>云目录:</th>
|
|
|
|
|
<th>
|
|
|
|
|
<input type="text" class="sj_txt_box02 mr5" name="volumePath" ng-model="ngDialogData.path" ng-disabled="!{{ngDialogData.editable}}" ng-pattern="/^(\/[a-z0-9A-Z _\-.%]+)+$/" required="required"/>
|
|
|
|
|
<input type="text" class="sj_txt_box02 mr5" name="volumePath" ng-model="ngDialogData.path" ng-disabled="!{{ngDialogData.editable}}" ng-pattern="/^(\/[a-z0-9A-Z _\-.%]+)+$/"/>
|
|
|
|
|
</th>
|
|
|
|
|
<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>
|
|
|
|
|
<button ng-show="ngDialogData.status" class="sj_btn_red fl" ng-click="stopVolume(ngDialogData)">停止</button>
|
|
|
|
|
<button ng-hide="ngDialogData.status" class="sj_btn_blue fl" ng-click="startVolume(ngDialogData)">启动</button>
|
|
|
|
|
</th>
|
|
|
|
|
</th> -->
|
|
|
|
|
</tr>
|
|
|
|
|
<tr ng-repeat="row in ngDialogData.brick">
|
|
|
|
|
<th class="new_left">
|
|
|
|
@ -75,14 +76,14 @@
|
|
|
|
|
</th>
|
|
|
|
|
<th>
|
|
|
|
|
<!--<button class="sj_btn_grey fl">连接</button>-->
|
|
|
|
|
<a href="#" class="sj_icon_del ml5 fl" ng-click="deleteBrock(ngDialogData, row)"></a>
|
|
|
|
|
<a href="#" class="sj_icon_del ml5 fl" ng-show="ngDialogData.brick.length>1" 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>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
|
|
|
|
<th> </th>
|
|
|
|
|
<th>
|
|
|
|
|
<button class="sj_btn_blue mr5" type="submit" >保存</button>
|
|
|
|
|
<button class="sj_btn_blue mr5" ng-click="onSubmit(ngDialogData)" >保存</button>
|
|
|
|
|
</th>
|
|
|
|
|
<th>
|
|
|
|
|
<button class="sj_btn_grey mr5" ng-click="cancel()">取消</button>
|
|
|
|
|