load data fields for type selected by default option on form startup
This commit is contained in:
		
							parent
							
								
									5b87a574c4
								
							
						
					
					
						commit
						fc1c071ad8
					
				
					 1 changed files with 6 additions and 2 deletions
				
			
		|  | @ -104,14 +104,18 @@ | ||||||
|                             view.getTypesVocabulary((qualifier,))" |                             view.getTypesVocabulary((qualifier,))" | ||||||
|                         tal:content="type/title" |                         tal:content="type/title" | ||||||
|                         tal:attributes="value type/token; |                         tal:attributes="value type/token; | ||||||
|                                         selected python: |                                         selected python:type.token == typeToken"> | ||||||
|                                type.token == typeToken"> |  | ||||||
|                   Note |                   Note | ||||||
|                 </option> |                 </option> | ||||||
|               </select> |               </select> | ||||||
|               <input type="hidden" name="form.type" |               <input type="hidden" name="form.type" | ||||||
|                      tal:condition="fixedType" |                      tal:condition="fixedType" | ||||||
|                      tal:attributes="value typeToken" /> |                      tal:attributes="value typeToken" /> | ||||||
|  |               <script type="text/javascript" | ||||||
|  |                       tal:content="string:replaceFieldsNode( | ||||||
|  |                                     'form.fields', 'form.type', | ||||||
|  |                                     '${view/url}/$innerForm')"> | ||||||
|  |               </script> | ||||||
|         </th></tr></tbody> |         </th></tr></tbody> | ||||||
| 
 | 
 | ||||||
|         <tbody><tr><td colspan="5"> |         <tbody><tr><td colspan="5"> | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		
		Reference in a new issue