2 ============LICENSE_START=======================================================
4 ================================================================================
5 Copyright (C) 2017 AT&T Intellectual Property. All rights
7 ================================================================================
8 Licensed under the Apache License, Version 2.0 (the "License");
9 you may not use this file except in compliance with the License.
10 You may obtain a copy of the License at
12 http://www.apache.org/licenses/LICENSE-2.0
14 Unless required by applicable law or agreed to in writing, software
15 distributed under the License is distributed on an "AS IS" BASIS,
16 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17 See the License for the specific language governing permissions and
18 limitations under the License.
19 ============LICENSE_END============================================
20 ===================================================================
31 <div id="configure-widgets">
32 <div class="modal-header">
33 <button type="button" class="close" ng-click="close(false)"
34 aria-hidden="true" style="margin-top: -3px">×</button>
35 <h4>Model Properties</h4>
38 <div class="modal-body" style="height: 280px">
39 <i hidden id="ridinSpinners" class="fa fa-spinner fa-spin"
40 style="display: none; margin-bottom: 10px; width: 100%; text-align: center; font-size: 24px; color: black;"></i>
42 <div class="alert alert-danger" role="alert" id='paramsWarn'>
43 <strong>Ooops!</strong> Unable to load properties for <span
44 id='servName'>. Would you like to</span> <a
45 href="javascript:void(0);" class="btn-link" id='paramsRetry'>Retry
46 </a> / <a href="javascript:void(0);" class="btn-link" id='paramsCancel'>Cancel</a>
50 <div class="form-group clearfix">
51 <label for="actionSet" class="col-sm-4 control-label">
54 <div class="col-sm-8">
55 <select class="form-control" id="actionSet" name="actionSet"
56 onchange="propChangeAlert(this);">
62 <div class="form-group clearfix">
63 <label for="location" class="col-sm-4 control-label">
66 <div class="col-sm-8">
67 <select class="form-control" id="location" name="location"
74 <div class="form-group clearfix">
75 <label for="deployParameters" class="col-sm-4 control-label">
76 Deploy Parameters</label>
78 <div class="col-sm-8">
79 <textarea class="form-control" id="deployParameters"
80 name="deployParameters" rows="3">
90 <div class="alert alert-warning propChangeWarn" style="display: none;">
91 <strong>Warning!</strong> Changing these properties will reset all
92 associated GUI fields.
96 <div class="modal-footer">
97 <button id="savePropsBtn" class="btn btn-primary" ng-click="submitForm()">Save</button>
98 <button ng-click="close(true)" id="close_button"
99 class="btn btn-primary">Cancel</button>
105 //display message only if global was previously saved
108 function propChangeAlert(actionset) {
109 //throw warnings only if options were previously chosen
110 if (elementMap["global"]) {
111 loop1: for (var i = 0; i < elementMap["global"].length; i++) {
112 if (elementMap["global"][i]["name"] == actionset.id) {
113 //user did not change properties
114 if (elementMap["global"][i]["value"][0] == actionset.value) {
115 if (elementMap["global"][i]["name"] == "actionSet") {
119 $(".propChangeWarn").hide();
122 //user changed properties
124 if (elementMap["global"][i]["name"] == "actionSet") {
127 $(".propChangeWarn").show();