X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=instancehandler%2Ftemplate%2Finstance_list.html;h=42b6fdac4016943193f3aff43155f911c0df3bb1;hb=refs%2Fchanges%2F81%2F7481%2F1;hp=067dcb54c11eca8499dd6635d033c6029cedd7fa;hpb=99a3d358490e2db8feec07ddfdbf676a8c4c868a;p=osm%2FLW-UI.git diff --git a/instancehandler/template/instance_list.html b/instancehandler/template/instance_list.html index 067dcb5..42b6fda 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' %} @@ -170,13 +173,6 @@ ' ' + ' History of operations' + '
  • ' + - '
  • ' + - ' New Alarm
  • ' + - '
  • ' + - ' Export metric
  • ' + - '
  • ' + '
  • ' + ' ' + ' Force delete
  • ' + @@ -282,6 +278,105 @@ "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 () {