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