1 {% extends
"base.html" %}
10 {% block title_header_big %}
13 {% block left_sidebar %}
15 {% include 'left_sidebar_base.html' %}
20 {% block breadcrumb_body %}
22 <li><a href=
"{% url 'vim:list' %}">VIMS
</a></li>
25 {% block content_body %}
27 {% include 'modal/vim_details.html' %}
30 <div class=
"col-md-12">
33 <div class=
"box-header with-border">
34 <h3 class=
"box-title">Registered VIM
</h3>
35 <div class=
"box-tools">
36 <a href='{% url
"vim:create" %}'
class=
"btn btn-block btn-primary btn-sm"><i
37 class=
"fa fa-plus"></i><span> New VIM
</span></a>
40 <div class=
"box-body">
41 <table id=
"projects_table" class=
"table table-bordered table-striped">
47 <th>Operational State
</th>
53 {% for p in datacenters %}
57 <td>{{ p|get:
"_id" }}
</td>
58 <td>{{ p|get:
"name" }}
</td>
59 <td>{{ p|get:
"vim_type" }}
</td>
60 <td>{{ p|get_sub:
"_admin,operationalState"}}
</td>
61 <td>{{ p|get_sub:
"_admin,description" }}
</td>
65 <div class=
"btn-group">
66 <button type=
"button" class=
"btn btn-default"
67 onclick=
"location.href='{% url "vim:show
" vim_id=p|get:"_id
" %}'" data-toggle=
"tooltip" data-placement=
"top" data-container=
"body" title=
"Show Info"><i
68 class=
"fa fa-info"></i></button>
69 <button type=
"button" class=
"btn btn-default"
70 onclick=
"javascript:deleteVim('{{ p|get:"_id
" }}')" data-toggle=
"tooltip" data-placement=
"top" data-container=
"body" title=
"Delete"><i
71 class=
"fa fa-trash-o" ></i></button>
86 {% block resource_block %}
92 function deleteVim(vim_uuid) {
93 bootbox.confirm(
"Are you sure want to delete?", function (result) {
95 location.href = '/vims/' + vim_uuid + '/delete'
104 {% include
"footer.html" %}