Changeset 1678 for trunk/grails-app/views/simpleWizard
- Timestamp:
- Mar 29, 2011, 2:30:12 PM (11 years ago)
- Location:
- trunk/grails-app/views/simpleWizard/simpleWizard
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/grails-app/views/simpleWizard/simpleWizard/assays.gsp
r1608 r1678 8 8 </head> 9 9 <body> 10 <div class="simpleWizard ">10 <div class="simpleWizard assayspage"> 11 11 <h1>Assay</h1> 12 12 … … 46 46 47 47 <g:if test="${assay}"> 48 <g:if test="${assay.template?.description}"> 49 <div class="element"> 50 <div class="templatedescription"> 51 ${assay.template?.description?.encodeAsHTML()} 52 </div> 53 </div> 54 </g:if> 48 55 <af:templateElements ignore="externalassayid" entity="${assay}" /> 49 56 </g:if> -
trunk/grails-app/views/simpleWizard/simpleWizard/existingSamples.gsp
r1608 r1678 57 57 <g:if test="${entity.value}"> 58 58 <div class="column">${entity.key} template</div> 59 <af:templateColumnHeaders entity="${entity.value}" class="column" columnWidths="[Name:100]"/>59 <af:templateColumnHeaders includeEntities="${true}" entity="${entity.value}" class="column" columnWidths="[Name:100]"/> 60 60 </g:if> 61 61 </g:each> -
trunk/grails-app/views/simpleWizard/simpleWizard/missingFields.gsp
r1610 r1678 64 64 <g:each var="entity" in="${record}"> 65 65 <g:if test="${entity}"> 66 <af:templateColumnHeaders entity="${entity}" class="column" columnWidths="[Name:100]"/>66 <af:templateColumnHeaders includeEntities="${true}" entity="${entity}" class="column" columnWidths="[Name:100]"/> 67 67 </g:if> 68 68 </g:each> -
trunk/grails-app/views/simpleWizard/simpleWizard/samples.gsp
r1668 r1678 10 10 </head> 11 11 <body> 12 <div class="simpleWizard ">13 <h1>S amples</h1>12 <div class="simpleWizard samplespage"> 13 <h1>Study data</h1> 14 14 15 15 <g:if test="${flash.error}"> … … 29 29 <div id="samplesDialog"> 30 30 <span class="info"> 31 <span class="title">Import s ampledata</span>31 <span class="title">Import study data</span> 32 32 You can import your Excel data to the server by choosing a file from your local harddisk in the form below. The excel sheet should contain 33 33 data on the first sheet, and the sheet should contain one row with headers. … … 36 36 <table border="0"> 37 37 <tr> 38 <td width="100px"> 39 Choose your Excel file to import: 40 </td> 41 <td width="100px"> 42 <af:fileField name="importfile" value="${sampleForm?.importFile}"/> 43 </td> 38 <td width="30%"> 39 Choose your Excel file to import: 40 </td> 41 <td width="25%"> 42 <af:fileField name="importfile" value="${sampleForm?.importFile}"/> 43 </td> 44 <td width="40%"></td> 44 45 </tr> 45 46 <tr> … … 48 49 </td> 49 50 <td> 50 <g:select rel="template" entity="${encodedEntity.Sample}" name="sample_template_id" optionKey="id" optionValue="name" from="${templates.Sample}" value="${sampleForm?.templateId?.Sample}"/> 51 <% /* The select is written manually, since the grails select tag can't handle option titles */ %> 52 <select rel="template" entity="${encodedEntity.Sample}" onChange="showTemplateDescription( 'templateDescription_sample', $( 'option:selected', $(this) ).attr( 'title' ) ); " name="sample_template_id"> 53 <g:each in="${templates.Sample}" var="templ"> 54 <option 55 value="${templ.id}" 56 <g:if test="${templ.id == sampleForm?.templateId?.Sample}">selected="selected"</g:if> 57 title="${templ.description?.encodeAsHTML()}" 58 >${templ.name?.encodeAsHTML()}</option> 59 </g:each> 60 </select> 61 </td> 62 <td> 63 <% 64 def sampleTemplate = sampleForm?.template?.Sample ?: templates.Sample?.getAt(0) 65 def sampleTemplateDescription = sampleTemplate?.description 66 %> 67 <div class="templatedescription" id="templateDescription_sample" <g:if test="${!sampleTemplateDescription}">style="display: none;"</g:if>> 68 ${sampleTemplateDescription?.encodeAsHTML()} 69 </div> 51 70 </td> 52 71 </tr> … … 56 75 </td> 57 76 <td> 58 <g:select rel="template" entity="${encodedEntity.Subject}" name="subject_template_id" noSelection="${[null: '- no subject template -']}" optionKey="id" optionValue="name" from="${templates.Subject}" value="${sampleForm?.templateId?.Subject}" /> 77 <% /* The select is written manually, since the grails select tag can't handle option titles */ %> 78 <select rel="template" entity="${encodedEntity.Subject}" onChange="showTemplateDescription( 'templateDescription_subject', $( 'option:selected', $(this) ).attr( 'title' ) ); " name="subject_template_id"> 79 <option value="">- no subject template -</option> 80 <g:each in="${templates.Subject}" var="templ"> 81 <option 82 value="${templ.id}" 83 <g:if test="${templ.id == sampleForm?.templateId?.Subject}">selected="selected"</g:if> 84 title="${templ.description?.encodeAsHTML()}" 85 >${templ.name?.encodeAsHTML()}</option> 86 </g:each> 87 </select> 59 88 </td> 89 <td> 90 <% 91 def subjectTemplateDescription = sampleForm?.template?.Subject?.description 92 %> 93 <div class="templatedescription" id="templateDescription_subject" <g:if test="${!subjectTemplateDescription}">style="display: none;"</g:if>> 94 ${subjectTemplateDescription?.encodeAsHTML()} 95 </div> 96 </td> 60 97 </tr> 61 98 <tr> … … 64 101 </td> 65 102 <td> 66 <g:select rel="template" entity="${encodedEntity.Event}" name="event_template_id" noSelection="${[null: '- no event template -']}" optionKey="id" optionValue="name" from="${templates.Event}" value="${sampleForm?.templateId?.Event}" /> 103 <% /* The select is written manually, since the grails select tag can't handle option titles */ %> 104 <select rel="template" entity="${encodedEntity.Event}" onChange="showTemplateDescription( 'templateDescription_event', $( 'option:selected', $(this) ).attr( 'title' ) ); " name="event_template_id"> 105 <option value="">- no event template -</option> 106 <g:each in="${templates.Event}" var="templ"> 107 <option 108 value="${templ.id}" 109 <g:if test="${templ.id == sampleForm?.templateId?.Event}">selected="selected"</g:if> 110 title="${templ.description?.encodeAsHTML()}" 111 >${templ.name?.encodeAsHTML()}</option> 112 </g:each> 113 </select> 67 114 </td> 115 <td> 116 <% 117 def eventTemplateDescription = sampleForm?.template?.Event?.description 118 %> 119 <div class="templatedescription" id="templateDescription_event" <g:if test="${!eventTemplateDescription}">style="display: none;"</g:if>> 120 ${eventTemplateDescription?.encodeAsHTML()} 121 </div> 122 </td> 68 123 </tr> 69 124 <tr> … … 72 127 </td> 73 128 <td> 74 <g:select rel="template" entity="${encodedEntity.SamplingEvent}" name="samplingEvent_template_id" noSelection="${[null: '- no sampling event template -']}" optionKey="id" optionValue="name" from="${templates.SamplingEvent}" value="${sampleForm?.templateId?.SamplingEvent}" /> 129 <% /* The select is written manually, since the grails select tag can't handle option titles */ %> 130 <select rel="template" entity="${encodedEntity.SamplingEvent}" onChange="showTemplateDescription( 'templateDescription_samplingEvent', $( 'option:selected', $(this) ).attr( 'title' ) ); " name="samplingEvent_template_id"> 131 <option value="">- no sampling event template -</option> 132 <g:each in="${templates.SamplingEvent}" var="templ"> 133 <option 134 value="${templ.id}" 135 <g:if test="${templ.id == sampleForm?.templateId?.SamplingEvent}">selected="selected"</g:if> 136 title="${templ.description?.encodeAsHTML()}" 137 >${templ.name?.encodeAsHTML()}</option> 138 </g:each> 139 </select> 75 140 </td> 141 <td> 142 <% 143 def samplingEventTemplateDescription = sampleForm?.template?.SamplingEvent?.description 144 %> 145 <div class="templatedescription" id="templateDescription_samplingEvent" <g:if test="${!samplingEventTemplateDescription}">style="display: none;"</g:if>> 146 ${samplingEventTemplateDescription?.encodeAsHTML()} 147 </div> 148 </td> 76 149 </tr> 77 150 </table> -
trunk/grails-app/views/simpleWizard/simpleWizard/study.gsp
r1608 r1678 8 8 </head> 9 9 <body> 10 <div class="simpleWizard ">10 <div class="simpleWizard studypage"> 11 11 <h1>Study</h1> 12 12 … … 82 82 83 83 <g:if test="${study}"> 84 <g:if test="${study.template?.description}"> 85 <div class="element"> 86 <div class="templatedescription"> 87 ${study.template?.description?.encodeAsHTML()} 88 </div> 89 </div> 90 </g:if> 84 91 <af:templateElements ignore="published" entity="${study}" /> 85 92 </g:if>
Note: See TracChangeset
for help on using the changeset viewer.