source: trunk/grails-app/views/templateEditor/elements/_liFieldNotInUse.gsp @ 959

Last change on this file since 959 was 959, checked in by j.a.m.wesbeek@…, 10 years ago
  • set keyword expansion
  • Property svn:keywords set to Author Date Rev
File size: 1.5 KB
RevLine 
[556]1<span class="listButtons">
2  <img onClick="showTemplateFieldForm( 'templateField_' + ${templateField.id}); this.blur(); return false;" src="${createLinkTo( dir: 'images', file: 'icons/famfamfam/application_edit.png')}" alt="Edit template field properties" title="Edit template field properties">
3  <img onClick="if( confirm( 'Are you sure?' ) ) { deleteTemplateField( ${templateField.id} ); }" src="${createLinkTo( dir: 'images', file: 'icons/famfamfam/delete.png')}" alt="Delete this template field" title="Delete this template field">
[558]4  <img onClick="addTemplateField( ${templateField.id}, null, true );" src="${createLinkTo( dir: 'images', file: 'icons/famfamfam/add.png')}" alt="Add field to template" title="Add field to template">
[556]5</span>
[544]6
[556]7<b>${templateField.name}</b>
8(<g:if test="${templateField.unit}">${templateField.unit}, </g:if><g:render template="elements/${templateField.type.toString().toLowerCase().replaceAll(/ /,'_')}" model="[templateField: templateField]" />)
9
10<form class="templateField_form" id="templateField_${templateField.id}_form" action="updateField">
[544]11        <g:hiddenField name="id" value="${templateField.id}" />
12        <g:hiddenField name="version" value="${templateField.version}" />
[558]13        <g:render template="elements/fieldForm" model="['templateField': templateField, 'ontologies': ontologies, 'fieldTypes': fieldTypes]"/>
[544]14        <div class="templateFieldButtons">
15                <input type="button" value="Save" onClick="updateTemplateField( ${templateField.id} );">
16                <input type="button" value="Close" onClick="hideTemplateFieldForm( ${templateField.id} );">
17        </div>
18</form>
Note: See TracBrowser for help on using the repository browser.