source: trunk/grails-app/views/templateEditor/elements/_liTemplateNonEditable.gsp @ 556

Last change on this file since 556 was 556, checked in by roberth, 12 years ago

Improved the TemplateEditor? again: templates can be created and removed and some checks were built in to ensure that the same fields in different templates point to the same TemplateField? object.

File size: 1.2 KB
1<g:set var="numUses" value="${template.numUses()}" />
2<span class="listButtons">
3  <img onClick="editTemplate( ${} );" src="${createLinkTo( dir: 'images', file: 'icons/famfamfam/application_edit.png')}" alt="Edit template properties" title="Edit template properties">
4  <img onClick="editFields( ${} );"src="${createLinkTo( dir: 'images', file: 'icons/famfamfam/application_form.png')}" alt="Add/remove template fields" title="Add/remove template fields">
5  <img class="disabled" src="${createLinkTo( dir: 'images', file: 'icons/famfamfam/delete.png')}" alt="Deleting this template is not possible. Template is used in ${numUses} objects." title="Deleting this template is not possible. Template is used in ${numUses} objects.">
10<form class="templateField_form" id="template_${}_form" action="updateTemplate">
11        <g:hiddenField name="id" value="${}" />
12        <g:hiddenField name="version" value="${template.version}" />
13        <g:render template="elements/templateForm" model="['template': template]"/>
14        <div class="templateFieldButtons">
15                <input type="button" value="Save" onClick="updateTemplate( ${} );">
16                <input type="button" value="Close" onClick="hideTemplateForm( ${} );">
17        </div>
Note: See TracBrowser for help on using the repository browser.