summaryrefslogtreecommitdiffstats
path: root/testapi/opnfv_testapi/ui/components/scenarios/modals
diff options
context:
space:
mode:
authorthuva4 <tharma.thuva@gmail.com>2018-03-09 22:42:05 +0530
committerthuva4 <tharma.thuva@gmail.com>2018-03-09 22:42:05 +0530
commit0326a542bfae2126e8fa087c266bee5253f05991 (patch)
tree13de448d3f59100d75e2acb26766c0e8f447ec8f /testapi/opnfv_testapi/ui/components/scenarios/modals
parentf3a5531761a38cf40d0469209145394b31af2088 (diff)
Add multple customs to scenario
User can add multiple customs by giving a comma or space sperated string JIRA: RELENG-344 Change-Id: I8e4b37fc476f39e10321755f1e67fe3605178406 Signed-off-by: thuva4 <tharma.thuva@gmail.com>
Diffstat (limited to 'testapi/opnfv_testapi/ui/components/scenarios/modals')
-rw-r--r--testapi/opnfv_testapi/ui/components/scenarios/modals/customModal.html16
-rw-r--r--testapi/opnfv_testapi/ui/components/scenarios/modals/projectModal.html2
2 files changed, 3 insertions, 15 deletions
diff --git a/testapi/opnfv_testapi/ui/components/scenarios/modals/customModal.html b/testapi/opnfv_testapi/ui/components/scenarios/modals/customModal.html
index 90e4544..0cd2663 100644
--- a/testapi/opnfv_testapi/ui/components/scenarios/modals/customModal.html
+++ b/testapi/opnfv_testapi/ui/components/scenarios/modals/customModal.html
@@ -8,18 +8,7 @@
<div class="update-project">
<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>
+ <tbody>
<tr>
<td>
<div class="col-sm-12">
@@ -27,9 +16,8 @@
<p class="help-block"></p>
</div>
</td>
- <td><input type="button" class="btn btn-primary" ng-click="customModalCtrl.add()" value="Add" /></td>
</tr>
- </tfoot>
+ </tbody>
</table>
</div>
</div>
diff --git a/testapi/opnfv_testapi/ui/components/scenarios/modals/projectModal.html b/testapi/opnfv_testapi/ui/components/scenarios/modals/projectModal.html
index 0a14be9..171cc33 100644
--- a/testapi/opnfv_testapi/ui/components/scenarios/modals/projectModal.html
+++ b/testapi/opnfv_testapi/ui/components/scenarios/modals/projectModal.html
@@ -38,7 +38,7 @@
</tr>
</thead>
<tbody>
- <tr ng-repeat-start="(index, custom) in projectModalCtrl.project.customs" style="padding:9px">
+ <tr ng-repeat-start="custom in projectModalCtrl.project.customs" style="padding:9px">
<td>{{custom}}</td>
</tr>
<tr ng-repeat-end=>