root / hci / trunk / eneraptor-web-app / grails-app / views / config / logic.gsp @ 67
History | View | Annotate | Download (1.16 KB)
1 |
<html> |
---|---|
2 |
|
3 |
<head> |
4 |
<title>Configuration » Hardware set (card)</title> |
5 |
<meta name="layout" content="main" /> |
6 |
</head> |
7 |
|
8 |
<body> |
9 |
|
10 |
<erptr:box title="Hardware set (card) information"> |
11 |
|
12 |
<p>Hardware set's (card's) unique ID: <b>${hwSet.hardId}</b></p> |
13 |
<p>Hardware set's (card's) name: <b>${hwSet.name}</b></p> |
14 |
|
15 |
</erptr:box> |
16 |
|
17 |
<erptr:box title="Configuration"> |
18 |
|
19 |
<p>If you no longer have or need currently selected hardware set (card), you may delete it.</p> |
20 |
<p style="color:red;"><i>Warning: deleting current hardware set (card) <b>will also delete</b> all of it's devices, graphs, and other saved data, but <b>will not delete</b> any logged data in the database.</i></p> |
21 |
<br /> |
22 |
<p><a href="javascript:confirmDelete();"><erptr:icon w="delete" /> Delete current hardware set (card)</a></p> |
23 |
|
24 |
</erptr:box> |
25 |
|
26 |
<g:javascript> |
27 |
function confirmDelete() { |
28 |
|
29 |
var answer = confirm("Do you really want to proceed?\nAll of current hardware set's (card's) data will be deleted."); |
30 |
if(answer) { |
31 |
window.location = "<g:createLink controller="chooseHwSet" action="delete" id="${hwSet.id}" />"; |
32 |
} |
33 |
|
34 |
} |
35 |
</g:javascript> |
36 |
|
37 |
</body> |
38 |
|
39 |
</html> |