Ignore:
Timestamp:
Apr 23, 2010, 4:16:44 PM (9 years ago)
Author:
duh
Message:
  • working on the templateEditor
Location:
trunk/grails-app/views/templateEditor
Files:
10 added
1 edited

Legend:

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

    r376 r377  
    1818 <head>
    1919  <meta name="layout" content="dialog"/>
    20   <title>my bla</title>
     20  <title>template editor</title>
    2121 </head>
    2222 <body>
    23  templates for entity: ${entity}<br/>
    2423
    25  <g:if test="${templates}">
    26   <ul>
    27   <g:each in="${templates}">
    28      <li>${it}</li>
    29   </g:each>
     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="${dbnp.studycapturing.Study}" 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}" />
    3040  </ul>
    3141 </g:if>
     42
     43 add a new field:
     44 <g:select from="${templateFields}" />
    3245 
    3346 </body>
Note: See TracChangeset for help on using the changeset viewer.