- Timestamp:
- Dec 15, 2010, 1:20:43 PM (13 years ago)
- Location:
- trunk
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/grails-app/controllers/dbnp/studycapturing/TemplateController.groovy
r1257 r1269 101 101 def templateData = templates.find { template -> template.key == id.toLong() } 102 102 def importTemplate = templateData?.template 103 println id + ": " + templateData104 103 105 104 if( !importTemplate ) { -
trunk/grails-app/domain/dbnp/studycapturing/Template.groovy
r1264 r1269 141 141 142 142 // Check all template fields 143 if( otherTemplate.fields?.size() != this.fields?.size() ) 143 def size1 = otherTemplate.fields?.size() ?: 0 144 def size2 = otherTemplate.fields?.size() ?: 0 145 if( size1 != size2 ) { 144 146 return false 147 } 145 148 146 149 if( otherTemplate.fields != null && this.fields != null ) { -
trunk/grails-app/views/template/handleImportedFile.gsp
r1257 r1269 29 29 </td> 30 30 <td> 31 <g:if test="${templateData.template.fields?.size() > 0}"> 31 32 <ol class="fields"> 32 33 <g:each in="${templateData.template.fields}" var="field"> … … 34 35 </g:each> 35 36 </ol> 37 </g:if> 38 <g:else> 39 (no fields) 40 </g:else> 36 41 </td> 37 42 <td> -
trunk/grails-app/views/template/xml.gsp
r1263 r1269 35 35 <g:each in="${field.listEntries}" var="listEntry"> 36 36 <listItem> 37 < g:if test="${listEntry}"><name>${listEntry.name?.encodeAsSimpleXML()}</name></g:if>37 <name><g:if test="${listEntry}">${listEntry.name?.encodeAsSimpleXML()}</g:if></name> 38 38 </listItem> 39 39 </g:each> -
trunk/web-app/css/templateEditor.css
r1257 r1269 137 137 /* Importer */ 138 138 #importTemplates h3 { margin-top: 0; } 139 #importTemplates ol.fields { margin-top: 0; } 139 #importTemplates ol { margin-left: 0; padding-left: 0; } 140 #importTemplates ol.fields { margin-left: 25px; margin-top: 0; } 141 #importTemplates ul { margin-left: 0px; padding-left: 15px; } 142 #importTemplate li { margin-left: 0; padding-left: 0; } 140 143 #importTemplates .otherTemplateName { display: none; } 141 144 #importTemplates .error { color: #AA0000; }
Note: See TracChangeset
for help on using the changeset viewer.