Ignore:
Timestamp:
Jun 9, 2010, 12:46:22 PM (12 years ago)
Author:
roberth
Message:

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:
1 edited

Legend:

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

    r538 r544  
    11<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>
     2        <g:render template="elements/liContent" model="['templateField': it, 'fieldTypes': fieldTypes]"/>
    193</li>
Note: See TracChangeset for help on using the changeset viewer.