| 31 |
<div class="row"> |
<div class="row"> |
| 32 |
US State: |
US State: |
| 33 |
<select name="us_state"> |
<select name="us_state"> |
| 34 |
|
<!-- |
| 35 |
|
Two points here: |
| 36 |
|
1- You fetch properties with: |
| 37 |
|
here.path.to.properties.getProperty('property_name') |
| 38 |
|
2- You need to split the result around the pipe '|' character to get |
| 39 |
|
key,value. |
| 40 |
|
--> |
| 41 |
<div tal:repeat="us_state python:here.portal_properties.geographic_properties.getProperty('us_states')" |
<div tal:repeat="us_state python:here.portal_properties.geographic_properties.getProperty('us_states')" |
| 42 |
tal:omit-tag=""> |
tal:omit-tag=""> |
| 43 |
<option tal:define="values python:us_state.split('|')" |
<option tal:define="values python:us_state.split('|')" |