Ignore:
Timestamp:
Oct 26, 2010, 3:19:22 PM (9 years ago)
Author:
robert@…
Message:

Implemented clone feature in template editor (ticket #6), added a rest call 'getUser' and added webflow to the application.properties again.

Location:
trunk/grails-app/views/templateEditor
Files:
4 edited

Legend:

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

    r980 r996  
    22  <img onClick="editTemplate( ${template.id} );" src="${createLinkTo( dir: 'images/icons', file: 'application_edit.png', plugin: 'famfamfam' )}" alt="Edit template properties" title="Edit template properties">
    33  <img onClick="editFields( ${template.id} );"src="${createLinkTo( dir: 'images/icons', file: 'application_form.png', plugin: 'famfamfam' )}" alt="Add/remove template fields" title="Add/remove template fields">
     4  <img onClick="cloneTemplate( ${template.id} );"src="${createLinkTo( dir: 'images/icons', file: 'page_copy.png', plugin: 'famfamfam' )}" alt="Clone this template" title="Clone this template">
    45  <img onClick="if( confirm( 'Are you sure?' ) ) { deleteTemplate( ${template.id} ); }" src="${createLinkTo( dir: 'images/icons', file: 'delete.png', plugin: 'famfamfam' )}" alt="Delete this template" title="Delete this template">
    56</span>
  • trunk/grails-app/views/templateEditor/elements/_liTemplateNonEditable.gsp

    r980 r996  
    33  <img onClick="editTemplate( ${template.id} );" src="${createLinkTo( dir: 'images/icons', file: 'application_edit.png', plugin: 'famfamfam' )}" alt="Edit template properties" title="Edit template properties">
    44  <img onClick="editFields( ${template.id} );"src="${createLinkTo( dir: 'images/icons', file: 'application_form.png', plugin: 'famfamfam' )}" alt="Add/remove template fields" title="Add/remove template fields">
     5  <img onClick="cloneTemplate( ${template.id} );"src="${createLinkTo( dir: 'images/icons', file: 'page_copy.png', plugin: 'famfamfam' )}" alt="Clone this template" title="Clone this template">
    56  <img class="disabled" src="${createLinkTo( dir: 'images/icons', file: 'delete.png', plugin: 'famfamfam' )}" alt="Deleting this template is not possible. Template is used in ${numUses} objects." title="Deleting this template is not possible. Template is used in ${numUses} objects.">
    67</span>
  • trunk/grails-app/views/templateEditor/index.gsp

    r959 r996  
    5959                </div>
    6060
     61                <div id="wait" class="wait">
     62                  &nbsp;
     63                </div>
     64                <div class="wait_text wait">
     65                  <img src="<g:resource dir="images" file="spinner.gif" />"> Please wait
     66                </div>
     67
     68
    6169        </body>
    6270</html>
  • trunk/grails-app/views/templateEditor/template.gsp

    r959 r996  
    8888                                <ol id="selectedTemplateFields" class="templateFields <g:if test="${template.inUse()}">inUse</g:if>">
    8989                                        <g:render template="elements/selected" var="templateField" collection="${template.fields}" model="['template':template]"/>
     90                                        <% /* NB: this empty field should always be the last in the list! */ %>
    9091                                        <li class="empty ui-state-default" <g:if test="${template.fields?.size() > 0 }">style='display: none;'</g:if>>This template does not yet contain any fields. Drag a field to this list or use the 'Add field button'.</li>
    9192                                </ol>
     
    9697                                <p>These fields are available for adding to the template. Drag a field to the template to add it.</p>
    9798                                <ol id="availableTemplateFields" class="templateFields">
     99                                        <g:render template="elements/available" var="templateField" collection="${allFields - template.fields}" />
    98100                                        <li class="empty ui-state-default" <g:if test="${allFields.size() > template.fields.size()}">style='display: none;'</g:if>>There are no additional fields that can be added. Use the 'Create new field' button to create new fields.</li>
    99                                         <g:render template="elements/available" var="templateField" collection="${allFields - template.fields}" />
    100101                                </ol>
    101102
     
    121122                </div>
    122123
    123         </body>
     124                <div id="wait" class="wait">
     125                  &nbsp;
     126                </div>
     127                <div class="wait_text wait">
     128                  <img src="<g:resource dir="images" file="spinner.gif" />"> Please wait
     129                </div>
     130                </body>
    124131</html>
Note: See TracChangeset for help on using the changeset viewer.