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

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

Improved the template editor so that template fields can be removed from templates, even if the templates are in use, but only if the template fields are never filled. (see ticket #74)

Also changed the user registration so that the administrator confirmation mails will be sent to the administrators in production environment, but still to gscfproject@… in other environments.

  • Property svn:keywords set to Author Date Rev
File size: 1.6 KB
1<span class="listButtons">
2  <img onClick="showTemplateFieldForm( 'templateField_' + ${}); 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">
3  <img onClick="if( confirm( 'Are you sure?' ) ) { deleteTemplateField( ${} ); }" src="${resource( dir: 'images/icons', file: 'delete.png', plugin: 'famfamfam' )}" alt="Delete this template field" title="Delete this template field">
4  <img onClick="addTemplateField( ${}, null, true );" src="${resource( dir: 'images/icons', file: 'add.png', plugin: 'famfamfam' )}" alt="Add field to template" title="Add field to template">
8(<g:if test="${templateField.unit}">${templateField.unit}, </g:if><g:render template="elements/${templateField.type.toString().toLowerCase().replaceAll(/ /,'_')}" model="[templateField: templateField]" />)
10<form class="templateField_form" id="templateField_${}_form" action="updateField">
11        <g:hiddenField name="id" value="${}" />
12        <g:hiddenField name="version" value="${templateField.version}" />
13        <g:render template="elements/fieldForm" model="['templateField': templateField, 'ontologies': ontologies, 'fieldTypes': fieldTypes]"/>
14        <div class="templateFieldButtons">
15                <input type="button" value="Save" onClick="updateTemplateField( ${} );">
16                <input type="button" value="Close" onClick="hideTemplateFieldForm( ${} );">
17        </div>
Note: See TracBrowser for help on using the repository browser.