summaryrefslogtreecommitdiffstats
path: root/testapi/opnfv_testapi/ui/components/pods/modals/createModal.html
diff options
context:
space:
mode:
authorthuva4 <tharma.thuva@gmail.com>2017-11-30 14:44:45 +0530
committerthuva4 <tharma.thuva@gmail.com>2017-12-02 09:08:09 +0530
commitae88dfd997ae0516ec097033c378740ea8580483 (patch)
treef04e1356afa0126ab1064b34bff3c11504b89022 /testapi/opnfv_testapi/ui/components/pods/modals/createModal.html
parent3e69f8623c87f0d1d673d702d3516e688daf9a0d (diff)
redesign the pods interface
redesign the pods interface and add the delate operation for the podas in backend. Fix the issue in creating pods: Owner is null Change-Id: I2f8e907f9ab62362a3003d6457662ab85bf2cb12 Signed-off-by: thuva4 <tharma.thuva@gmail.com>
Diffstat (limited to 'testapi/opnfv_testapi/ui/components/pods/modals/createModal.html')
-rw-r--r--testapi/opnfv_testapi/ui/components/pods/modals/createModal.html35
1 files changed, 35 insertions, 0 deletions
diff --git a/testapi/opnfv_testapi/ui/components/pods/modals/createModal.html b/testapi/opnfv_testapi/ui/components/pods/modals/createModal.html
new file mode 100644
index 0000000..9fe3c40
--- /dev/null
+++ b/testapi/opnfv_testapi/ui/components/pods/modals/createModal.html
@@ -0,0 +1,35 @@
+<div class="ball" style="padding:5px;">
+ <div class="modal-body">
+ <div class="form-horizontal">
+ <fieldset>
+ <div class="form-group">
+ <legend>Create Pod</legend>
+ <div class="row">
+ <div ng-repeat="require in PodModalCtrl.createRequirements" style="margin-left:15px">
+ <div class="update-project">
+ <label for="cpid" class="control-label col-sm-2">{{require.label|capitalize}}: </label>
+ <div class="col-sm-9">
+ <a ng-if="require.type == 'select'">
+ <select class="form-control" dynamic-model="'PodModalCtrl.pod.' + require.label" ng-options="option for option in require.selects"></select>
+ </a>
+ <a ng-if="require.type == 'text'">
+ <input type="text" class="form-control" dynamic-model="'PodModalCtrl.pod.' + require.label"/>
+ </a>
+ <a ng-if="require.type == 'textarea'">
+ <textarea rows="2" class="form-control" cols="50" dynamic-model="'PodModalCtrl.pod.' + require.label">
+ </textarea>
+ </a>
+ <p class="help-block"></p>
+ </div>
+ </div>
+ </div>
+ </div>
+ </div>
+ </fieldset>
+ </div>
+ </div>
+ <div class="modal-footer">
+ <button class="btn btn-primary" ng-click="PodModalCtrl.confirm()">Ok</button>
+ <button class="btn btn-default" ng-click="PodModalCtrl.cancel()">Cancel</button>
+ </div>
+</div> \ No newline at end of file