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

Compare templates view updated.

Location:
trunk/grails-app/views/templateEditor
Files:
3 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>
  • trunk/grails-app/views/templateEditor/index.gsp

    r1027 r1029  
    3232                <div class="templateEditorStep" id="step1_template">
    3333                        <h3>Select template</h3>
    34                         <p>Showing templates for <b>${humanReadableEntity}</b>.</p>
     34                        <p>Showing templates for <b>${humanReadableEntity}</b> (<g:link controller="templateEditor" action="compare" params="${[entity: encryptedEntity] + extraparams}">compare</g:link>).</p>
    3535                        <p>Please select a template to edit or create a new template</p>
    3636
  • trunk/grails-app/views/templateEditor/template.gsp

    r1027 r1029  
    8484                <g:if test="${template}">
    8585                        <div class="templateEditorStep" id="step2_selectedFields">
    86                                 <h3 class="templateName">${template.name} (<a class="switch" href="${createLink(action:'index',params: extraparams + [ 'entity': encryptedEntity ])}">switch</a>)</h3>
     86                                <h3 class="templateName">${template.name} (<a class="switch" href="${createLink(action:'index',params: [ 'entity': encryptedEntity ] + extraparams )}">switch</a>)</h3>
    8787
    8888                                <p>Currently, this template contains the following fields. Drag fields to reorder. Drag fields to the list of available fields to remove the field from the template.</p>
Note: See TracChangeset for help on using the changeset viewer.