| lombardofr | 93770e2 | 2019-08-30 19:37:56 +0200 | [diff] [blame] | 1 | <!-- |
| 2 | Copyright 2019 ETSI |
| 3 | |
| 4 | Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | you may not use this file except in compliance with the License. |
| 6 | You may obtain a copy of the License at |
| 7 | |
| 8 | http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | |
| 10 | Unless required by applicable law or agreed to in writing, software |
| 11 | distributed under the License is distributed on an BASIS, |
| 12 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | See the License for the specific language governing permissions and |
| 14 | limitations under the License. |
| 15 | --> |
| 16 | |
| lombardof | fb37bca | 2018-05-03 16:20:04 +0200 | [diff] [blame] | 17 | {% extends "base.html" %} |
| 18 | {% load get %} |
| 19 | {% load staticfiles %} |
| 20 | |
| 21 | |
| 22 | {% block head_block %} |
| 23 | {{ block.super }} |
| lombardofr | e5a130a | 2019-07-15 09:17:59 +0200 | [diff] [blame] | 24 | <link rel="stylesheet" href="/static/node_modules/datatables.net-bs/css/dataTables.bootstrap.min.css"> |
| lombardof | fb37bca | 2018-05-03 16:20:04 +0200 | [diff] [blame] | 25 | {% endblock %} |
| 26 | {% block title_header_big %} |
| 27 | {{ block.super }} |
| 28 | {% endblock %} |
| 29 | {% block left_sidebar %} |
| 30 | |
| lombardof | 911c9e4 | 2018-06-03 16:52:12 +0200 | [diff] [blame] | 31 | {% include 'osm/osm_project_left_sidebar.html' %} |
| lombardof | fb37bca | 2018-05-03 16:20:04 +0200 | [diff] [blame] | 32 | |
| 33 | {% endblock %} |
| 34 | |
| 35 | |
| 36 | {% block breadcrumb_body %} |
| 37 | {{ block.super }} |
| lombardofr | 2ad37de | 2018-07-18 09:47:28 +0200 | [diff] [blame] | 38 | <li><a href="{% url "vims:list" %}">VIMS</a></li> |
| lombardof | fb37bca | 2018-05-03 16:20:04 +0200 | [diff] [blame] | 39 | {% endblock %} |
| 40 | |
| 41 | {% block content_body %} |
| 42 | {{ block.super }} |
| lombardofr | c1e3d67 | 2019-12-17 14:58:24 +0100 | [diff] [blame] | 43 | {% include 'modal/vim_create.html' %} |
| lombardof | fb37bca | 2018-05-03 16:20:04 +0200 | [diff] [blame] | 44 | {% include 'modal/vim_details.html' %} |
| 45 | {% csrf_token %} |
| 46 | <div class="row"> |
| 47 | <div class="col-md-12"> |
| 48 | |
| 49 | <div class="box"> |
| 50 | <div class="box-header with-border"> |
| 51 | <h3 class="box-title">Registered VIM</h3> |
| 52 | <div class="box-tools"> |
| lombardofr | c1e3d67 | 2019-12-17 14:58:24 +0100 | [diff] [blame] | 53 | <button type="button" class="btn btn-default" data-container="body" |
| 54 | data-toggle="tooltip" data-placement="top" title="New VIM" |
| 55 | onclick="javascript:openModalCreateVIM()"> |
| 56 | <i class="fa fa-plus"></i> <span> New VIM</span> |
| 57 | </button> |
| lombardof | fb37bca | 2018-05-03 16:20:04 +0200 | [diff] [blame] | 58 | </div> |
| 59 | </div> |
| 60 | <div class="box-body"> |
| lombardofr | 45e33ee | 2018-07-18 19:22:37 +0200 | [diff] [blame] | 61 | <table id="vims_table" class="table table-bordered table-striped"> |
| lombardof | fb37bca | 2018-05-03 16:20:04 +0200 | [diff] [blame] | 62 | <thead> |
| 63 | <tr> |
| lombardof | fb37bca | 2018-05-03 16:20:04 +0200 | [diff] [blame] | 64 | <th>Name</th> |
| lombardofr | 45e33ee | 2018-07-18 19:22:37 +0200 | [diff] [blame] | 65 | <th>Identifier</th> |
| lombardof | fb37bca | 2018-05-03 16:20:04 +0200 | [diff] [blame] | 66 | <th>Type</th> |
| 67 | <th>Operational State</th> |
| 68 | <th>Description</th> |
| 69 | <th>Actions</th> |
| 70 | </tr> |
| 71 | </thead> |
| 72 | <tbody> |
| lombardof | fb37bca | 2018-05-03 16:20:04 +0200 | [diff] [blame] | 73 | |
| lombardof | fb37bca | 2018-05-03 16:20:04 +0200 | [diff] [blame] | 74 | </tbody> |
| 75 | </table> |
| 76 | </div> |
| 77 | </div> |
| 78 | </div> |
| 79 | |
| 80 | </div> |
| 81 | {% endblock %} |
| 82 | |
| 83 | {% block resource_block %} |
| 84 | {{ block.super }} |
| lombardofr | e5a130a | 2019-07-15 09:17:59 +0200 | [diff] [blame] | 85 | <script src="/static/node_modules/datatables.net/js/jquery.dataTables.min.js"></script> |
| 86 | <script src="/static/node_modules/datatables.net-bs/js/dataTables.bootstrap.min.js"></script> |
| lombardofr | c1e3d67 | 2019-12-17 14:58:24 +0100 | [diff] [blame] | 87 | <script src="/static/src/vimhandler/vim_list.js"></script> |
| lombardofr | 45e33ee | 2018-07-18 19:22:37 +0200 | [diff] [blame] | 88 | <script> |
| lombardofr | c1e3d67 | 2019-12-17 14:58:24 +0100 | [diff] [blame] | 89 | var table; |
| lombardofr | 4908f38 | 2018-09-10 11:36:06 +0200 | [diff] [blame] | 90 | |
| lombardofr | c1e3d67 | 2019-12-17 14:58:24 +0100 | [diff] [blame] | 91 | |
| lombardof | fb37bca | 2018-05-03 16:20:04 +0200 | [diff] [blame] | 92 | </script> |
| 93 | |
| 94 | {% endblock %} |