aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/resources/META-INF/resources/designer/partials/portfolios/Collector_properties.html
blob: 7537f72aac7f4f05529dc58c70892bf1686b1c38 (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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
<!--
  ============LICENSE_START=======================================================
  ONAP CLAMP
  ================================================================================
  Copyright (C) 2017 AT&T Intellectual Property. All rights
                              reserved.
  ================================================================================
  Licensed under the Apache License, Version 2.0 (the "License"); 
  you may not use this file except in compliance with the License. 
  You may obtain a copy of the License at
  
  http://www.apache.org/licenses/LICENSE-2.0
  
  Unless required by applicable law or agreed to in writing, software 
  distributed under the License is distributed on an "AS IS" BASIS, 
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 
  See the License for the specific language governing permissions and 
  limitations under the License.
  ============LICENSE_END============================================
  ===================================================================
  ECOMP is a trademark and service mark of AT&T Intellectual Property.
  -->

<style>
    .fileUpload {
        position: relative;
        overflow: hidden;
        margin: 10px;
    }
    .fileUpload input.upload {
        position: absolute;
        top: 0;
        right: 0;
        margin: 0;
        padding: 0;
        font-size: 20px;
        cursor: pointer;
        opacity: 0;
        filter: alpha(opacity=0);
        float:left;
    }
    .fileDisplay {

        display: inline-block;
        overflow: hidden;
        float: right;
        margin-left: 0px;
        z-index: initial;
        text-align: center;
        margin-top: 17px;
    }


</style>


<div attribute-test="collectorproperties" id="configure-widgets"  >
    <div attribute-test="cldsopentemplateh" class="modal-header">
        <button type="button" class="close" ng-click="close(false)" aria-hidden="true" style="margin-top: -3px">&times;</button>
        <h4>Collector</h4>
    </div>
    <div attribute-test="cldsopentemplateb" class="modal-body" style="height: 280px">
        <div style="height: 10px">
        </div>
        <form id="saveProps" class="form-horizontal">

            <div>
                <div class="form-group">
                    <label for="schemaLocation" class="col-sm-4 control-label">Topic Publishes</label>

                    <div class="col-sm-8">
                        <select class="form-control" focus="true" name="topicPublishes"  id="topicPublishes">
                            <!--  <option value="volvo">volvo</option>
                            <option value="saab">saab</option>
                            <option value="opel">opel</option> -->
                        </select>
                    </div>
                </div>
                
                
            </div>

        </form>

    </div>
    <div class="modal-footer">
        <!--<button ng-click="reset()" class="btn btn-primary" style="float:left">Reset</button>-->
        <button  id="savePropsBtn" class="btn btn-primary">Close</button>
        <button ng-click="close(true)" id="close_button" class="btn btn-primary">Cancel</button>

    </div>
    <script>
    loadPropertyWindow("collector");
    var el=elementMap[lastElementSelected];
    if(el!==undefined){
        for(var i=0;i<el.length;i++){
            
            $("#"+el[i].name).val(el[i].value);
        }


    }
    $("#saveProps").on('submit', function (event) {
        console.log("clicksaveprop");
        //alert("lol");
        //console.log($(this).serializeArray()[0].name);
        saveProperties($(this).serializeArray())
        event.preventDefault();

        $("#close_button").click();

    })
    $("#savePropsBtn").click(function (event) {
        console.log("savepropbtn");
        //alert($("#CProp_Target").val())
        //alert(las)
        $("#saveProps").submit();
    })
</script>
</div>