diff options
author | 2017-10-22 16:03:20 +0800 | |
---|---|---|
committer | 2017-10-22 16:03:26 +0800 | |
commit | 24ce28e83cb4faf805a88f0cb4c98a73ed633a57 (patch) | |
tree | bed65621e35b369dc050a74b902fc44008e45d6d /usecaseui-lcm/src/main/webapp/app/uui/fusion/scripts/view-models/create-service-dialog.html | |
parent | ac675fe158efff6093625101157acfa89d8a7942 (diff) |
Fix create dialog para issue.
Change-Id: I2ec050b14e3b17f73e1b44e18db3d62690dcb75d
Issue-id: USECASEUI-53
Signed-off-by: Luji7 <lu.ji3@zte.com.cn>
Diffstat (limited to 'usecaseui-lcm/src/main/webapp/app/uui/fusion/scripts/view-models/create-service-dialog.html')
-rw-r--r-- | usecaseui-lcm/src/main/webapp/app/uui/fusion/scripts/view-models/create-service-dialog.html | 40 |
1 files changed, 25 insertions, 15 deletions
diff --git a/usecaseui-lcm/src/main/webapp/app/uui/fusion/scripts/view-models/create-service-dialog.html b/usecaseui-lcm/src/main/webapp/app/uui/fusion/scripts/view-models/create-service-dialog.html index 760a067f..295bcfd0 100644 --- a/usecaseui-lcm/src/main/webapp/app/uui/fusion/scripts/view-models/create-service-dialog.html +++ b/usecaseui-lcm/src/main/webapp/app/uui/fusion/scripts/view-models/create-service-dialog.html @@ -60,43 +60,53 @@ </uib-tab> <uib-tab heading="Template Parameters"> <div id='templateParasTab' style="margin-top:20px;"> - <div ng-if="ctrl.service !== undefined" class="form-group" style="margin-left:0px;margin-bottom:5px;"> - <label class="col-sm-5 control-label"> - <span>{{ctrl.service.location.name}}</span><span class="required">*</span> - </label> - <div class="col-sm-5"> - <select class="form-control" style ="padding-top: 0px;padding-bottom: 0px;" ng-model="ctrl.service.location.value" ng-options="option.value for option in ctrl.locations"> - <option value="">--select--</option> - </select> - </div> - </div> <div ng-repeat="parameter in ctrl.service.parameters" class="mT15 form-group" style="margin-left:0px;"> <label class="col-sm-5 control-label"> <span>{{parameter.name}}</span><span ng-if="parameter.isRequired" class="required">*</span> </label> - <div class="col-sm-5"> + <div ng-if="parameter.type === 'string' || parameter.type === 'boolean' || parameter.type === 'integer'" class="col-sm-5"> <input type="text" name="{{parameter.description}}" class="form-control" ng-model="parameter.value" placeholder="{{parameter.name}}" value="{{parameter.defaultValue}}" ng-readonly="{{parameter.readonly}}"/> </div> + <div ng-if="parameter.type === 'vf_location'" class="col-sm-5"> + <select class="form-control" style ="padding-top: 0px;padding-bottom: 0px;" ng-model="parameter.value" ng-options="option.value for option in ctrl.locations"> + <option value="">--select--</option> + </select> + </div> + <div ng-if="parameter.type === 'sdn_controller'" class="col-sm-5"> + <select class="form-control" style ="padding-top: 0px;padding-bottom: 0px;" ng-model="parameter.value" ng-options="option.value for option in ctrl.sdnControllers"> + <option value="">--select--</option> + </select> + </div> </div> <fieldset ng-repeat="segment in ctrl.service.segments" style="margin-left:25px;"> <legend>{{segment.nodeTemplateName}}</legend> - <div class="form-group" style="margin-left:0px;margin-bottom:5px;"> + <!-- <div class="form-group" style="margin-left:0px;margin-bottom:5px;"> <label class="col-sm-5 control-label"> <span>{{segment.location.name}}</span><span class="required">*</span> </label> <div class="col-sm-5"> <select class="form-control" style ="padding-top: 0px;padding-bottom: 0px;" ng-model="segment.location.value" ng-options="option.value for option in ctrl.locations"> - <option value="">--select--</option> + <option value="">select</option> </select> </div> - </div> + </div> --> <div ng-repeat="segment_parameter in segment.parameters" class="mT15 form-group" style="margin-left:0px;"> <label class="col-sm-5 control-label"> <span>{{segment_parameter.name}}</span><span ng-if="segment_parameter.isRequired" class="required">*</span> </label> - <div class="col-sm-5"> + <div ng-if="segment_parameter.type === 'string' || segment_parameter.type === 'boolean' || segment_parameter.type === 'integer'" class="col-sm-5"> <input type="text" name="{{segment_parameter.description}}" class="form-control" ng-model="segment_parameter.value" placeholder="{{segment_parameter.name}}" value="{{segment_parameter.defaultValue}}" ng-readonly="{{segment_parameter.readonly}}"/> </div> + <div ng-if="segment_parameter.type === 'vf_location'" class="col-sm-5"> + <select class="form-control" style ="padding-top: 0px;padding-bottom: 0px;" ng-model="segment_parameter.value" ng-options="option.value for option in ctrl.locations"> + <option value="">--select--</option> + </select> + </div> + <div ng-if="segment_parameter.type === 'sdn_controller'" class="col-sm-5"> + <select class="form-control" style ="padding-top: 0px;padding-bottom: 0px;" ng-model="segment_parameter.value" ng-options="option.value for option in ctrl.sdnControllers"> + <option value="">--select--</option> + </select> + </div> </div> </fieldset> </div> |