| 1 |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" |
| 2 |
|
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
| 3 |
|
|
| 4 |
<html xmlns:tal="http://xml.zope.org/namespaces/tal" |
<html xmlns:tal="http://xml.zope.org/namespaces/tal" |
| 5 |
xmlns:metal="http://xml.zope.org/namespaces/metal" |
xmlns:metal="http://xml.zope.org/namespaces/metal" |
| 6 |
i18n:domain="plone"> |
i18n:domain="plone"> |
| 7 |
|
|
| 8 |
<body> |
<body> |
| 9 |
|
<!-- Action Recipient Chooser Widgets (for ActionRecipientList) --> |
|
<!-- Action Recipient Reference Widgets (for ActionRecipientList) --> |
|
| 10 |
|
|
| 11 |
<!-- View macro --> |
<!-- View macro --> |
| 12 |
<div class="field" metal:define-macro="view"> |
<div class="field" metal:define-macro="view"> |
| 39 |
<div metal:use-macro="here/widgets/field/macros/edit"> |
<div metal:use-macro="here/widgets/field/macros/edit"> |
| 40 |
<div metal:fill-slot="widget_body" |
<div metal:fill-slot="widget_body" |
| 41 |
tal:define=" |
tal:define=" |
| 42 |
political_party here/getPolitical_party|None; |
political_party here/getPoliticalParty; |
| 43 |
country here/getCountry|None; |
country here/getCountry; |
| 44 |
us_state here/getUs_state|None; |
us_state here/getUsState; |
| 45 |
results python:here.portal_catalog(getPolitical_party=political_party,getUs_state=us_state,getCountry=country); |
current_office here/getCurrentOffice; |
| 46 |
fieldName python:test(field.multiValued,fieldName+':list',fieldName); |
results python:here.portal_catalog(getCurrentOffice=current_office,getPoliticalParty=political_party,getUsState=us_state,getCountry=country,meta_type='ActionRecipient'); |
| 47 |
rlen python: len(results); |
fieldName python:test(field.multiValued,fieldName+':list',fieldName); |
| 48 |
"> |
rlen python: len(results); |
| 49 |
|
"> |
| 50 |
<input type="hidden" value="" |
<input type="hidden" value="" |
| 51 |
tal:condition="python: (not field.required) and field.multiValued" |
tal:condition="python: (not field.required) and field.multiValued" |
| 52 |
tal:attributes="name string:$fieldName:default:list" /> |
tal:attributes="name string:$fieldName:default:list" /> |
|
<div tal:condition="python: rlen == 0"> |
|
|
No Action Recipients match the parameters you entered.<br/> |
|
|
<table class="listing"> |
|
|
<thead> |
|
|
<tr> |
|
|
<th>Parameter</th> |
|
|
<th>Your Selection(s)</th> |
|
|
</tr> |
|
|
</thead> |
|
|
<tbody> |
|
|
<tr class="odd"> |
|
|
<td> Countries </td> |
|
|
<td> |
|
|
<div tal:omit-tag="" tal:repeat="country here/getCountry"> |
|
|
<span tal:content="country"/><br/> |
|
|
</div> |
|
|
</td> |
|
|
<tr> |
|
|
<tr class="even"> |
|
|
<td> US States </td> |
|
|
<td> |
|
|
<div tal:omit-tag="" tal:repeat="us_state here/getUs_state"> |
|
|
<span tal:content="us_state"/><br/> |
|
|
</div> |
|
|
</td> |
|
|
<tr> |
|
|
<tr class="odd"> |
|
|
<td> Political Parties </td> |
|
|
<td> |
|
|
<div tal:omit-tag="" tal:repeat="party here/getPolitical_party"> |
|
|
<span tal:content="party"/><br/> |
|
|
</div> |
|
|
</td> |
|
|
<tr> |
|
|
</tbody> |
|
|
</table> |
|
|
</div> |
|
| 53 |
|
|
| 54 |
<!-- Got some results --> |
<!-- Got some results --> |
| 55 |
<div tal:condition="python: rlen > 0"> |
<div tal:condition="python: rlen > 0"> |
| 56 |
<select multiple="multiple" |
<select multiple="multiple" |
| 57 |
tal:attributes="name fieldName; id fieldName; |
tal:attributes="name fieldName; id fieldName; |
| 58 |
tabindex tabindex/next;"> |
tabindex tabindex/next;"> |
| 59 |
<option |
<div tal:omit-tag="" |
| 60 |
selected="" |
tal:repeat="item results"> |
| 61 |
tal:repeat="item results" |
<option selected="" |
| 62 |
tal:content="item/getFirst_name|item/Title" |
tal:attributes="selected python:test(item.id in here.getActionRecipients(),'selected',''); |
| 63 |
/> |
value item/UID" |
| 64 |
|
tal:content="item/Title"/> |
| 65 |
|
</div> |
| 66 |
</select> |
</select> |
| 67 |
<span tal:condition="field/addable|nothing"> |
<span tal:condition="field/addable|nothing"> |
| 68 |
<a href="#" tal:repeat="addable field/allowed_types" |
<a href="#" tal:repeat="addable field/allowed_types" |
| 71 |
</span> |
</span> |
| 72 |
</div> |
</div> |
| 73 |
|
|
| 74 |
|
|
| 75 |
|
<div tal:condition="python: rlen == 0"> |
| 76 |
|
No Action Recipients match the parameters you entered.<br/> |
| 77 |
|
<table class="listing"> |
| 78 |
|
<thead> |
| 79 |
|
<tr> |
| 80 |
|
<th>Parameter</th> |
| 81 |
|
<th>Your Selection(s)</th> |
| 82 |
|
</tr> |
| 83 |
|
</thead> |
| 84 |
|
<tbody> |
| 85 |
|
<tr class="odd"> |
| 86 |
|
<td> Countries </td> |
| 87 |
|
<td> |
| 88 |
|
<div tal:omit-tag="" tal:repeat="country here/getCountry"> |
| 89 |
|
<span tal:content="country"/><br/> |
| 90 |
|
</div> |
| 91 |
|
</td> |
| 92 |
|
</tr> |
| 93 |
|
<tr class="even"> |
| 94 |
|
<td> US States </td> |
| 95 |
|
<td> |
| 96 |
|
<div tal:omit-tag="" tal:repeat="us_state here/getUs_state"> |
| 97 |
|
<span tal:content="us_state"/><br/> |
| 98 |
|
</div> |
| 99 |
|
</td> |
| 100 |
|
</tr> |
| 101 |
|
<tr class="odd"> |
| 102 |
|
<td> Political Parties </td> |
| 103 |
|
<td> |
| 104 |
|
<div tal:omit-tag="" tal:repeat="party here/getPolitical_party"> |
| 105 |
|
<span tal:content="party"/><br/> |
| 106 |
|
</div> |
| 107 |
|
</td> |
| 108 |
|
</tr> |
| 109 |
|
</tbody> |
| 110 |
|
</table> |
| 111 |
|
</div> |
| 112 |
|
|
| 113 |
</div> |
</div> |
| 114 |
</div> |
</div> |
| 115 |
</div> |
</div> |
| 116 |
<!-- /Edit macro --> |
<!-- /Edit macro --> |
| 117 |
|
|
|
<div metal:define-macro="search"> |
|
|
<div metal:use-macro="here/widgets/reference/macros/edit"> |
|
|
</div> |
|
|
</div> |
|
|
|
|
| 118 |
</body> |
</body> |
| 119 |
|
|
| 120 |
</html> |
</html> |