Changeset 122 for trunk/grails-app/views/period
- Timestamp:
- May 1, 2009, 3:27:41 PM (16 years ago)
- Location:
- trunk/grails-app/views/period
- Files:
-
- 4 edited
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
trunk/grails-app/views/period/create.gsp
r118 r122 5 5 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> 6 6 <meta name="layout" content="main" /> 7 <title>Create Frequency</title>7 <title>Create Period</title> 8 8 </head> 9 9 <body> 10 10 <div class="nav"> 11 11 <span class="menuButton"><a class="home" href="${createLinkTo(dir:'')}">Home</a></span> 12 <span class="menuButton"><g:link class="list" action="list"> FrequencyList</g:link></span>12 <span class="menuButton"><g:link class="list" action="list">Period List</g:link></span> 13 13 </div> 14 14 <div class="body"> 15 <h1>Create Frequency</h1>15 <h1>Create Period</h1> 16 16 <g:if test="${flash.message}"> 17 17 <div class="message">${flash.message}</div> 18 18 </g:if> 19 <g:hasErrors bean="${ frequencyInstance}">19 <g:hasErrors bean="${periodInstance}"> 20 20 <div class="errors"> 21 <g:renderErrors bean="${ frequencyInstance}" as="list" />21 <g:renderErrors bean="${periodInstance}" as="list" /> 22 22 </div> 23 23 </g:hasErrors> … … 29 29 <tr class="prop"> 30 30 <td valign="top" class="name"> 31 <label for=" frequency">Frequency:</label>31 <label for="isActive">Is Active:</label> 32 32 </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> 35 35 </td> 36 36 </tr> … … 38 38 <tr class="prop"> 39 39 <td valign="top" class="name"> 40 <label for=" isActive">Is Active:</label>40 <label for="period">Period:</label> 41 41 </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')}"/> 44 44 </td> 45 45 </tr> -
trunk/grails-app/views/period/edit.gsp
r118 r122 5 5 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> 6 6 <meta name="layout" content="main" /> 7 <title>Edit Frequency</title>7 <title>Edit Period</title> 8 8 </head> 9 9 <body> 10 10 <div class="nav"> 11 11 <span class="menuButton"><a class="home" href="${createLinkTo(dir:'')}">Home</a></span> 12 <span class="menuButton"><g:link class="list" action="list"> FrequencyList</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> 14 14 </div> 15 15 <div class="body"> 16 <h1>Edit Frequency</h1>16 <h1>Edit Period</h1> 17 17 <g:if test="${flash.message}"> 18 18 <div class="message">${flash.message}</div> 19 19 </g:if> 20 <g:hasErrors bean="${ frequencyInstance}">20 <g:hasErrors bean="${periodInstance}"> 21 21 <div class="errors"> 22 <g:renderErrors bean="${ frequencyInstance}" as="list" />22 <g:renderErrors bean="${periodInstance}" as="list" /> 23 23 </div> 24 24 </g:hasErrors> 25 25 <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}" /> 28 28 <div class="dialog"> 29 29 <table> … … 32 32 <tr class="prop"> 33 33 <td valign="top" class="name"> 34 <label for=" frequency">Frequency:</label>34 <label for="isActive">Is Active:</label> 35 35 </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> 38 38 </td> 39 39 </tr> … … 41 41 <tr class="prop"> 42 42 <td valign="top" class="name"> 43 <label for=" isActive">Is Active:</label>43 <label for="period">Period:</label> 44 44 </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')}"/> 47 47 </td> 48 48 </tr> … … 50 50 <tr class="prop"> 51 51 <td valign="top" class="name"> 52 <label for=" lifePlans">Life Plans:</label>52 <label for="recurringSchedules">Recurring Schedules:</label> 53 53 </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')}"> 55 55 56 56 <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> 59 59 </g:each> 60 60 </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> 62 62 63 63 </td> -
trunk/grails-app/views/period/list.gsp
r118 r122 5 5 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> 6 6 <meta name="layout" content="main" /> 7 <title> FrequencyList</title>7 <title>Period List</title> 8 8 </head> 9 9 <body> 10 10 <div class="nav"> 11 11 <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> 13 13 </div> 14 14 <div class="body"> 15 <h1> FrequencyList</h1>15 <h1>Period List</h1> 16 16 <g:if test="${flash.message}"> 17 17 <div class="message">${flash.message}</div> … … 24 24 <g:sortableColumn property="id" title="Id" /> 25 25 26 <g:sortableColumn property=" frequency" title="Frequency" />26 <g:sortableColumn property="isActive" title="Is Active" /> 27 27 28 <g:sortableColumn property=" isActive" title="Is Active" />28 <g:sortableColumn property="period" title="Period" /> 29 29 30 30 </tr> 31 31 </thead> 32 32 <tbody> 33 <g:each in="${ frequencyInstanceList}" status="i" var="frequencyInstance">33 <g:each in="${periodInstanceList}" status="i" var="periodInstance"> 34 34 <tr class="${(i % 2) == 0 ? 'odd' : 'even'}"> 35 35 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> 37 37 38 <td>${fieldValue(bean: frequencyInstance, field:'frequency')}</td>38 <td>${fieldValue(bean:periodInstance, field:'isActive')}</td> 39 39 40 <td>${fieldValue(bean: frequencyInstance, field:'isActive')}</td>40 <td>${fieldValue(bean:periodInstance, field:'period')}</td> 41 41 42 42 </tr> … … 46 46 </div> 47 47 <div class="paginateButtons"> 48 <g:paginate total="${ frequencyInstanceTotal}" />48 <g:paginate total="${periodInstanceTotal}" /> 49 49 </div> 50 50 </div> -
trunk/grails-app/views/period/show.gsp
r118 r122 5 5 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> 6 6 <meta name="layout" content="main" /> 7 <title>Show Frequency</title>7 <title>Show Period</title> 8 8 </head> 9 9 <body> 10 10 <div class="nav"> 11 11 <span class="menuButton"><a class="home" href="${createLinkTo(dir:'')}">Home</a></span> 12 <span class="menuButton"><g:link class="list" action="list"> FrequencyList</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> 14 14 </div> 15 15 <div class="body"> 16 <h1>Show Frequency</h1>16 <h1>Show Period</h1> 17 17 <g:if test="${flash.message}"> 18 18 <div class="message">${flash.message}</div> … … 26 26 <td valign="top" class="name">Id:</td> 27 27 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> 36 29 37 30 </tr> … … 40 33 <td valign="top" class="name">Is Active:</td> 41 34 42 <td valign="top" class="value">${fieldValue(bean: frequencyInstance, field:'isActive')}</td>35 <td valign="top" class="value">${fieldValue(bean:periodInstance, field:'isActive')}</td> 43 36 44 37 </tr> 45 38 46 39 <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> 48 48 49 49 <td valign="top" style="text-align:left;" class="value"> 50 50 <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> 53 53 </g:each> 54 54 </ul> … … 62 62 <div class="buttons"> 63 63 <g:form> 64 <input type="hidden" name="id" value="${ frequencyInstance?.id}" />64 <input type="hidden" name="id" value="${periodInstance?.id}" /> 65 65 <span class="button"><g:actionSubmit class="edit" value="Edit" /></span> 66 66 <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.