Restore version to SNAPSHOT
[clamp.git] / src / main / resources / META-INF / resources / designer / partials / portfolios / Collector_properties.html
1 <!--
2   ============LICENSE_START=======================================================
3   ONAP CLAMP
4   ================================================================================
5   Copyright (C) 2017 AT&T Intellectual Property. All rights
6                               reserved.
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
11   
12   http://www.apache.org/licenses/LICENSE-2.0
13   
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   ===================================================================
21   ECOMP is a trademark and service mark of AT&T Intellectual Property.
22   -->
23
24 <style>
25     .fileUpload {
26         position: relative;
27         overflow: hidden;
28         margin: 10px;
29     }
30     .fileUpload input.upload {
31         position: absolute;
32         top: 0;
33         right: 0;
34         margin: 0;
35         padding: 0;
36         font-size: 20px;
37         cursor: pointer;
38         opacity: 0;
39         filter: alpha(opacity=0);
40         float:left;
41     }
42     .fileDisplay {
43
44         display: inline-block;
45         overflow: hidden;
46         float: right;
47         margin-left: 0px;
48         z-index: initial;
49         text-align: center;
50         margin-top: 17px;
51     }
52
53
54 </style>
55
56
57 <div attribute-test="collectorproperties" id="configure-widgets"  >
58     <div attribute-test="cldsopentemplateh" class="modal-header">
59         <button type="button" class="close" ng-click="close(false)" aria-hidden="true" style="margin-top: -3px">&times;</button>
60         <h4>Collector</h4>
61     </div>
62     <div attribute-test="cldsopentemplateb" class="modal-body" style="height: 280px">
63         <div style="height: 10px">
64         </div>
65         <form id="saveProps" class="form-horizontal">
66
67             <div>
68                 <div class="form-group">
69                     <label for="schemaLocation" class="col-sm-4 control-label">Topic Publishes</label>
70
71                     <div class="col-sm-8">
72                         <select class="form-control" focus="true" name="topicPublishes"  id="topicPublishes">
73                             <!--  <option value="volvo">volvo</option>
74                             <option value="saab">saab</option>
75                             <option value="opel">opel</option> -->
76                         </select>
77                     </div>
78                 </div>
79                 
80                 
81             </div>
82
83         </form>
84
85     </div>
86     <div class="modal-footer">
87         <!--<button ng-click="reset()" class="btn btn-primary" style="float:left">Reset</button>-->
88         <button  id="savePropsBtn" class="btn btn-primary">Close</button>
89         <button ng-click="close(true)" id="close_button" class="btn btn-primary">Cancel</button>
90
91     </div>
92     <script>
93     loadPropertyWindow("collector");
94     var el=elementMap[lastElementSelected];
95     if(el!==undefined){
96         for(var i=0;i<el.length;i++){
97             
98             $("#"+el[i].name).val(el[i].value);
99         }
100
101
102     }
103     $("#saveProps").on('submit', function (event) {
104         console.log("clicksaveprop");
105         //alert("lol");
106         //console.log($(this).serializeArray()[0].name);
107         saveProperties($(this).serializeArray())
108         event.preventDefault();
109
110         $("#close_button").click();
111
112     })
113     $("#savePropsBtn").click(function (event) {
114         console.log("savepropbtn");
115         //alert($("#CProp_Target").val())
116         //alert(las)
117         $("#saveProps").submit();
118     })
119 </script>
120 </div>
121
122