Ignore:
Timestamp:
Mar 21, 2010, 2:17:51 PM (9 years ago)
Author:
jahn
Message:

Event's create and edit action have been tested and are now working.

Also, the old problem of adding Samples has been addressed. When a new event is created as a SamplingEvent?, no new samples can be added directly. The reason for this is, that the event is not yet assigned to any Subject, and thus the non nullable subject field of a new sample (belonging to the new event) cannot be filled.
Similarly, when a SamplingEvent? event is edited, new samples can only be added, if the event already is assigned to belong to a subject. New samples are always added to the same subject as the first (random) sample belonging to the SamplingEvent?.

However, there are still open questions:

(1) Should the sample also be assigned to the samples of its subject's Study?

(2) Should a sample also be assigned, if there are no samples assigned yet, but there is a subject assigned to this event?

(3) Should the user be allowed to chose to assign a subject if the event is assigned to a Study that contains multiple subjects?

File:
1 edited

Legend:

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

    r264 r288  
    178178
    179179
    180                             <!-- this part changes dynamically on select -->
     180
     181
    181182
    182183                            <tbody id="preview">
     184
     185                                <!-- this part changes dynamically on select -->
    183186                                <g:include action='showPartial' controller='eventDescription' params="[protocolid:protocols[0].id]" id="${eventInstance.id}" />
     187
     188
     189                                <!-- show checkbox when creating events -->
     190                                <g:if test="${createNew}">
     191                                <tr class="prop">
     192                                <td valign="top" class="name">
     193                                    <label for="endTime"><g:message code="event.endTime.label" default="This is a Sampling event" /></label>
     194                                </td>
     195                                <td valign="top" class="name">
     196                                    <g:checkBox name="isSamplingEvent" value="${false}" />
     197                                </td>
     198                                </tr>
     199                                </g:if>
     200
    184201                            </tbody>
     202
     203
     204
    185205
    186206
Note: See TracChangeset for help on using the changeset viewer.