| 1 | <html> | 
|---|
| 2 |     <head> | 
|---|
| 3 |         <meta name="layout" content="main" /> | 
|---|
| 4 |         <title>Edit Picture</title> | 
|---|
| 5 |         <nav:resources override="true"/> | 
|---|
| 6 |         <g:render template="/shared/pictureHead" /> | 
|---|
| 7 |     </head> | 
|---|
| 8 |     <body> | 
|---|
| 9 |         <div class="nav"> | 
|---|
| 10 |             <h1>Edit Picture</h1> | 
|---|
| 11 |         </div> | 
|---|
| 12 |         <div class="body"> | 
|---|
| 13 |             <g:render template="/shared/messages" /> | 
|---|
| 14 |             <g:hasErrors bean="${picture}"> | 
|---|
| 15 |                 <div class="errors"> | 
|---|
| 16 |                     <g:renderErrors bean="${picture}" as="list" /> | 
|---|
| 17 |                 </div> | 
|---|
| 18 |             </g:hasErrors> | 
|---|
| 19 |             <g:form method="post" onsubmit="return Lightbox.loading();"> | 
|---|
| 20 |                 <input type="hidden" name="id" value="${picture?.id}" /> | 
|---|
| 21 |                 <div class="dialog"> | 
|---|
| 22 |                     <table> | 
|---|
| 23 |                         <tbody> | 
|---|
| 24 |                             <tr class="prop"> | 
|---|
| 25 |                                 <td valign="top" class="name">Picture:</td> | 
|---|
| 26 |                                 <td valign="top" class="value"> | 
|---|
| 27 |                                     <span class='gallery'><wa:pictureLightboxAnchor picture="${picture}" size="${Image.Medium}" lightboxSize="${Image.Large}" title="Slide Show" /></span> | 
|---|
| 28 |                                 </td> | 
|---|
| 29 |                             </tr> | 
|---|
| 30 |                             <tr class="prop"> | 
|---|
| 31 |                                 <td valign="top" class="name"> | 
|---|
| 32 |                                     <label for="operation">Operation:</label> | 
|---|
| 33 |                                 </td> | 
|---|
| 34 |                                 <td valign="top" class="value ${hasErrors(bean: picture, field: 'operation', 'errors')}"> | 
|---|
| 35 |                                     <select id="operation" name="operation"> | 
|---|
| 36 |                                         <option value="${Picture.NoOp}" selected="selected">None</option> | 
|---|
| 37 |                                         <option value="${Picture.RotateClockWise90}">Rotate clockwise 90 degrees</option> | 
|---|
| 38 |                                         <option value="${Picture.RotateAntiClockWise90}">Rotate anti-clockwise 90 degrees</option> | 
|---|
| 39 |                                         <option value="${Picture.Rotate180}">Rotate 180 degrees</option> | 
|---|
| 40 |                                         <option value="${Picture.Flip}">Vertical mirror image</option> | 
|---|
| 41 |                                         <option value="${Picture.Flop}">Horizontal mirror image</option> | 
|---|
| 42 |                                     </select> | 
|---|
| 43 |                                 </td> | 
|---|
| 44 |                             </tr> | 
|---|
| 45 |                             <tr class="prop"> | 
|---|
| 46 |                                 <td valign="top" class="name"> | 
|---|
| 47 |                                     <label for="inventoryItem.id">Inventory Item:</label> | 
|---|
| 48 |                                 </td> | 
|---|
| 49 |                                 <td valign="top" class="value"> | 
|---|
| 50 |                                     <g:link controller="inventoryItemDetailed" action="show" id="${picture.inventoryItem?.id}" title="Show Inventory Item"> | 
|---|
| 51 |                                         ${picture.inventoryItem?.toString()?.encodeAsHTML()} | 
|---|
| 52 |                                     </g:link> | 
|---|
| 53 |                                 </td> | 
|---|
| 54 |                             </tr> | 
|---|
| 55 |                             </tr> | 
|---|
| 56 |                         </tbody> | 
|---|
| 57 |                     </table> | 
|---|
| 58 |                 </div> | 
|---|
| 59 |                 <div class="buttons"> | 
|---|
| 60 |                     <span class="button"><g:actionSubmit class="save" value="Update" /></span> | 
|---|
| 61 |                     <span class="button"><g:actionSubmit class="delete" onclick="return confirm('Are you sure?');" value="Delete" /></span> | 
|---|
| 62 |                 </div> | 
|---|
| 63 |             </g:form> | 
|---|
| 64 |         </div> | 
|---|
| 65 |     </body> | 
|---|
| 66 | </html> | 
|---|