Ignore:
Timestamp:
Jan 29, 2010, 6:08:49 PM (9 years ago)
Author:
jahn
Message:

Updated editing of Events. RemoteFunction? calls work. Still needs cleaning up (but its Friday evening).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/grails-app/views/event/edit.gsp

    r119 r150  
     1<html>
    12
    2 
    3 <html>
    43<head>
    5         <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    6         <meta name="layout" content="main" />
    7         <g:set var="entityName" value="${message(code: 'event.label', default: 'Event')}" />
    8         <title><g:message code="default.create.label" args="[entityName]" /></title>
    9         <g:render template="../common/jquerysetup"/>
    10         <g:render template="../common/jqueryuisetup"/>
    11         <g:render template="../common/jquerytmsetup"/>
     4      <meta name="layout" content="main" />
     5      <g:set var="entityName" value="${message(code: 'event.label', default: 'Event')}" />
     6      <g:setProvider library="jquery"/>
     7      <script src="${createLinkTo(dir: 'js', file: 'timepicker-0.2.1.js')}" type="text/javascript"></script>
    128</head>
    139
    1410
    15 
    1611<body>
    17 
    18         <div class="nav">
    19             <span class="menuButton"><a class="home" href="${createLink(uri: '/')}">Home</a></span>
    20             <span class="menuButton"><g:link class="list" action="list"><g:message code="default.list.label" args="[entityName]" /></g:link></span>
    21         </div>
    2212
    2313
     
    2717
    2818            <g:if test="${flash.message}">
    29             <div class="message">${flash.message}</div>
     19                <div class="message">${flash.message}</div>
    3020            </g:if>
    3121            <g:hasErrors bean="${eventInstance}">
    32                     <div class="errors"> <g:renderErrors bean="${eventInstance}" as="list" /> </div>
     22                <div class="errors"> <g:renderErrors bean="${eventInstance}" as="list" /> </div>
    3323            </g:hasErrors>
    3424
     
    4737                                </td>
    4838                                <td valign="top" class="value" >
    49                                     <g:select id="subject" name="subject.id" from="${dbnp.studycapturing.Subject.list()}" optionKey="id" optionValue="name" value="${eventInstance?.subject?.id}"  onchange="displayVals()" />
     39                                    <g:select id="subject" name="subject.id" from="${dbnp.studycapturing.Subject.list()}" optionKey="id" optionValue="name" value="${eventInstance?.subject?.id}" />
    5040                                </td>
    5141                            </tr>
     
    8575                            </tr>
    8676
    87 
    88 
    89                             <g:render template="../common/eventDescriptionTableRows" model="${[description:description]}"/>
     77                            <g:render template="../common/eventDescriptionTableRows" model="${[description:description, event:event]}"/>
    9078
    9179
    9280                        </tbody>
     81
     82
     83
     84                             <tbody id="samplePartial"> </tbody>
     85
     86
     87
    9388                    </table>
    9489                </div>
Note: See TracChangeset for help on using the changeset viewer.