Ignore:
Timestamp:
Oct 9, 2009, 10:11:43 PM (15 years ago)
Author:
gav
Message:

Add params.message to Person create and edit views.
Code format to 4 spaces, no tabs.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/grails-app/views/authority/list.gsp

    r59 r150  
    11<head>
    2         <meta name="layout" content="main" />
    3         <title>Authority List</title>
     2    <meta name="layout" content="main" />
     3    <title>Authority List</title>
    44</head>
    55
    66<body>
    77
    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>
     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>
    1212
    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>&nbsp;</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>
     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>&nbsp;</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>
    4444
    45                 <div class="paginateButtons">
    46                         <g:paginate total="${Authority.count()}" />
    47                 </div>
    48         </div>
     45        <div class="paginateButtons">
     46            <g:paginate total="${Authority.count()}" />
     47        </div>
     48    </div>
    4949</body>
Note: See TracChangeset for help on using the changeset viewer.