Ignore:
Timestamp:
Nov 1, 2010, 1:17:38 PM (10 years ago)
Author:
robert@…
Message:

Compare templates view updated.

File:
1 edited

Legend:

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

    r1027 r1029  
    4343        <body>
    4444          <h1>Template fields for templates of entity
    45 
    4645          <select onChange="location.href = '<g:createLink action="compare" params="${extraparams + [ extra: 'true' ]}" />&entity=' + $(this).val();">
    47                   <g:each in="${templateEntities}" var="entity">
    48                         <option <g:if test="${entity.name == humanReadableEntity}">selected</g:if> value="${entity.encoded}">${entity.name}</option>
     46                  <g:each in="${templateEntities}" var="ent">
     47                        <option <g:if test="${ent.entity == entity.toString().replaceAll(/^class /, '')}">selected</g:if> value="${ent.encoded}">${ent.name}</option>
    4948                  </g:each>
    5049          </select>
     
    7675                  <td>${field.required}</td>
    7776                  <g:each in="${templates}" var="currentTemplate">
    78                         <td><input type="checkbox" <g:if test="${currentTemplate.fields.contains(field)}">checked="checked"</g:if> readonly="readonly" disabled="disabled" /> </td>
     77                        <td style="text-align: center;" align="center">
     78                          <g:if test="${currentTemplate.fields.contains(field)}">
     79                                <img align="center" src="${createLinkTo( dir: 'images/icons', file: 'accept.png', plugin: 'famfamfam' )}" alt="X" />
     80                          </g:if>
     81                        </td>
    7982                  </g:each>
    8083                </tr>
Note: See TracChangeset for help on using the changeset viewer.