source: trunk/grails-app/views/templateEditor/elements/_liTemplateEditable.gsp @ 1430

Last change on this file since 1430 was 1430, checked in by work@…, 10 years ago
  • set keyword expansion
  • Property svn:keywords set to Rev Author Date
File size: 1.4 KB
Line 
1<span class="listButtons">
2  <img onClick="editTemplate( ${template.id} );" src="${resource( dir: 'images/icons', file: 'application_edit.png', plugin: 'famfamfam' )}" alt="Edit template properties" title="Edit template properties">
3  <img onClick="editFields( ${template.id} );"src="${resource( dir: 'images/icons', file: 'application_form.png', plugin: 'famfamfam' )}" alt="Add/remove template fields" title="Add/remove template fields">
4  <img onClick="cloneTemplate( ${template.id} );"src="${resource( dir: 'images/icons', file: 'page_copy.png', plugin: 'famfamfam' )}" alt="Clone this template" title="Clone this template">
5  <img onClick="if( confirm( 'Are you sure?' ) ) { deleteTemplate( ${template.id} ); }" src="${resource( dir: 'images/icons', file: 'delete.png', plugin: 'famfamfam' )}" alt="Delete this template" title="Delete this template">
6</span>
7${template.name}
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:hiddenField name="standalone" value="${standalone}" />
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.