Last change
on this file since 830 was
182,
checked in by gav, 15 years ago
|
Add support for inventory item Pictures and Images.
Add new PersonService, refactor CreateDataService and TaskService to suite.
|
File size:
2.0 KB
|
Rev | Line | |
---|
[182] | 1 | <html> |
---|
| 2 | <head> |
---|
| 3 | <meta name="layout" content="main" /> |
---|
| 4 | <title>Create Picture</title> |
---|
| 5 | <nav:resources override="true"/> |
---|
| 6 | <g:render template="/shared/pictureHead" /> |
---|
| 7 | </head> |
---|
| 8 | <body> |
---|
| 9 | <div class="nav"> |
---|
| 10 | <h1>Create 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:uploadForm action="save" onsubmit="return Lightbox.loading();"> |
---|
| 20 | <g:hiddenField name="inventoryItem.id" value="${picture.inventoryItem.id}" /> |
---|
| 21 | <div class="dialog"> |
---|
| 22 | <table> |
---|
| 23 | <tbody> |
---|
| 24 | <tr class="prop"> |
---|
| 25 | <td valign="top" class="name"> |
---|
| 26 | <label for="inventoryItem.id">Inventory Item:</label> |
---|
| 27 | </td> |
---|
| 28 | <td valign="top" class="value"> |
---|
| 29 | ${picture.inventoryItem} |
---|
| 30 | </td> |
---|
| 31 | </tr> |
---|
| 32 | <tr class="prop"> |
---|
| 33 | <td valign="top" class="name"> |
---|
| 34 | <label for="file">File:</label> |
---|
| 35 | </td> |
---|
| 36 | <td valign="top" class="value ${hasErrors(bean: picture, field: 'file', 'errors')}"> |
---|
| 37 | <input type="file" id="file" name="file" size="40"/> |
---|
| 38 | </td> |
---|
| 39 | </tr> |
---|
| 40 | </tbody> |
---|
| 41 | </table> |
---|
| 42 | </div> |
---|
| 43 | <div class="buttons"> |
---|
| 44 | <span class="button"><input class="save" type="submit" value="Create" /></span> |
---|
| 45 | </div> |
---|
| 46 | </g:uploadForm> |
---|
| 47 | </div> |
---|
| 48 | </body> |
---|
| 49 | </html> |
---|
Note: See
TracBrowser
for help on using the repository browser.