summaryrefslogtreecommitdiffstats
path: root/testapi/opnfv_testapi/ui/components/scenarios/modals/customModal.html
diff options
context:
space:
mode:
authorSerena Feng <feng.xiaowei@zte.com.cn>2018-02-12 01:57:11 +0000
committerGerrit Code Review <gerrit@opnfv.org>2018-02-12 01:57:11 +0000
commit6eebbd311a6b2640106cdf05e0952f0c458161f9 (patch)
tree32b8ef75b74490017eaca90af54bbca2130fec1e /testapi/opnfv_testapi/ui/components/scenarios/modals/customModal.html
parent10153a988618ebeebf8a54d16ddf9281baf85d8d (diff)
parent1fe11fb48972ce30b21a4423244642f0ed391b0c (diff)
Merge "Add multiple customs in scenario page"
Diffstat (limited to 'testapi/opnfv_testapi/ui/components/scenarios/modals/customModal.html')
-rw-r--r--testapi/opnfv_testapi/ui/components/scenarios/modals/customModal.html30
1 files changed, 25 insertions, 5 deletions
diff --git a/testapi/opnfv_testapi/ui/components/scenarios/modals/customModal.html b/testapi/opnfv_testapi/ui/components/scenarios/modals/customModal.html
index 987cb1e..90e4544 100644
--- a/testapi/opnfv_testapi/ui/components/scenarios/modals/customModal.html
+++ b/testapi/opnfv_testapi/ui/components/scenarios/modals/customModal.html
@@ -6,11 +6,31 @@
<legend>{{customModalCtrl.data.text}}</legend>
<div class="row">
<div class="update-project">
- <label for="cpid" class="control-label col-sm-4">Custom: </label>
- <div class="col-sm-6">
- <input type="text" class="form-control" ng-model="customModalCtrl.custom"/>
- <p class="help-block"></p>
- </div>
+ <label for="cpid" class="control-label col-sm-4">Custom: </label>
+ <table cellpadding="0" cellspacing="0">
+ <tbody ng-repeat="custom in customModalCtrl.customs">
+ <tr>
+ <td>
+ <div class="col-sm-12">
+ <input type="text" class="form-control" value="{{custom}}" disabled/>
+ <p class="help-block"></p>
+ </div>
+ </td>
+ <td><input type="button" class="btn btn-danger" ng-click="customModalCtrl.remove($index)" value="Remove" /></td>
+ </tr>
+ </tbody>
+ <tfoot>
+ <tr>
+ <td>
+ <div class="col-sm-12">
+ <input type="text" class="form-control" ng-model="customModalCtrl.custom"/>
+ <p class="help-block"></p>
+ </div>
+ </td>
+ <td><input type="button" class="btn btn-primary" ng-click="customModalCtrl.add()" value="Add" /></td>
+ </tr>
+ </tfoot>
+ </table>
</div>
</div>
</div>