aboutsummaryrefslogtreecommitdiffstats
path: root/app/comp-fe/icecat.html
blob: e4057a1427daf0c6a9e6e5555dc3fb94b3b07e9d (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
<script>
    function createScript(src) {
        var script = document.createElement('script');
        script.src = src;
        return script;
    }

    function createLink(src) {
        var link = document.createElement('link');
        link.rel = 'stylesheet';
        link.href = src;
        return link;
    }

    $('head').append(createLink(window.catalogImport + 'composition.css'));
    $('head').append(createLink(window.catalogImport + 'catalog.css'));
    $('head').append(createLink(window.catalogImport + 'styles/bootstrap.css'));

    $('body').append(createScript(window.catalogImport + 'js/d3.min.js'));
    $('body').append(createScript(window.catalogImport + 'js/underscore.js'));
    $('body').append(createScript(window.catalogImport + 'js/circular-json.js'));
    $('body').append(createScript(window.catalogImport + 'js/bootstrap.js'));
    $('body').append(createScript(window.catalogImport + 'js/bootstrap-notify.min.js'));
    $('body').append(createScript(window.catalogImport + 'config.js'));
    $('body').append(createScript(window.catalogImport + 'composition.js'));
    $('body').append(createScript(window.catalogImport + 'asdc-catalog.js'));

</script>

<div id="icecat">
    <div id="catalogdiv">
        <div>
            <div class="mandatory">*</div>
            <select id="selected-type-mt" class="type-select" data-tests-id="flowTypeSelect">
                <option value="" disabled selected>Select flow type</option>
            </select>
        </div>

        <div id="catalog">
            <div id="catalogitemlist">
                <div id="elementquery">[catalog elements]</div>
            </div>
            <br>
            <center>
                <button class="catalogitem big-btn" id="savebtn">Save</button>
                <!-- <button class="catalogitem" id="submitbtn">Submit</button> -->
            </center>
        </div>
    </div>

    <div id="compositioncontainer" style="width: 80%"> </div>

    <div id="configeditor" style="visibility:hidden">
        <div id="configstuff" style="overflow: scroll"></div>
        <br>
        <div class="config-fotter">
            <button type="button" class="btn btn-default" onclick="configclose(this)">Cancel</button>
            <button type="button" class="btn btn-primary" id="configset">Set</button>
        </div>
    </div>

</div>

<input type="hidden" id="componentId" />
<input type="hidden" id="serviceuuid" />
<input type="hidden" id="vnfiname" />
<input type="hidden" id="typeFlag" />