Ignore:
Timestamp:
Nov 1, 2010, 12:42:49 PM (12 years ago)
Author:
robert@…
Message:

Implemented compare templates feature and fixed show studies overview (tickets #7 and #137)

Location:
trunk/grails-app/views/templateEditor/elements
Files:
3 edited

Legend:

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

    r959 r1027  
    11<li id="template_${template.id}"class="ui-state-default">
    22  <g:if test="${template.inUse()}">
    3         <g:render template="elements/liTemplateNonEditable" model="['template': template]"/>
     3        <g:render template="elements/liTemplateNonEditable" model="['template': template, , 'standalone': standalone]"/>
    44  </g:if>
    55  <g:else>
    6         <g:render template="elements/liTemplateEditable" model="['template': template]"/>
     6        <g:render template="elements/liTemplateEditable" model="['template': template, 'standalone': standalone]"/>
    77  </g:else>
    88</li>
  • trunk/grails-app/views/templateEditor/elements/_liTemplateEditable.gsp

    r996 r1027  
    77${template.name}
    88
    9 
    109<form class="templateField_form" id="template_${template.id}_form" action="updateTemplate">
    1110        <g:hiddenField name="id" value="${template.id}" />
    1211        <g:hiddenField name="version" value="${template.version}" />
     12        <g:hiddenField name="standalone" value="${standalone}" />
    1313        <g:render template="elements/templateForm" model="['template': template]"/>
    1414        <div class="templateFieldButtons">
  • trunk/grails-app/views/templateEditor/elements/_liTemplateNonEditable.gsp

    r996 r1027  
    1212        <g:hiddenField name="id" value="${template.id}" />
    1313        <g:hiddenField name="version" value="${template.version}" />
     14        <g:hiddenField name="standalone" value="${standalone}" />
    1415        <g:render template="elements/templateForm" model="['template': template]"/>
    1516        <div class="templateFieldButtons">
Note: See TracChangeset for help on using the changeset viewer.