Changeset 1136 for trunk/grails-app
- Timestamp:
- Nov 15, 2010, 11:06:45 AM (13 years ago)
- Location:
- trunk/grails-app/views/templateEditor
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/grails-app/views/templateEditor/elements/_liFieldSelected.gsp
r980 r1136 1 1 <span class="listButtons"> 2 <img onClick="showTemplateFieldForm( 'templateField_' + ${templateField.id}); this.blur(); return false;" src="${createLinkTo( dir: 'images/icons', file: 'application_edit.png', plugin: 'famfamfam' )}" alt="Show template field properties" title="Show template field properties"> 3 2 4 <g:if test="${template.inUse()}"> 3 5 <img class="disabled" src="${createLinkTo( dir: 'images/icons', file: 'delete.png', plugin: 'famfamfam' )}" alt="This field can not be removed from the template, as the template is still in use." title="This field can not be removed from the template, as the template is still in use."> … … 11 13 <b>${templateField.name}</b> 12 14 (<g:if test="${templateField.unit}">${templateField.unit}, </g:if><g:render template="elements/${templateField.type.toString().toLowerCase().replaceAll(/ /,'_')}" model="[templateField: templateField]"/>) 13 14 15 16 <form class="templateField_form" id="templateField_${templateField.id}_form"> 17 <g:render template="elements/disabledFieldForm" model="['templateField': templateField, 'ontologies': ontologies, 'fieldTypes': fieldTypes]"/> 18 <div class="templateFieldButtons"> 19 <input type="button" value="Close" onClick="hideTemplateFieldForm( ${templateField.id} );"> 20 </div> 21 </form> -
trunk/grails-app/views/templateEditor/template.gsp
r1077 r1136 47 47 remove: removeTemplateFieldEvent, 48 48 start: savePosition 49 }) .disableSelection();49 }); 50 50 51 51 … … 55 55 connectWith: '.templateFields', 56 56 start: savePosition 57 }).disableSelection(); 58 57 }); 59 58 60 59 $("#ontologyDialog").dialog({ … … 96 95 <% /* NB: this empty field should always be the last in the list! */ %> 97 96 <li class="empty ui-state-default" <g:if test="${template.fields?.size() > 0 }">style='display: none;'</g:if>>This template does not yet contain any fields. Drag a field to this list or use the 'Add field button'.</li> 97 <input type="text" name="xxxas"> 98 98 </ol> 99 99 </div>
Note: See TracChangeset
for help on using the changeset viewer.