Changeset 1148 for trunk/grails-app/views/importer/index_simple.gsp
- Timestamp:
- Nov 16, 2010, 4:47:18 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/grails-app/views/importer/index_simple.gsp
r1143 r1148 9 9 <head> 10 10 <meta name="layout" content="main"/> 11 <title>Importer wizard (simple)</title> 11 <title>Importer wizard (simple)</title> 12 12 <link rel="stylesheet" href="${resource(dir: 'css', file: 'importer.css')}"/> 13 13 14 <g:javascript library="jquery" plugin="jquery"/> 14 <g:if env="production"> 15 <script type="text/javascript" src="${resource(dir: 'js', file: 'SelectAddMore.min.js')}"></script> 16 </g:if><g:else> 17 <script type="text/javascript" src="${resource(dir: 'js', file: 'SelectAddMore.js')}"></script> 18 </g:else> 15 19 16 20 <g:javascript> … … 30 34 var rselect = $('#'+name).get(0) 31 35 var items = data 36 37 // If a study has been selected, don't show the "Choose study" field, otherwise do 38 if ($('#'+'entity').val() == 'study') 39 $('#studyfield').hide(); 40 else $('#studyfield').show(); 41 42 // set the entity name for the data template chooser 43 //alert ( "das" + $('select[name=template_id]').attr('entity') ) 44 45 //$('select[name=template_id]').attr('entity', $('#'+'entity').val()); 32 46 33 47 if (items) { … … 53 67 }); 54 68 } 69 70 // handle template selects 71 new SelectAddMore().init({ 72 rel : 'typetemplate', 73 url : '/gscf/templateEditor', 74 vars : 'thentity', // can be a comma separated list of variable names to pass on 75 label : 'add / modify ...', 76 style : 'modify', 77 onClose : function(scope) { 78 //refreshWebFlow(); 79 } 80 }); 55 81 } 56 82 57 83 $(document).ready(function() { 58 59 // handle template selects60 new SelectAddMore().init({61 rel : 'template',62 url : '/gscf/templateEditor',63 vars : 'entity', // can be a comma separated list of variable names to pass on64 label : 'add / modify..',65 style : 'modify',66 onClose : function(scope) {67 refreshWebFlow();68 }69 });70 71 84 72 85 $('#simplewizardform').submit(function() { … … 131 144 </td> 132 145 </tr> 133 <tr >146 <tr id="studyfield"> 134 147 <td> 135 148 Choose your study: … … 144 157 </td> 145 158 <td> 146 <g:select 147 rel="template" 159 <g:select 148 160 name="entity" 149 161 id="entity" … … 163 175 </td> 164 176 <td> 165 <g:select name="template_id" optionKey="id" optionValue="name" from="[]" />177 <g:select rel="typetemplate" entity="hoi" name="template_id" optionKey="id" optionValue="name" from="[]" /> 166 178 </td> 167 179 </tr> 168 169 170 180 <tr> 171 181 <td colspan="2">
Note: See TracChangeset
for help on using the changeset viewer.