source: trunk/grails-app/views/templateEditor/elements/_liFieldSelected.gsp @ 1136

Last change on this file since 1136 was 1136, checked in by robert@…, 11 years ago

Improved template editor to show field details when a field is selected for use in a template. See ticket 179

  • Property svn:keywords set to Author Date Rev
File size: 1.6 KB
Line 
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
4  <g:if test="${template.inUse()}">
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.">
6  </g:if>
7  <g:else>
8        <img onClick="removeTemplateField( ${templateField.id} ); moveFieldListItem( ${templateField.id}, '#availableTemplateFields' );" src="${createLinkTo( dir: 'images/icons', file: 'delete.png', plugin: 'famfamfam' )}" alt="Remove this template field from the template" title="Remove this template field from the template">
9  </g:else>
10</span>
11
12  <span class="ui-icon ui-icon-arrowthick-2-n-s"></span>
13  <b>${templateField.name}</b>
14  (<g:if test="${templateField.unit}">${templateField.unit}, </g:if><g:render template="elements/${templateField.type.toString().toLowerCase().replaceAll(/ /,'_')}" model="[templateField: templateField]"/>)
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>
Note: See TracBrowser for help on using the repository browser.