Ignore:
Timestamp:
Apr 26, 2010, 2:31:00 PM (11 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/personRole
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/grails-app/views/personRole/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="['Role']" /></g:link></span>
    14         </div>
     11
    1512        <div class="body">
    1613            <h1><g:message code="default.create.label" args="['Role']" /></h1>
     
    4138                </div>
    4239                <div class="buttons">
    43                     <span class="button"><g:submitButton name="create" class="save" value="${message(code: 'default.button.create.label', default: 'Create')}" /></span>
     40                   <span class="button"><g:submitButton name="create" class="save" value="${message(code: 'default.button.create.label', default: 'Create')}" /></span>
     41                   <span class="button"><g:link class="cancel" action="list">Cancel</g:link></span>
    4442                </div>
    4543            </g:form>
  • trunk/grails-app/views/personRole/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="['Role']" /></g:link></span>
    14             <span class="menuButton"><g:link class="create" action="create"><g:message code="default.new.label" args="['Role']" /></g:link></span>
    15         </div>
     11
    1612        <div class="body">
    1713            <h1><g:message code="default.edit.label" args="['Role']" /></h1>
     
    4541                <div class="buttons">
    4642                    <span class="button"><g:actionSubmit class="save" action="update" value="${message(code: 'default.button.update.label', default: 'Update')}" /></span>
    47                     <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>
     43                    <span class="button"><g:actionSubmit class="cancel" action="list" value="Cancel" /></span>
    4844                </div>
    4945            </g:form>
  • trunk/grails-app/views/personRole/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="['Role']" /></g:link></span>
    14         </div>
     11
    1512        <div class="body">
    1613            <h1><g:message code="default.list.label" args="['Role']" /></h1>
     
    2219                    <thead>
    2320                        <tr>
    24                        
    2521                            <g:sortableColumn property="name" title="${message(code: 'personRole.name.label', default: 'Name')}" />
    26                        
     22                            <th></th>
    2723                        </tr>
    2824                    </thead>
     
    3127                        <tr class="${(i % 2) == 0 ? 'odd' : 'even'}">
    3228                       
    33                             <td><g:link action="show" id="${personRoleInstance.id}">${fieldValue(bean: personRoleInstance, field: "name")}</g:link></td>
    34                        
     29                            <td>${fieldValue(bean: personRoleInstance, field: "name")}</td>
     30                            <td class="buttons">
     31                              <g:form>
     32                                  <g:hiddenField name="id" value="${personRoleInstance?.id}" />
     33                                  <span class="button"><g:actionSubmit class="edit" action="edit" value="${message(code: 'default.button.edit.label', default: 'Edit')}" /></span>
     34                                  <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>
     35                              </g:form>
     36                            </td>
    3537                        </tr>
    3638                    </g:each>
     
    4143                <g:paginate total="${personRoleInstanceTotal}" />
    4244            </div>
     45            <div class="buttons">
     46                <span class="button"><g:link class="create" action="create"><g:message code="default.new.label" args="[entityName]" /></g:link></span>
     47            </div>
    4348        </div>
    4449    </body>
  • trunk/grails-app/views/personRole/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="['Role']" /></g:link></span>
    14             <span class="menuButton"><g:link class="create" action="create"><g:message code="default.new.label" args="['Role']" /></g:link></span>
    15         </div>
     11   
    1612        <div class="body">
    1713            <h1><g:message code="default.show.label" args="['Role']" /></h1>
     
    3834                    <span class="button"><g:actionSubmit class="edit" action="edit" value="${message(code: 'default.button.edit.label', default: 'Edit')}" /></span>
    3935                    <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>
     36                    <span class="button"><g:link class="backToList" action="list">Back to list</g:link></span>
    4037                </g:form>
    4138            </div>
Note: See TracChangeset for help on using the changeset viewer.