adding confirmations to terminate instance, and commenting out permissions toggle for images
This commit is contained in:
parent
0253b76acd
commit
bc5ce1ba70
@ -22,7 +22,7 @@
|
||||
<td id="actions">
|
||||
<ul>
|
||||
<li>{% include "_delete_image.html" with form=delete_form %}</li>
|
||||
<li>{% include "_toggle_image.html" with form=toggle_form %}</li>
|
||||
{# <li>{% include "_toggle_image.html" with form=toggle_form %}</li> #}
|
||||
|
||||
<li><a href="{% url syspanel_images_update image.id %}">Edit</a></li>
|
||||
</ul>
|
||||
|
@ -4,5 +4,5 @@
|
||||
{{hidden}}
|
||||
{% endfor %}
|
||||
<input name="instance" type="hidden" value="{{instance.id}}" />
|
||||
<input id="terminate_{{instance.id}}" class="terminate" type="submit" value="Terminate" />
|
||||
<input id="terminate_{{instance.id}}" class="terminate" title="{{instance.name}}" type="submit" value="Terminate" />
|
||||
</form>
|
||||
|
@ -14,6 +14,11 @@ $(function(){
|
||||
|
||||
|
||||
// confirmation on deletion of items
|
||||
$(".terminate").click(function(e){
|
||||
var response = confirm('Are you sure you want to terminate the Instance: '+$(this).attr('title')+"?");
|
||||
return response;
|
||||
})
|
||||
|
||||
$(".delete").click(function(e){
|
||||
var response = confirm('Are you sure you want to delete the '+$(this).attr('title')+" ?");
|
||||
return response;
|
||||
|
Loading…
x
Reference in New Issue
Block a user