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>Create AssetSubItem</title> |
---|
8 | </head> |
---|
9 | <body> |
---|
10 | <div class="nav"> |
---|
11 | <h1>Create Sub Item</h1> |
---|
12 | </div> |
---|
13 | <div class="body"> |
---|
14 | <g:if test="${flash.message}"> |
---|
15 | <div class="message">${flash.message}</div> |
---|
16 | </g:if> |
---|
17 | <g:hasErrors bean="${assetSubItemInstance}"> |
---|
18 | <div class="errors"> |
---|
19 | <g:renderErrors bean="${assetSubItemInstance}" as="list" /> |
---|
20 | </div> |
---|
21 | </g:hasErrors> |
---|
22 | <g:form action="save" method="post" > |
---|
23 | <div class="dialog"> |
---|
24 | <table> |
---|
25 | <tbody> |
---|
26 | |
---|
27 | <g:if test="${assetSubItemInstance?.parentItem}" > |
---|
28 | <g:hiddenField name="parentItem.id" value="${assetSubItemInstance.parentItem.id}" /> |
---|
29 | <tr class="prop"> |
---|
30 | <td valign="top" class="name"> |
---|
31 | <label for="asset">Parent Item:</label> |
---|
32 | </td> |
---|
33 | <td valign="top" class="value"> |
---|
34 | ${assetSubItemInstance.parentItem.encodeAsHTML()} |
---|
35 | </td> |
---|
36 | </tr> |
---|
37 | </g:if> |
---|
38 | |
---|
39 | <tr class="prop"> |
---|
40 | <td valign="top" class="name"> |
---|
41 | <label for="name">Name:</label> |
---|
42 | </td> |
---|
43 | <td valign="top" class="value ${hasErrors(bean:assetSubItemInstance,field:'name','errors')}"> |
---|
44 | <input type="text" maxlength="50" id="name" name="name" value="${fieldValue(bean:assetSubItemInstance,field:'name')}"/> |
---|
45 | </td> |
---|
46 | </tr> |
---|
47 | |
---|
48 | <tr class="prop"> |
---|
49 | <td valign="top" class="name"> |
---|
50 | <label for="description">Description:</label> |
---|
51 | </td> |
---|
52 | <td valign="top" class="value ${hasErrors(bean:assetSubItemInstance,field:'description','errors')}"> |
---|
53 | <input type="text" maxlength="100" id="description" name="description" value="${fieldValue(bean:assetSubItemInstance,field:'description')}"/> |
---|
54 | </td> |
---|
55 | </tr> |
---|
56 | |
---|
57 | </tbody> |
---|
58 | </table> |
---|
59 | </div> |
---|
60 | <div class="buttons"> |
---|
61 | <span class="button"><input class="save" type="submit" value="Create" /></span> |
---|
62 | </div> |
---|
63 | </g:form> |
---|
64 | </div> |
---|
65 | </body> |
---|
66 | </html> |
---|