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

Last change on this file since 1430 was 1430, checked in by work@…, 10 years ago
  • set keyword expansion
  • Property svn:keywords set to Rev Author Date
File size: 1.7 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>${templateField.type.name})
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.