root / hci / trunk / eneraptor-web-app / grails-app / views / actions / getActions.gsp @ 58
History | View | Annotate | Download (1.21 KB)
1 |
<g:if test="${replyError}"> |
---|---|
2 |
<center> |
3 |
<p>Could not retrieve scenarios from the logic.</p> |
4 |
<p>Please try again by <g:link action="view">refreshing</g:link> this page.</p> |
5 |
<br /> |
6 |
<p><i>Error: ${replyError}</i></p> |
7 |
</center> |
8 |
</g:if> |
9 |
<g:else> |
10 |
<table> |
11 |
<thead> |
12 |
<tr> |
13 |
<th><p>Name (short description)</p></th> |
14 |
<th><p>Id</p></th> |
15 |
<th><p>Main input device</p></th> |
16 |
<th><p>Output device</p></th> |
17 |
<th style="width:60px;"><p>Options</p></th> |
18 |
</tr> |
19 |
</thead> |
20 |
<tbody> |
21 |
<g:each in="${scenarios}" var="scenario"> |
22 |
<tr> |
23 |
<td><p><g:link action="viewAction" params="[actionId: scenario[0]]" >${scenario[1].encodeAsHTML()}</g:link></p></td> |
24 |
<td><p>${scenario[0]}</p></td> |
25 |
<td><p>${scenario[2]}</p></td> |
26 |
<td><p>${scenario[3]}</p></td> |
27 |
<td> |
28 |
<g:link title="View" action="viewAction" params="[actionId: scenario[0]]" ><erptr:icon w="script" /></g:link> |
29 |
<g:link title="Edit" action="editAction" params="[actionId: scenario[0]]" ><erptr:icon w="pencil" /></g:link> |
30 |
<g:link title="Delete" action="deleteAction" params="[actionId: scenario[0]]" ><erptr:icon w="delete" /></g:link> |
31 |
</td> |
32 |
</tr> |
33 |
</g:each> |
34 |
</tbody> |
35 |
</table> |
36 |
</g:else> |