source: trunk/grails-app/views/templateEditor/elements/_liFieldInUse.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.8 KB
Line 
1<g:set var="numUses" value="${templateField.numUses()}" />
2<span class="listButtons">
3  <img onClick="showTemplateFieldForm( 'templateField_' + ${templateField.id}); this.blur(); return false;" src="${resource( dir: 'images/icons', file: 'application_edit.png', plugin: 'famfamfam' )}" alt="Edit template field properties" title="Edit template field properties">
4  <img class="disabled" src="${resource( dir: 'images/icons', file: 'delete.png', plugin: 'famfamfam' )}" alt="Deleting this field is not possible. Field is used in ${numUses} templates." title="Deleting this field is not possible. Field is used in ${numUses} templates.">
5  <img onClick="addTemplateField( ${templateField.id}, null, true );" src="${resource( dir: 'images/icons', file: 'add.png', plugin: 'famfamfam' )}" alt="Add field to template" title="Add field to template">
6</span>
7
8    <b>${templateField.name}</b>
9    (<g:if test="${templateField.unit}">${templateField.unit}, </g:if>${templateField.type.name})
10   
11<form class="templateField_form" id="templateField_${templateField.id}_form" action="updateField">
12  <g:if test="${ templateField?.type.toString() == 'STRINGLIST' }">
13    <p class="noEditsPossible">You can only add or remove list items that are not used. Field is used in ${numUses} template(s).</p>
14  </g:if>
15  <g:else>
16    <g:if test="${templateField?.type.toString() == 'ONTOLOGYTERM' }">
17    <p class="noEditsPossible">You can only add or remove ontologies that are not used. Field is used in ${numUses} template(s).</p>
18        </g:if>
19        <g:else>
20          <p class="noEditsPossible">Editing not possible. Field is used in ${numUses} template(s).</p>
21        </g:else>
22  </g:else>
23  <g:render template="elements/disabledFieldForm" model="['templateField': templateField, 'ontologies': ontologies, 'fieldTypes': fieldTypes]"/>
24</form>
25
Note: See TracBrowser for help on using the repository browser.