Ignore:
Timestamp:
Jun 11, 2010, 4:00:10 PM (11 years ago)
Author:
roberth
Message:

Improved template editor , stringlists and ontologyfields can be edited and extra checks are built in.

File:
1 copied

Legend:

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

    r555 r558  
    1         <label for="name">Name:</label> <g:textField name="name" value="${templateField?.name}" /><br />
    2         <label for="type">Type:</label> <g:select from="${fieldTypes}" name="type" value="${templateField?.type}" /><br />
    3         <label for="unit">Unit:</label> <g:textField name="unit" value="${templateField?.unit}" /><br />
    4         <label for="comment">Comment:</label> <g:textArea name="comment" value="${templateField?.comment}" /><br />
    5         <label for="required">Required:</label> <g:checkBox name="required" value="${templateField?.required}" /><br />
     1        <label for="name">Name:</label> <g:textField disabled="disabled" name="name" value="${templateField?.name}" /><br />
     2        <label for="type">Type:</label> <g:textField disabled="disabled" name="type" value="${templateField?.type}" /><br />
     3
     4        <div class="extra stringlist_options" <g:if test="${templateField?.type.toString() == 'STRINGLIST'}">style='display: block;'</g:if>>
     5          <label for="type">Items:</label>
     6                <g:textArea name="listEntries" disabled="disabled" value="${templateField?.listEntries?.name?.join( '\n' )}" />
     7        </div>
     8        <div class="extra ontologyterm_options" <g:if test="${templateField?.type.toString() == 'ONTOLOGYTERM'}">style='display: block;'</g:if>>
     9          <label for="type">Ontology:</label> <g:textArea name="ontology" disabled="disabled" value="${templateField?.ontologies?.name?.join( '\n' )}" /><br />
     10        </div>
     11       
     12        <label for="unit">Unit:</label> <g:textField disabled="disabled" name="unit" value="${templateField?.unit}" /><br />
     13        <label for="comment">Comment:</label> <g:textArea disabled="disabled" name="comment" value="${templateField?.comment}" /><br />
     14        <label for="required">Required:</label> <input type="checkbox" disabled <g:if test="${templateField?.required}">checked</g:if><br />
Note: See TracChangeset for help on using the changeset viewer.