source: trunk/grails-app/views/templateEditor/elements/_liContent.gsp @ 544

Last change on this file since 544 was 544, checked in by roberth, 10 years ago

Template editor is now able to add, edit, move and delete fields. Also fixed bug #90 (searching publications in IE didn't work because fetching XML from another domain was not allowed)

File size: 981 bytes
Line 
1<a class="title" href="#" onClick="showTemplateFieldForm( 'templateField_' + ${templateField.id}); this.blur(); return false;">
2        <span class="ui-icon ui-icon-arrowthick-2-n-s"></span>
3        <b>${templateField.name}</b>
4        (<g:render template="elements/${templateField.type.toString().toLowerCase().replaceAll(/ /,'_')}" />)
5</a>
6
7<form class="templateField_form" id="templateField_${templateField.id}_form" action="update">
8        <g:hiddenField name="id" value="${templateField.id}" />
9        <g:hiddenField name="version" value="${templateField.version}" />
10        <g:render template="elements/fieldForm" model="['templateField': templateField, 'fieldTypes': fieldTypes]"/>
11        <div class="templateFieldButtons">
12                <input type="button" value="Save" onClick="updateTemplateField( ${templateField.id} );">
13                <input type="button" value="Delete" onClick="deleteTemplateField( ${templateField.id} );">
14                <input type="button" value="Close" onClick="hideTemplateFieldForm( ${templateField.id} );">
15        </div>
16</form>
Note: See TracBrowser for help on using the repository browser.