Revision 66 hci/trunk/eneraptor-web-app/grails-app/views/config/logic.gsp
logic.gsp | ||
---|---|---|
1 | 1 |
<html> |
2 | 2 |
|
3 | 3 |
<head> |
4 |
<title>Configuration » Logic</title>
|
|
4 |
<title>Configuration » Hardware set (card)</title>
|
|
5 | 5 |
<meta name="layout" content="main" /> |
6 | 6 |
</head> |
7 | 7 |
|
8 | 8 |
<body> |
9 | 9 |
|
10 |
<erptr:box title="Logic configuration"> |
|
11 |
<g:form name="logic-config-form" action="saveLogic"> |
|
12 |
|
|
13 |
<p>TODO: Logic configuration</p> |
|
14 |
|
|
15 |
</g:form> |
|
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 |
|
|
16 | 15 |
</erptr:box> |
17 | 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 |
|
|
18 | 37 |
</body> |
19 | 38 |
|
20 | 39 |
</html> |
Also available in: Unified diff