source: trunk/grails-app/views/templateEditor/elements/_all.gsp @ 538

Last change on this file since 538 was 538, checked in by roberth, 12 years ago

Improved template editor. Moving fields and basic editing works already.

  • Property svn:keywords set to Date Author Rev
File size: 1.1 KB
Line 
1<li class="ui-state-default" id="templateField_${it.id}">
2  <span class="ui-icon ui-icon-arrowthick-2-n-s"></span>
3  <b>${it.name}</b>
4  (<g:render template="elements/${it.type.toString().toLowerCase().replaceAll(/ /,'_')}" />)
5
6  <form class="templateField_form" id="templateField_${it.id}_form" action="update">
7    <g:hiddenField name="id" value="${it.id}" />
8    <g:hiddenField name="version" value="${it.version}" />
9    <label for="name">Name:</label> <g:textField name="name" value="${it.name}" /><br />
10    <label for="type">Type:</label> <g:select from="${fieldTypes}" name="type" value="${it.type}" /><br />
11    <label for="unit">Unit:</label> <g:textField name="unit" value="${it.unit}" /><br />
12    <label for="comment">Comment:</label> <g:textArea name="comment" value="${it.comment}" /><br />
13    <label for="required">Required:</label> <g:checkBox name="required" value="${it.required}" /><br />
14
15    <input type="button" value="Save" onClick="updateTemplateField( ${it.id} );">
16    <input type="button" value="Delete" onClick="">
17    <input type="button" value="Close" onClick="hideTemplateFieldForm( ${it.id} );">
18  </form>
19</li>
Note: See TracBrowser for help on using the repository browser.