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

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

The templateeditor is now capable of adding new items to a stringlist (that is in use), or adding new ontologies to a ontologyterm field that is in use. See ticket #74

  • Property svn:keywords set to Author Date Rev
File size: 1.8 KB
Line 
1<span class="listButtons">
2  <img onClick="showTemplateFieldForm( 'templateField_' + ${templateField.id}); this.blur(); return false;" src="${resource( dir: 'images/icons', file: 'application_edit.png', plugin: 'famfamfam' )}" alt="Show template field properties" title="Show template field properties">
3  <g:if test="${templateField.isFilledInTemplate(template)}">
4        <img class="disabled" src="${resource( dir: 'images/icons', file: 'delete.png', plugin: 'famfamfam' )}" alt="This field can not be removed from the template, as this field is already in use." title="This field can not be removed from the template, as this field is already in use.">
5  </g:if>
6  <g:else>
7        <img onClick="removeTemplateField( ${templateField.id} ); moveFieldListItem( ${templateField.id}, '#availableTemplateFields' );" src="${resource( dir: 'images/icons', file: 'delete.png', plugin: 'famfamfam' )}" alt="Remove this template field from the template" title="Remove this template field from the template">
8  </g:else>
9</span>
10
11  <span class="ui-icon ui-icon-arrowthick-2-n-s"></span>
12  <b>${templateField.name}</b>
13  (<g:if test="${templateField.unit}">${templateField.unit}, </g:if><g:render template="elements/${templateField.type.toString().toLowerCase().replaceAll(/ /,'_')}" model="[templateField: templateField]"/>)
14
15  <form class="templateField_form" id="templateField_${templateField.id}_form" action="updateField">
16          <g:if test="${templateField.isEditable()}">
17                <g:render template="elements/fieldForm" model="['templateField': templateField, 'template': template, 'is_selected': true, 'ontologies': ontologies, 'fieldTypes': fieldTypes]" />
18          </g:if>
19        <g:else>
20                <g:render template="elements/disabledFieldForm" model="['templateField': templateField, 'template': template, 'is_selected': true, 'ontologies': ontologies, 'fieldTypes': fieldTypes]"/>
21        </g:else>
22  </form>
Note: See TracBrowser for help on using the repository browser.