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/create.gsp

    r59 r150  
    11<head>
    2         <meta name="layout" content="main" />
    3         <title>Create Authority</title>
     2    <meta name="layout" content="main" />
     3    <title>Create Authority</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="list" action="list">Authority List</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="list" action="list">Authority List</g:link></span>
     11    </div>
    1212
    13         <div class="body">
     13    <div class="body">
    1414
    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>
     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>
    2424
    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>
     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>
    3535
    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>
     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>
    4545
    46                 <div class="buttons">
    47                         <span class="button"><input class="save" type="submit" value="Create" /></span>
    48                 </div>
    49                 </g:form>
    50         </div>
     46        <div class="buttons">
     47            <span class="button"><input class="save" type="submit" value="Create" /></span>
     48        </div>
     49        </g:form>
     50    </div>
    5151</body>
Note: See TracChangeset for help on using the changeset viewer.