X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=instancehandler%2Ftemplate%2Finstance_list.html;h=1130e34fdf3bd1552e558e54d2e237f78ee6f9f4;hb=refs%2Fchanges%2F79%2F7679%2F1;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..1130e34 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,10 +51,9 @@ {% 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' %} - {% include 'modal/instance_export_metric.html' %} {% endblock %} {% block resource_block %} @@ -170,13 +171,6 @@ ' ' + ' History of operations' + '
  • ' + - '
  • ' + - ' New Alarm
  • ' + - '
  • ' + - ' Export metric
  • ' + - '
  • ' + '
  • ' + ' ' + ' Force delete
  • ' + @@ -184,7 +178,8 @@ ''; return template; }, - "targets": 5 + "targets": 5, + "orderable": false }, ], @@ -229,7 +224,8 @@ ' ' + ' '; }, - "targets": 5 + "targets": 5, + "orderable": false }, ], 'pdu': [ @@ -277,8 +273,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 () {