Ignore:
Timestamp:
Jun 7, 2010, 4:39:11 PM (9 years ago)
Author:
roberth
Message:

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

Location:
trunk/grails-app/views/templateEditor
Files:
2 added
1 deleted
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/grails-app/views/templateEditor/elements/_all.gsp

    r496 r538  
    1 <li class="ui-state-default">
    2  <span class="ui-icon ui-icon-arrowthick-2-n-s"></span><b>${it.name}</b>
    3  ( <g:render template="elements/${it.type.toString().toLowerCase().replaceAll(/ /,'_')}" /> )
     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>
    419</li>
Note: See TracChangeset for help on using the changeset viewer.