Account: delete slice button
authorLoic Baron <loic.baron@lip6.fr>
Tue, 21 Apr 2015 09:50:40 +0000 (11:50 +0200)
committerLoic Baron <loic.baron@lip6.fr>
Tue, 21 Apr 2015 09:50:40 +0000 (11:50 +0200)
portal/templates/onelab/onelab_account-view.html

index 985974f..e062949 100644 (file)
                                        <th>Slice Name</th> 
                                <th>Expiration Date</th>
                                        <th>Download</th>
+                    <th>Delete</th>
                        </tr>
                                {% for row in my_slices %}     
                        <tr class="border_bottom">
                                                        <span class="glyphicon glyphicon-download"></span> Download
                                                </button> 
                                        </td>
+                    <td class="odd"> 
+                        <button class="btn btn-danger btn-xs" name= "del_{{row.slice_name}}" type="submit" title="Download Slice Credentials" onclick="return confirm('Are you sure? If you do so, the slice will be permanently deleted.'); javascript:document.getElementById('button_value').value='del_{{row.slice_name}}';">
+                            <span class="glyphicon glyphicon-remove"></span> Delete
+                        </button> 
+                    </td>
                        </tr>
                        {%endfor%}
                        </table>