Ignore:
Timestamp:
Apr 26, 2010, 2:31:00 PM (9 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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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>
Note: See TracChangeset for help on using the changeset viewer.