Changeset 150 for trunk/grails-app/views/authority
- Timestamp:
- Oct 9, 2009, 10:11:43 PM (15 years ago)
- Location:
- trunk/grails-app/views/authority
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/grails-app/views/authority/create.gsp
r59 r150 1 1 <head> 2 3 2 <meta name="layout" content="main" /> 3 <title>Create Authority</title> 4 4 </head> 5 5 6 6 <body> 7 7 8 9 10 11 8 <div class="nav"> 9 <span class="menuButton"><a class="home" href="${createLinkTo(dir:'')}">Home</a></span> 10 <span class="menuButton"><g:link class="list" action="list">Authority List</g:link></span> 11 </div> 12 12 13 13 <div class="body"> 14 14 15 16 17 18 19 20 21 22 23 15 <h1>Create Authority</h1> 16 <g:if test="${flash.message}"> 17 <div class="message">${flash.message}</div> 18 </g:if> 19 <g:hasErrors bean="${authority}"> 20 <div class="errors"> 21 <g:renderErrors bean="${authority}" as="list" /> 22 </div> 23 </g:hasErrors> 24 24 25 26 27 28 29 30 31 32 33 34 25 <g:form action="save"> 26 <div class="dialog"> 27 <table> 28 <tbody> 29 <tr class="prop"> 30 <td valign="top" class="name"><label for="authority">Authority Name:</label></td> 31 <td valign="top" class="value ${hasErrors(bean:authority,field:'authority','errors')}"> 32 <input type="text" id="authority" name="authority" value="${authority?.authority?.encodeAsHTML()}"/> 33 </td> 34 </tr> 35 35 36 37 38 39 40 41 42 43 44 36 <tr class="prop"> 37 <td valign="top" class="name"><label for="description">Description:</label></td> 38 <td valign="top" class="value ${hasErrors(bean:authority,field:'description','errors')}"> 39 <input type="text" id="description" name="description" value="${authority?.description?.encodeAsHTML()}"/> 40 </td> 41 </tr> 42 </tbody> 43 </table> 44 </div> 45 45 46 47 48 49 50 46 <div class="buttons"> 47 <span class="button"><input class="save" type="submit" value="Create" /></span> 48 </div> 49 </g:form> 50 </div> 51 51 </body> -
trunk/grails-app/views/authority/edit.gsp
r59 r150 1 1 <head> 2 3 2 <meta name="layout" content="main" /> 3 <title>Edit Authority</title> 4 4 </head> 5 5 6 6 <body> 7 7 8 9 10 11 12 8 <div class="nav"> 9 <span class="menuButton"><a class="home" href="${createLinkTo(dir:'')}">Home</a></span> 10 <span class="menuButton"><g:link class="list" action="list">Authority List</g:link></span> 11 <span class="menuButton"><g:link class="create" action="create">New Authority</g:link></span> 12 </div> 13 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 14 <div class="body"> 15 <h1>Edit Authority</h1> 16 <g:if test="${flash.message}"> 17 <div class="message">${flash.message}</div> 18 </g:if> 19 <g:hasErrors bean="${authority}"> 20 <div class="errors"> 21 <g:renderErrors bean="${authority}" as="list" /> 22 </div> 23 </g:hasErrors> 24 <div class="prop"> 25 <span class="name">ID:</span> 26 <span class="value">${authority.id}</span> 27 </div> 28 <g:form> 29 <input type="hidden" name="id" value="${authority.id}" /> 30 <input type="hidden" name="version" value="${authority.version}" /> 31 <div class="dialog"> 32 <table> 33 <tbody> 34 <tr class="prop"> 35 <td valign="top" class="name"><label for="authority">Authority Name:</label></td> 36 <td valign="top" class="value ${hasErrors(bean:authority,field:'authority','errors')}"> 37 <input type="text" id="authority" name="authority" value="${authority.authority?.encodeAsHTML()}"/> 38 </td> 39 </tr> 40 40 41 42 43 44 45 46 41 <tr class="prop"> 42 <td valign="top" class="name"><label for="description">Description:</label></td> 43 <td valign="top" class="value ${hasErrors(bean:authority,field:'description','errors')}"> 44 <input type="text" id="description" name="description" value="${authority.description?.encodeAsHTML()}"/> 45 </td> 46 </tr> 47 47 48 49 50 51 52 53 54 55 56 57 58 59 60 48 <tr class="prop"> 49 <td valign="top" class="name"><label for="persons">Persons:</label></td> 50 <td valign="top" class="value ${hasErrors(bean:authority,field:'persons','errors')}"> 51 <ul> 52 <g:each var="p" in="${authority.persons?}"> 53 <li>${p}</li> 54 </g:each> 55 </ul> 56 </td> 57 </tr> 58 </tbody> 59 </table> 60 </div> 61 61 62 63 64 65 62 <div class="buttons"> 63 <span class="button"><g:actionSubmit class="save" value="Update" /></span> 64 <span class="button"><g:actionSubmit class="delete" onclick="return confirm('Are you sure?');" value="Delete" /></span> 65 </div> 66 66 67 68 67 </g:form> 68 </div> 69 69 </body> -
trunk/grails-app/views/authority/list.gsp
r59 r150 1 1 <head> 2 3 2 <meta name="layout" content="main" /> 3 <title>Authority List</title> 4 4 </head> 5 5 6 6 <body> 7 7 8 9 10 11 8 <div class="nav"> 9 <span class="menuButton"><a class="home" href="${createLinkTo(dir:'')}">Home</a></span> 10 <span class="menuButton"><g:link class="create" action="create">New Authority</g:link></span> 11 </div> 12 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 13 <div class="body"> 14 <h1>Authority List</h1> 15 <g:if test="${flash.message}"> 16 <div class="message">${flash.message}</div> 17 </g:if> 18 <div class="list"> 19 <table> 20 <thead> 21 <tr> 22 <g:sortableColumn property="id" title="ID" /> 23 <g:sortableColumn property="authority" title="Authority Name" /> 24 <g:sortableColumn property="description" title="Description" /> 25 <th> </th> 26 </tr> 27 </thead> 28 <tbody> 29 <g:each in="${authorityList}" status="i" var="authority"> 30 <tr class="${(i % 2) == 0 ? 'odd' : 'even'}"> 31 <td>${authority.id}</td> 32 <td>${authority.authority?.encodeAsHTML()}</td> 33 <td>${authority.description?.encodeAsHTML()}</td> 34 <td class="actionButtons"> 35 <span class="actionButton"> 36 <g:link action="show" id="${authority.id}">Show</g:link> 37 </span> 38 </td> 39 </tr> 40 </g:each> 41 </tbody> 42 </table> 43 </div> 44 44 45 46 47 48 45 <div class="paginateButtons"> 46 <g:paginate total="${Authority.count()}" /> 47 </div> 48 </div> 49 49 </body> -
trunk/grails-app/views/authority/show.gsp
r59 r150 1 1 <head> 2 3 2 <meta name="layout" content="main" /> 3 <title>Show Authority</title> 4 4 </head> 5 5 6 6 <body> 7 7 8 9 10 11 12 8 <div class="nav"> 9 <span class="menuButton"><a class="home" href="${createLinkTo(dir:'')}">Home</a></span> 10 <span class="menuButton"><g:link class="list" action="list">Authority List</g:link></span> 11 <span class="menuButton"><g:link class="create" action="create">New Authority</g:link></span> 12 </div> 13 13 14 15 16 17 18 19 20 21 14 <div class="body"> 15 <h1>Show Authority</h1> 16 <g:if test="${flash.message}"> 17 <div class="message">${flash.message}</div> 18 </g:if> 19 <div class="dialog"> 20 <table> 21 <tbody> 22 22 23 24 25 26 23 <tr class="prop"> 24 <td valign="top" class="name">ID:</td> 25 <td valign="top" class="value">${authority.id}</td> 26 </tr> 27 27 28 29 30 31 28 <tr class="prop"> 29 <td valign="top" class="name">Authority Name:</td> 30 <td valign="top" class="value">${authority.authority}</td> 31 </tr> 32 32 33 34 35 36 33 <tr class="prop"> 34 <td valign="top" class="name">Description:</td> 35 <td valign="top" class="value">${authority.description}</td> 36 </tr> 37 37 38 39 40 41 38 <tr class="prop"> 39 <td valign="top" class="name">Persons:</td> 40 <td valign="top" class="value">${authority.persons}</td> 41 </tr> 42 42 43 44 45 43 </tbody> 44 </table> 45 </div> 46 46 47 48 49 50 51 52 53 47 <div class="buttons"> 48 <g:form> 49 <input type="hidden" name="id" value="${authority?.id}" /> 50 <span class="button"><g:actionSubmit class="edit" value="Edit" /></span> 51 <span class="button"><g:actionSubmit class="delete" onclick="return confirm('Are you sure?');" value="Delete" /></span> 52 </g:form> 53 </div> 54 54 55 55 </div> 56 56 57 57 </body>
Note: See TracChangeset
for help on using the changeset viewer.