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:
1 edited
1 moved

Legend:

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