[271] | 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 Asset Copy</title> |
---|
| 8 | <nav:resources override="true"/> |
---|
| 9 | </head> |
---|
| 10 | <body> |
---|
| 11 | <div class="nav"> |
---|
| 12 | <h1>Create Asset Copy</h1> |
---|
| 13 | </div> |
---|
| 14 | <div class="body"> |
---|
[278] | 15 | <g:render template="/shared/messages" /> |
---|
[271] | 16 | <g:hasErrors bean="${assetInstance}"> |
---|
| 17 | <div class="errors"> |
---|
| 18 | <g:renderErrors bean="${assetInstance}" as="list" /> |
---|
| 19 | </div> |
---|
| 20 | </g:hasErrors> |
---|
| 21 | <g:form method="post" > |
---|
| 22 | <g:hiddenField name="assetToCopy.id" value="${assetToCopy.id}" /> |
---|
| 23 | <div class="dialog"> |
---|
| 24 | <table> |
---|
| 25 | <tbody> |
---|
| 26 | |
---|
| 27 | <tr class="prop"> |
---|
| 28 | <td valign="top" class="name"> |
---|
| 29 | <label for="name">Copying:</label> |
---|
| 30 | </td> |
---|
| 31 | <td valign="top" class="value"> |
---|
| 32 | ${assetToCopy.encodeAsHTML()} |
---|
| 33 | </td> |
---|
| 34 | </tr> |
---|
| 35 | |
---|
| 36 | <tr class="prop"> |
---|
| 37 | <td valign="top" class="name"> |
---|
[278] | 38 | <label for="copyMethod">Sub Items:</label> |
---|
| 39 | </td> |
---|
| 40 | <td valign="top" class="value"> |
---|
| 41 | <p> |
---|
| 42 | <input type="radio" name="copyMethod" value="link" /> |
---|
| 43 | Link |
---|
| 44 | <g:helpBalloon class="helpballoon" code="asset.copy.method" /> |
---|
| 45 | </p> |
---|
| 46 | <p> |
---|
| 47 | <input type="radio" name="copyMethod" value="copy" /> |
---|
| 48 | Copy |
---|
| 49 | </p> |
---|
| 50 | </td> |
---|
| 51 | </tr> |
---|
| 52 | |
---|
| 53 | <tr class="prop"> |
---|
| 54 | <td valign="top" class="name"> |
---|
[271] | 55 | <label for="name">Name:</label> |
---|
| 56 | </td> |
---|
| 57 | <td valign="top" class="value ${hasErrors(bean:assetInstance,field:'name','errors')}"> |
---|
[329] | 58 | <input type="text" class="description" maxlength="50" id="name" name="name" value="${fieldValue(bean:assetInstance,field:'name')}"/> |
---|
[271] | 59 | </td> |
---|
| 60 | </tr> |
---|
| 61 | |
---|
| 62 | <tr class="prop"> |
---|
| 63 | <td valign="top" class="name"> |
---|
| 64 | <label for="description">Description:</label> |
---|
| 65 | </td> |
---|
| 66 | <td valign="top" class="value ${hasErrors(bean:assetInstance,field:'description','errors')}"> |
---|
[329] | 67 | <input type="text" class="description" maxlength="75" id="description" name="description" value="${fieldValue(bean:assetInstance,field:'description')}"/> |
---|
[271] | 68 | </td> |
---|
[329] | 69 | </tr> |
---|
| 70 | |
---|
| 71 | <tr class="prop"> |
---|
| 72 | <td valign="top" class="name"> |
---|
| 73 | <label for="comment">Comment:</label> |
---|
| 74 | </td> |
---|
| 75 | <td valign="top" class="value ${hasErrors(bean:assetInstance,field:'comment','errors')}"> |
---|
| 76 | <textarea rows="5" cols="40" name="comment">${fieldValue(bean:assetInstance, field:'comment')}</textarea> |
---|
| 77 | </td> |
---|
[271] | 78 | </tr> |
---|
| 79 | |
---|
| 80 | <tr class="prop"> |
---|
| 81 | <td valign="top" class="name"> |
---|
| 82 | <label for="isActive">Is Active:</label> |
---|
| 83 | </td> |
---|
| 84 | <td valign="top" class="value ${hasErrors(bean:assetInstance,field:'isActive','errors')}"> |
---|
| 85 | <g:checkBox name="isActive" value="${assetInstance?.isActive}" ></g:checkBox> |
---|
| 86 | </td> |
---|
| 87 | </tr> |
---|
| 88 | |
---|
| 89 | <tr class="prop"> |
---|
| 90 | <td valign="top" class="name"> |
---|
| 91 | <label for="section">Section:</label> |
---|
| 92 | </td> |
---|
| 93 | <td valign="top" class="value ${hasErrors(bean:assetInstance,field:'section','errors')}"> |
---|
| 94 | <g:select optionKey="id" from="${Section.list()}" name="section.id" value="${assetInstance?.section?.id}" ></g:select> |
---|
| 95 | </td> |
---|
| 96 | </tr> |
---|
| 97 | |
---|
| 98 | </tbody> |
---|
| 99 | </table> |
---|
| 100 | </div> |
---|
| 101 | <div class="buttons"> |
---|
| 102 | <span class="button"><g:actionSubmit class="save" value="Create" action="saveCopy"/></span> |
---|
| 103 | </div> |
---|
| 104 | </g:form> |
---|
| 105 | </div> |
---|
| 106 | </body> |
---|
| 107 | </html> |
---|