Ignore:
Timestamp:
May 1, 2009, 3:27:41 PM (15 years ago)
Author:
gav
Message:

Run generate-all on all controllers and views except Person and Authority.
Extensive work on Asset domain and application now compiles and runs well.
Update BootStrap? to suite.

Location:
trunk/grails-app/views/period
Files:
4 edited
1 moved

Legend:

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

    r118 r122  
    55        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
    66        <meta name="layout" content="main" />
    7         <title>Create Frequency</title>         
     7        <title>Create Period</title>         
    88    </head>
    99    <body>
    1010        <div class="nav">
    1111            <span class="menuButton"><a class="home" href="${createLinkTo(dir:'')}">Home</a></span>
    12             <span class="menuButton"><g:link class="list" action="list">Frequency List</g:link></span>
     12            <span class="menuButton"><g:link class="list" action="list">Period List</g:link></span>
    1313        </div>
    1414        <div class="body">
    15             <h1>Create Frequency</h1>
     15            <h1>Create Period</h1>
    1616            <g:if test="${flash.message}">
    1717            <div class="message">${flash.message}</div>
    1818            </g:if>
    19             <g:hasErrors bean="${frequencyInstance}">
     19            <g:hasErrors bean="${periodInstance}">
    2020            <div class="errors">
    21                 <g:renderErrors bean="${frequencyInstance}" as="list" />
     21                <g:renderErrors bean="${periodInstance}" as="list" />
    2222            </div>
    2323            </g:hasErrors>
     
    2929                            <tr class="prop">
    3030                                <td valign="top" class="name">
    31                                     <label for="frequency">Frequency:</label>
     31                                    <label for="isActive">Is Active:</label>
    3232                                </td>
    33                                 <td valign="top" class="value ${hasErrors(bean:frequencyInstance,field:'frequency','errors')}">
    34                                     <input type="text" id="frequency" name="frequency" value="${fieldValue(bean:frequencyInstance,field:'frequency')}"/>
     33                                <td valign="top" class="value ${hasErrors(bean:periodInstance,field:'isActive','errors')}">
     34                                    <g:checkBox name="isActive" value="${periodInstance?.isActive}" ></g:checkBox>
    3535                                </td>
    3636                            </tr>
     
    3838                            <tr class="prop">
    3939                                <td valign="top" class="name">
    40                                     <label for="isActive">Is Active:</label>
     40                                    <label for="period">Period:</label>
    4141                                </td>
    42                                 <td valign="top" class="value ${hasErrors(bean:frequencyInstance,field:'isActive','errors')}">
    43                                     <g:checkBox name="isActive" value="${frequencyInstance?.isActive}" ></g:checkBox>
     42                                <td valign="top" class="value ${hasErrors(bean:periodInstance,field:'period','errors')}">
     43                                    <input type="text" id="period" name="period" value="${fieldValue(bean:periodInstance,field:'period')}"/>
    4444                                </td>
    4545                            </tr>
  • trunk/grails-app/views/period/edit.gsp

    r118 r122  
    55        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
    66        <meta name="layout" content="main" />
    7         <title>Edit Frequency</title>
     7        <title>Edit Period</title>
    88    </head>
    99    <body>
    1010        <div class="nav">
    1111            <span class="menuButton"><a class="home" href="${createLinkTo(dir:'')}">Home</a></span>
    12             <span class="menuButton"><g:link class="list" action="list">Frequency List</g:link></span>
    13             <span class="menuButton"><g:link class="create" action="create">New Frequency</g:link></span>
     12            <span class="menuButton"><g:link class="list" action="list">Period List</g:link></span>
     13            <span class="menuButton"><g:link class="create" action="create">New Period</g:link></span>
    1414        </div>
    1515        <div class="body">
    16             <h1>Edit Frequency</h1>
     16            <h1>Edit Period</h1>
    1717            <g:if test="${flash.message}">
    1818            <div class="message">${flash.message}</div>
    1919            </g:if>
    20             <g:hasErrors bean="${frequencyInstance}">
     20            <g:hasErrors bean="${periodInstance}">
    2121            <div class="errors">
    22                 <g:renderErrors bean="${frequencyInstance}" as="list" />
     22                <g:renderErrors bean="${periodInstance}" as="list" />
    2323            </div>
    2424            </g:hasErrors>
    2525            <g:form method="post" >
    26                 <input type="hidden" name="id" value="${frequencyInstance?.id}" />
    27                 <input type="hidden" name="version" value="${frequencyInstance?.version}" />
     26                <input type="hidden" name="id" value="${periodInstance?.id}" />
     27                <input type="hidden" name="version" value="${periodInstance?.version}" />
    2828                <div class="dialog">
    2929                    <table>
     
    3232                            <tr class="prop">
    3333                                <td valign="top" class="name">
    34                                     <label for="frequency">Frequency:</label>
     34                                    <label for="isActive">Is Active:</label>
    3535                                </td>
    36                                 <td valign="top" class="value ${hasErrors(bean:frequencyInstance,field:'frequency','errors')}">
    37                                     <input type="text" id="frequency" name="frequency" value="${fieldValue(bean:frequencyInstance,field:'frequency')}"/>
     36                                <td valign="top" class="value ${hasErrors(bean:periodInstance,field:'isActive','errors')}">
     37                                    <g:checkBox name="isActive" value="${periodInstance?.isActive}" ></g:checkBox>
    3838                                </td>
    3939                            </tr>
     
    4141                            <tr class="prop">
    4242                                <td valign="top" class="name">
    43                                     <label for="isActive">Is Active:</label>
     43                                    <label for="period">Period:</label>
    4444                                </td>
    45                                 <td valign="top" class="value ${hasErrors(bean:frequencyInstance,field:'isActive','errors')}">
    46                                     <g:checkBox name="isActive" value="${frequencyInstance?.isActive}" ></g:checkBox>
     45                                <td valign="top" class="value ${hasErrors(bean:periodInstance,field:'period','errors')}">
     46                                    <input type="text" id="period" name="period" value="${fieldValue(bean:periodInstance,field:'period')}"/>
    4747                                </td>
    4848                            </tr>
     
    5050                            <tr class="prop">
    5151                                <td valign="top" class="name">
    52                                     <label for="lifePlans">Life Plans:</label>
     52                                    <label for="recurringSchedules">Recurring Schedules:</label>
    5353                                </td>
    54                                 <td valign="top" class="value ${hasErrors(bean:frequencyInstance,field:'lifePlans','errors')}">
     54                                <td valign="top" class="value ${hasErrors(bean:periodInstance,field:'recurringSchedules','errors')}">
    5555                                   
    5656<ul>
    57 <g:each var="l" in="${frequencyInstance?.lifePlans?}">
    58     <li><g:link controller="lifePlan" action="show" id="${l.id}">${l?.encodeAsHTML()}</g:link></li>
     57<g:each var="r" in="${periodInstance?.recurringSchedules?}">
     58    <li><g:link controller="recurringSchedule" action="show" id="${r.id}">${r?.encodeAsHTML()}</g:link></li>
    5959</g:each>
    6060</ul>
    61 <g:link controller="lifePlan" params="['frequency.id':frequencyInstance?.id]" action="create">Add LifePlan</g:link>
     61<g:link controller="recurringSchedule" params="['period.id':periodInstance?.id]" action="create">Add RecurringSchedule</g:link>
    6262
    6363                                </td>
  • trunk/grails-app/views/period/list.gsp

    r118 r122  
    55        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
    66        <meta name="layout" content="main" />
    7         <title>Frequency List</title>
     7        <title>Period List</title>
    88    </head>
    99    <body>
    1010        <div class="nav">
    1111            <span class="menuButton"><a class="home" href="${createLinkTo(dir:'')}">Home</a></span>
    12             <span class="menuButton"><g:link class="create" action="create">New Frequency</g:link></span>
     12            <span class="menuButton"><g:link class="create" action="create">New Period</g:link></span>
    1313        </div>
    1414        <div class="body">
    15             <h1>Frequency List</h1>
     15            <h1>Period List</h1>
    1616            <g:if test="${flash.message}">
    1717            <div class="message">${flash.message}</div>
     
    2424                                <g:sortableColumn property="id" title="Id" />
    2525                       
    26                                 <g:sortableColumn property="frequency" title="Frequency" />
     26                                <g:sortableColumn property="isActive" title="Is Active" />
    2727                       
    28                                 <g:sortableColumn property="isActive" title="Is Active" />
     28                                <g:sortableColumn property="period" title="Period" />
    2929                       
    3030                        </tr>
    3131                    </thead>
    3232                    <tbody>
    33                     <g:each in="${frequencyInstanceList}" status="i" var="frequencyInstance">
     33                    <g:each in="${periodInstanceList}" status="i" var="periodInstance">
    3434                        <tr class="${(i % 2) == 0 ? 'odd' : 'even'}">
    3535                       
    36                             <td><g:link action="show" id="${frequencyInstance.id}">${fieldValue(bean:frequencyInstance, field:'id')}</g:link></td>
     36                            <td><g:link action="show" id="${periodInstance.id}">${fieldValue(bean:periodInstance, field:'id')}</g:link></td>
    3737                       
    38                             <td>${fieldValue(bean:frequencyInstance, field:'frequency')}</td>
     38                            <td>${fieldValue(bean:periodInstance, field:'isActive')}</td>
    3939                       
    40                             <td>${fieldValue(bean:frequencyInstance, field:'isActive')}</td>
     40                            <td>${fieldValue(bean:periodInstance, field:'period')}</td>
    4141                       
    4242                        </tr>
     
    4646            </div>
    4747            <div class="paginateButtons">
    48                 <g:paginate total="${frequencyInstanceTotal}" />
     48                <g:paginate total="${periodInstanceTotal}" />
    4949            </div>
    5050        </div>
  • trunk/grails-app/views/period/show.gsp

    r118 r122  
    55        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
    66        <meta name="layout" content="main" />
    7         <title>Show Frequency</title>
     7        <title>Show Period</title>
    88    </head>
    99    <body>
    1010        <div class="nav">
    1111            <span class="menuButton"><a class="home" href="${createLinkTo(dir:'')}">Home</a></span>
    12             <span class="menuButton"><g:link class="list" action="list">Frequency List</g:link></span>
    13             <span class="menuButton"><g:link class="create" action="create">New Frequency</g:link></span>
     12            <span class="menuButton"><g:link class="list" action="list">Period List</g:link></span>
     13            <span class="menuButton"><g:link class="create" action="create">New Period</g:link></span>
    1414        </div>
    1515        <div class="body">
    16             <h1>Show Frequency</h1>
     16            <h1>Show Period</h1>
    1717            <g:if test="${flash.message}">
    1818            <div class="message">${flash.message}</div>
     
    2626                            <td valign="top" class="name">Id:</td>
    2727                           
    28                             <td valign="top" class="value">${fieldValue(bean:frequencyInstance, field:'id')}</td>
    29                            
    30                         </tr>
    31                    
    32                         <tr class="prop">
    33                             <td valign="top" class="name">Frequency:</td>
    34                            
    35                             <td valign="top" class="value">${fieldValue(bean:frequencyInstance, field:'frequency')}</td>
     28                            <td valign="top" class="value">${fieldValue(bean:periodInstance, field:'id')}</td>
    3629                           
    3730                        </tr>
     
    4033                            <td valign="top" class="name">Is Active:</td>
    4134                           
    42                             <td valign="top" class="value">${fieldValue(bean:frequencyInstance, field:'isActive')}</td>
     35                            <td valign="top" class="value">${fieldValue(bean:periodInstance, field:'isActive')}</td>
    4336                           
    4437                        </tr>
    4538                   
    4639                        <tr class="prop">
    47                             <td valign="top" class="name">Life Plans:</td>
     40                            <td valign="top" class="name">Period:</td>
     41                           
     42                            <td valign="top" class="value">${fieldValue(bean:periodInstance, field:'period')}</td>
     43                           
     44                        </tr>
     45                   
     46                        <tr class="prop">
     47                            <td valign="top" class="name">Recurring Schedules:</td>
    4848                           
    4949                            <td  valign="top" style="text-align:left;" class="value">
    5050                                <ul>
    51                                 <g:each var="l" in="${frequencyInstance.lifePlans}">
    52                                     <li><g:link controller="lifePlan" action="show" id="${l.id}">${l?.encodeAsHTML()}</g:link></li>
     51                                <g:each var="r" in="${periodInstance.recurringSchedules}">
     52                                    <li><g:link controller="recurringSchedule" action="show" id="${r.id}">${r?.encodeAsHTML()}</g:link></li>
    5353                                </g:each>
    5454                                </ul>
     
    6262            <div class="buttons">
    6363                <g:form>
    64                     <input type="hidden" name="id" value="${frequencyInstance?.id}" />
     64                    <input type="hidden" name="id" value="${periodInstance?.id}" />
    6565                    <span class="button"><g:actionSubmit class="edit" value="Edit" /></span>
    6666                    <span class="button"><g:actionSubmit class="delete" onclick="return confirm('Are you sure?');" value="Delete" /></span>
Note: See TracChangeset for help on using the changeset viewer.