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
Line 
1<g:set var="numUses" value="${template.numUses()}" />
2<span class="listButtons">
3  <img onClick="editTemplate( ${template.id} );" src="${createLinkTo( dir: 'images', file: 'icons/famfamfam/application_edit.png')}" alt="Edit template properties" title="Edit template properties">
4  <img onClick="editFields( ${template.id} );"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.">
6</span>
7${template.name}
8
9
10<form class="templateField_form" id="template_${template.id}_form" action="updateTemplate">
11        <g:hiddenField name="id" value="${template.id}" />
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( ${template.id} );">
16                <input type="button" value="Close" onClick="hideTemplateForm( ${template.id} );">
17        </div>
18</form>
Note: See TracBrowser for help on using the repository browser.