summaryrefslogtreecommitdiffstats
path: root/testapi/opnfv_testapi/ui/components/projects/project/testCases/modals/testCaseModal.html
blob: d1c9cb5b7ae124f89380fd47ace165a9122a7620 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
<div class="ball" style="padding:5px;">
    <div class="modal-body">
        <div class="form-horizontal">
            <fieldset>
                <div class="form-group">
                    <legend>{{TestCaseModalCtrl.data.text}}</legend>
                    <div class="row">
                        <div ng-repeat="require in TestCaseModalCtrl.createRequirements" style="margin-left:15px">
                            <div class="update-project">
                                <label for="cpid" class="control-label col-sm-3">{{require.label.replace("_","&nbsp;")|capitalize}}: </label>
                                <div class="col-sm-8">
                                    <a ng-if="require.type == 'select'">
                                            <select class="form-control" dynamic-model="'TestCaseModalCtrl.testcase.' + 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="'TestCaseModalCtrl.testcase.' + require.label"/>
                                    </a>
                                    <a ng-if="require.type == 'textarea'">
                                        <textarea rows="2" class="form-control" cols="50" dynamic-model="'TestCaseModalCtrl.testcase.' + require.label">
                                        </textarea>
                                    </a>
                                    <p class="help-block"></p>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </fieldset>
        </div>
    </div>
    <div class="modal-footer">
        <div ng-show="TestCaseModalCtrl.showCreateError" style="padding:0px;" class="col-md-6 alert alert-danger" role="alert">
                <span class="pull-right">&nbsp;{{TestCaseModalCtrl.error}}</span>
                <span class="glyphicon glyphicon-exclamation-sign pull-right" aria-hidden="true" >Error:</span>
        </div>
        <button class="btn btn-primary" ng-click="TestCaseModalCtrl.confirm()">Ok</button>
        <button class="btn btn-default" ng-click="TestCaseModalCtrl.cancel()">Cancel</button>
    </div>
</div>