source: trunk/grails-app/views/templateEditor/elements/_liTemplateEditable.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.1 KB
Line 
1<span class="listButtons">
2  <img onClick="editTemplate( ${template.id} );" src="${createLinkTo( dir: 'images', file: 'icons/famfamfam/application_edit.png')}" alt="Edit template properties" title="Edit template properties">
3  <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">
4  <img onClick="if( confirm( 'Are you sure?' ) ) { deleteTemplate( ${template.id} ); }" src="${createLinkTo( dir: 'images', file: 'icons/famfamfam/delete.png')}" alt="Delete this template" title="Delete this template">
5</span>
6${template.name}
7
8
9<form class="templateField_form" id="template_${template.id}_form" action="updateTemplate">
10        <g:hiddenField name="id" value="${template.id}" />
11        <g:hiddenField name="version" value="${template.version}" />
12        <g:render template="elements/templateForm" model="['template': template]"/>
13        <div class="templateFieldButtons">
14                <input type="button" value="Save" onClick="updateTemplate( ${template.id} );">
15                <input type="button" value="Close" onClick="hideTemplateForm( ${template.id} );">
16        </div>
17</form>
Note: See TracBrowser for help on using the repository browser.