add warning for update base image

This commit is contained in:
zhongyehong 2016-07-14 13:35:11 +08:00
parent b9ea18dc9f
commit 6397636135
1 changed files with 20 additions and 1 deletions

View File

@ -229,7 +229,26 @@
<td>{{image['name']}}</td>
<td>{{image['time']}}</td>
<td><a href="/image/description/{{image['name']}}_root_private/" target="_blank">{{image['description']}}</a></td>
<td><a href="/image/updatebase/{{image['name']}}/"><button type="button" class="btn btn-xs btn-success">Update</button></a>
<td><button type="button" class="btn btn-xs btn-success" data-toggle="modal" data-target="#Update_{{image['name']}}">Update</button>
<div class="modal inmodal" id="Update_{{image['name']}}" tabindex="-1" role="dialog" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content animated fadeIn">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>
<i class="fa fa-save modal-icon"></i>
<h4 class="modal-title">Update Base Image</h4>
<small class="font-bold">Update Base Image From Chosen Image</small>
</div>
<div class="modal-body">
<strong>Warning: This operation will stop all containers in all workers, and it will costs lots of time.</strong>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-white" data-dismiss="modal">Close</button>
<a href="/image/updatebase/{{image['name']}}/"><button type="button" class="btn btn-success">Update</button></a>
</div>
</div>
</div>
</div>
</tr>
{% endfor %}
</tbody>