Ignore:
Timestamp:
Apr 26, 2010, 2:31:00 PM (13 years ago)
Author:
roberth
Message:

Updated the person, personrole and personaffiliation view templates in order to create a consistent example for simple tables.
Also updated bootstrap.groovy to contain several persons and roles

Location:
trunk/grails-app/views/person
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/grails-app/views/person/create.gsp

    r361 r379  
    99    </head>
    1010    <body>
    11         <div class="nav">
    12             <span class="menuButton"><a class="home" href="${createLink(uri: '/')}">Home</a></span>
    13             <span class="menuButton"><g:link class="list" action="list"><g:message code="default.list.label" args="[entityName]" /></g:link></span>
    14         </div>
    1511        <div class="body">
    1612            <h1><g:message code="default.create.label" args="[entityName]" /></h1>
     
    9692                </div>
    9793                <div class="buttons">
    98                     <span class="button"><g:submitButton name="create" class="save" value="${message(code: 'default.button.create.label', default: 'Create')}" /></span>
     94                   <span class="button"><g:submitButton name="create" class="save" value="${message(code: 'default.button.create.label', default: 'Create')}" /></span>
     95                   <span class="button"><g:link class="cancel" action="list">Cancel</g:link></span>
    9996                </div>
    10097            </g:form>
  • trunk/grails-app/views/person/edit.gsp

    r361 r379  
    99    </head>
    1010    <body>
    11         <div class="nav">
    12             <span class="menuButton"><a class="home" href="${createLink(uri: '/')}">Home</a></span>
    13             <span class="menuButton"><g:link class="list" action="list"><g:message code="default.list.label" args="[entityName]" /></g:link></span>
    14             <span class="menuButton"><g:link class="create" action="create"><g:message code="default.new.label" args="[entityName]" /></g:link></span>
    15         </div>
    1611        <div class="body">
    1712            <h1><g:message code="default.edit.label" args="[entityName]" /></h1>
     
    109104                <div class="buttons">
    110105                    <span class="button"><g:actionSubmit class="save" action="update" value="${message(code: 'default.button.update.label', default: 'Update')}" /></span>
    111                     <span class="button"><g:actionSubmit class="delete" action="delete" value="${message(code: 'default.button.delete.label', default: 'Delete')}" onclick="return confirm('${message(code: 'default.button.delete.confirm.message', default: 'Are you sure?')}');" /></span>
     106                    <span class="button"><g:actionSubmit class="cancel" action="show" value="Cancel" /></span>
    112107                </div>
    113108            </g:form>
  • trunk/grails-app/views/person/list.gsp

    r361 r379  
    99    </head>
    1010    <body>
    11         <div class="nav">
    12             <span class="menuButton"><a class="home" href="${createLink(uri: '/')}">Home</a></span>
    13             <span class="menuButton"><g:link class="create" action="create"><g:message code="default.new.label" args="[entityName]" /></g:link></span>
    14         </div>
    1511        <div class="body">
    16             <h1><g:message code="default.list.label" args="[entityName]" /></h1>
     12            <h1>Persons</h1>
    1713            <g:if test="${flash.message}">
    1814            <div class="message">${flash.message}</div>
     
    6561                <g:paginate total="${personInstanceTotal}" />
    6662            </div>
     63            <div class="buttons">
     64                <span class="button"><g:link class="create" action="create"><g:message code="default.new.label" args="[entityName]" /></g:link></span>
     65            </div>
     66
    6767        </div>
    6868    </body>
  • trunk/grails-app/views/person/show.gsp

    r361 r379  
    99    </head>
    1010    <body>
    11         <div class="nav">
    12             <span class="menuButton"><a class="home" href="${createLink(uri: '/')}">Home</a></span>
    13             <span class="menuButton"><g:link class="list" action="list"><g:message code="default.list.label" args="[entityName]" /></g:link></span>
    14             <span class="menuButton"><g:link class="create" action="create"><g:message code="default.new.label" args="[entityName]" /></g:link></span>
    15         </div>
    1611        <div class="body">
    1712            <h1><g:message code="default.show.label" args="[entityName]" /></h1>
     
    9489                    <span class="button"><g:actionSubmit class="edit" action="edit" value="${message(code: 'default.button.edit.label', default: 'Edit')}" /></span>
    9590                    <span class="button"><g:actionSubmit class="delete" action="delete" value="${message(code: 'default.button.delete.label', default: 'Delete')}" onclick="return confirm('${message(code: 'default.button.delete.confirm.message', default: 'Are you sure?')}');" /></span>
     91                    <span class="button"><g:link class="backToList" action="list">Back to list</g:link></span>
    9692                </g:form>
    9793            </div>
Note: See TracChangeset for help on using the changeset viewer.