move institution selection macro from cyberapps.knowledge to more central place in loops
This commit is contained in:
		
							parent
							
								
									335217081c
								
							
						
					
					
						commit
						e70bbb941b
					
				
					 1 changed files with 21 additions and 0 deletions
				
			
		|  | @ -1,6 +1,27 @@ | |||
| <html i18n:domain="loops"> | ||||
| 
 | ||||
| 
 | ||||
| <metal:institution define-macro="select_institution"> | ||||
|   <form method="post"> | ||||
|     <div style="font-size: 120%; padding-bottom: 10px"> | ||||
|       <span i18n:translate="">Organisation/Team</span>: | ||||
|       <b tal:content="item/institution/title" /> | ||||
|       <img tal:condition="python:len(item.institutions) > 1" | ||||
|            src="/@@/cybertools.icons/application_edit.png" | ||||
|            onclick="dojo.byId('select_institution').style.display = 'inline'" /> | ||||
|       <select name="select_institution" id="select_institution" | ||||
|               style="display: none" | ||||
|               onchange="submit()"> | ||||
|         <option tal:repeat="inst item/institutions" | ||||
|                 tal:content="inst/title" | ||||
|                 tal:attributes="value inst/uid; | ||||
|                                 selected python:inst['object'] == item.institution" /> | ||||
|       </select> | ||||
|     </div> | ||||
|   </form> | ||||
| </metal:institution> | ||||
| 
 | ||||
| 
 | ||||
| <metal:providers define-macro="requirement_providers"> | ||||
|   <metal:block use-macro="view/concept_macros/conceptdata" /> | ||||
|   <div> | ||||
|  |  | |||
		Loading…
	
	Add table
		
		Reference in a new issue