source: trunk/grails-app/views/templateEditor/pages/templates.gsp @ 385

Last change on this file since 385 was 385, checked in by duh, 11 years ago
  • template editor view used Study as entity instead of the dynamically passed entity
  • Property svn:keywords set to Date Author Rev
File size: 1018 bytes
Line 
1<%
2        /**
3         * Template Editor overview template
4         *
5         * @author Jeroen Wesbeek
6         * @since 20100422
7         * @package wizard
8         * @see dbnp.studycapturing.TemplateEditorController
9         *
10         * Revision information:
11         * $Rev: 385 $
12         * $Author: duh $
13         * $Date: 2010-04-27 08:25:43 +0000 (di, 27 apr 2010) $
14         */
15%>
16<%@ page contentType="text/html;charset=UTF-8" %>
17<html>
18 <head>
19  <meta name="layout" content="dialog"/>
20  <title>template editor</title>
21 </head>
22 <body>
23
24  <script type="text/javascript">
25         $(function() {
26                 $("#sortable").sortable({
27                         placeholder: 'ui-state-highlight'
28                 });
29                 $("#sortable").disableSelection();
30         });
31  </script>
32
33 <g:form action="pages" name="wizardForm" id="wizardForm">
34  <wizard:templateSelect name="template" description="Template" value="${template}" entity="${entity}" addDummy="true" onChange="this.form.submit();" />
35 </g:form>
36
37 <g:if test="${template}">
38  <ul id="sortable">
39  <g:render template="elements/all" collection="${template.fields}" />
40  </ul>
41 </g:if>
42
43 add a new field:
44 <g:select from="${templateFields}" />
45 
46 </body>
47</html>
Note: See TracBrowser for help on using the repository browser.