X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=instancehandler%2Ftemplate%2Finstance_list.html;h=9fddbc085713d27323d749df14fd8c52dfa3ebb2;hb=8532b4327bde5ad587a9e3d48db53dc8ee7b3ba4;hp=39d9b3c296eb5da6ae772d148fec3eb4a02229df;hpb=b58d5d8e177049ab63587f4329f282bc206352ec;p=osm%2FLW-UI.git diff --git a/instancehandler/template/instance_list.html b/instancehandler/template/instance_list.html index 39d9b3c..9fddbc0 100644 --- a/instancehandler/template/instance_list.html +++ b/instancehandler/template/instance_list.html @@ -42,6 +42,8 @@ {% include 'instance_list_vnf.html' %} {% elif type == 'pdu' %} {% include 'instance_list_pdu.html' %} + {% elif type == 'nsi' %} + {% include 'instance_list_nsi.html' %} {% endif %} @@ -49,6 +51,7 @@ {% include 'modal/instance_create.html' %} {% include 'modal/instance_create_pdu.html' %} + {% include 'modal/instance_create_nsi.html' %} {% include 'modal/instance_show.html' %} {% include 'modal/instance_new_action.html' %} {% include 'modal/instance_new_alarm.html' %} @@ -184,7 +187,8 @@ ''; return template; }, - "targets": 5 + "targets": 5, + "orderable": false }, ], @@ -229,7 +233,8 @@ ' ' + ' '; }, - "targets": 5 + "targets": 5, + "orderable": false }, ], 'pdu': [ @@ -277,8 +282,108 @@ ' class="far fa-trash-alt">'+ ' '; }, - "targets": 5 + "targets": 5, + "orderable": false } + ], + 'nsi': [ + { + "render": function (data, type, row) { + return row["name"]; + }, + "targets": 0 + }, + { + "render": function (data, type, row) { + return row["_id"]; + }, + "targets": 1 + }, + { + "render": function (data, type, row) { + return row["nst-ref"]; + }, + "targets": 2 + }, + { + // "width": "5%", + "render": function (data, type, row) { + if(row["operational-status"] === 'failed') + return ''+ row["operational-status"] +''; + if(row["operational-status"] === 'init') + return ''+ row["operational-status"] +''; + if(row["operational-status"] === 'running') + return ''+ row["operational-status"] +''; + return ''+row["operational-status"]+''; + }, + "targets": 3 + }, + { + // "width": "5%", + "render": function (data, type, row) { + if(row["config-status"] === 'failed') + return ''+ row["config-status"] +''; + if(row["config-status"] === 'init') + return ''+ row["config-status"] +''; + if(row["config-status"] === 'running') + return ''+ row["config-status"] +''; + if(row["config-status"] === 'configured') + return ''+ row["config-status"] +''; + return ''+row["operational-status"]+''; + }, + "targets": 4 + }, + { + // "className": "ellipsis", + "render": function (data, type, row) { + return row["detailed-status"]; + }, + "targets": 5 + },{ + "width": "20%", + "render": function (data, type, row) { + var template = '
' + + ' '; + }else{ + template += ' '; + } */ + template += ' ' + + ' ' + + ' ' + + '
'; + return template; + }, + "targets": 5, + "orderable": false + }, + ] }; $(document).ready(function () {