1 | |
---|
2 | |
---|
3 | <html> |
---|
4 | <head> |
---|
5 | <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> |
---|
6 | <meta name="layout" content="main" /> |
---|
7 | <title>Edit AppConfig</title> |
---|
8 | </head> |
---|
9 | <body> |
---|
10 | <div class="nav"> |
---|
11 | <span class="menuButton"><g:link class="list" action="list">AppConfig List</g:link></span> |
---|
12 | <span class="menuButton"><g:link class="create" action="create">New AppConfig</g:link></span> |
---|
13 | </div> |
---|
14 | <div class="body"> |
---|
15 | <h1>Edit AppConfig</h1> |
---|
16 | <g:if test="${flash.message}"> |
---|
17 | <div class="message">${flash.message}</div> |
---|
18 | </g:if> |
---|
19 | <g:hasErrors bean="${appConfigInstance}"> |
---|
20 | <div class="errors"> |
---|
21 | <g:renderErrors bean="${appConfigInstance}" as="list" /> |
---|
22 | </div> |
---|
23 | </g:hasErrors> |
---|
24 | <g:form method="post" > |
---|
25 | <input type="hidden" name="id" value="${appConfigInstance?.id}" /> |
---|
26 | <input type="hidden" name="version" value="${appConfigInstance?.version}" /> |
---|
27 | <div class="dialog"> |
---|
28 | <table> |
---|
29 | <tbody> |
---|
30 | |
---|
31 | <tr class="prop"> |
---|
32 | <td valign="top" class="name"> |
---|
33 | <label for="name">Name:</label> |
---|
34 | </td> |
---|
35 | <td valign="top" class="value ${hasErrors(bean:appConfigInstance,field:'name','errors')}"> |
---|
36 | <input type="text" maxlength="100" id="name" name="name" value="${fieldValue(bean:appConfigInstance,field:'name')}"/> |
---|
37 | </td> |
---|
38 | </tr> |
---|
39 | |
---|
40 | <tr class="prop"> |
---|
41 | <td valign="top" class="name"> |
---|
42 | <label for="value">Value:</label> |
---|
43 | </td> |
---|
44 | <td valign="top" class="value ${hasErrors(bean:appConfigInstance,field:'value','errors')}"> |
---|
45 | <textarea rows="5" cols="40" name="value">${fieldValue(bean:appConfigInstance, field:'value')}</textarea> |
---|
46 | </td> |
---|
47 | </tr> |
---|
48 | |
---|
49 | <tr class="prop"> |
---|
50 | <td valign="top" class="name"> |
---|
51 | <label for="description">Description:</label> |
---|
52 | </td> |
---|
53 | <td valign="top" class="value ${hasErrors(bean:appConfigInstance,field:'description','errors')}"> |
---|
54 | <textarea rows="5" cols="40" name="description">${fieldValue(bean:appConfigInstance, field:'description')}</textarea> |
---|
55 | </td> |
---|
56 | </tr> |
---|
57 | |
---|
58 | </tbody> |
---|
59 | </table> |
---|
60 | </div> |
---|
61 | <div class="buttons"> |
---|
62 | <span class="button"><g:actionSubmit class="save" value="Update" /></span> |
---|
63 | <span class="button"><g:actionSubmit class="delete" onclick="return confirm('Are you sure?');" value="Delete" /></span> |
---|
64 | </div> |
---|
65 | </g:form> |
---|
66 | </div> |
---|
67 | </body> |
---|
68 | </html> |
---|