forked from MapComplete/MapComplete
		
	Themes: add support for operator:email, mostly for velopark
This commit is contained in:
		
							parent
							
								
									5659dd8e8c
								
							
						
					
					
						commit
						1c45f09632
					
				
					 3 changed files with 26 additions and 1 deletions
				
			
		|  | @ -795,6 +795,19 @@ | ||||||
|         } |         } | ||||||
|       ] |       ] | ||||||
|     }, |     }, | ||||||
|  |     { | ||||||
|  |       "id": "operator_email", | ||||||
|  |       "question": { | ||||||
|  |         "en": "What is the email address of the operator of this bicycle parking?", | ||||||
|  |         "nl": "Wat is het emailadres van de beheerder van deze parking?" | ||||||
|  |       }, | ||||||
|  |       "icon": "./assets/svg/envelope.svg", | ||||||
|  |       "freeform": { | ||||||
|  |         "key": "operator:email", | ||||||
|  |         "type": "email" | ||||||
|  |       }, | ||||||
|  |       "render": "<a href='mailto:{operator:email}' target='_blank' rel='noopener'>{operator:email}</a>" | ||||||
|  |     }, | ||||||
|     { |     { | ||||||
|       "question": { |       "question": { | ||||||
|         "en": "Does this bicycle parking have spots for cargo bikes?", |         "en": "Does this bicycle parking have spots for cargo bikes?", | ||||||
|  |  | ||||||
|  | @ -167,12 +167,18 @@ | ||||||
|           "#": "ignore-image-in-then", |           "#": "ignore-image-in-then", | ||||||
|           "if": "contact:email~*", |           "if": "contact:email~*", | ||||||
|           "then": "<a href='mailto:{contact:email}'><img textmode='✉️' alt='email' src='./assets/layers/questions/send_email.svg'/></a>" |           "then": "<a href='mailto:{contact:email}'><img textmode='✉️' alt='email' src='./assets/layers/questions/send_email.svg'/></a>" | ||||||
|  |         }, | ||||||
|  |         { | ||||||
|  |           "#": "ignore-image-in-then", | ||||||
|  |           "if": "operator:email~*", | ||||||
|  |           "then": "<a href='mailto:{operator:email}'><img textmode='✉️' alt='email' src='./assets/layers/questions/send_email.svg'/></a>" | ||||||
|         } |         } | ||||||
|       ], |       ], | ||||||
|       "condition": { |       "condition": { | ||||||
|         "or": [ |         "or": [ | ||||||
|           "email~*", |           "email~*", | ||||||
|           "contact:email~*" |           "contact:email~*", | ||||||
|  |           "operator:email~*" | ||||||
|         ] |         ] | ||||||
|       } |       } | ||||||
|     }, |     }, | ||||||
|  |  | ||||||
|  | @ -266,6 +266,12 @@ | ||||||
|           "icon": "./assets/svg/envelope.svg", |           "icon": "./assets/svg/envelope.svg", | ||||||
|           "then": "<a href='mailto:{contact:email}' target='_blank' rel='noopener'>{contact:email}</a>", |           "then": "<a href='mailto:{contact:email}' target='_blank' rel='noopener'>{contact:email}</a>", | ||||||
|           "hideInAnswer": true |           "hideInAnswer": true | ||||||
|  |         }, | ||||||
|  |         { | ||||||
|  |           "if": "operator:email~*", | ||||||
|  |           "icon": "./assets/svg/envelope.svg", | ||||||
|  |           "then": "<a href='mailto:{operator:email}' target='_blank' rel='noopener'>{operator:email}</a>", | ||||||
|  |           "hideInAnswer": true | ||||||
|         } |         } | ||||||
|       ], |       ], | ||||||
|       "freeform": { |       "freeform": { | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue