| 9 |
<div metal:define-macro="header" |
<div metal:define-macro="header" |
| 10 |
tal:omit-tag=""> |
tal:omit-tag=""> |
| 11 |
|
|
| 12 |
<div tal:condition="python:here.isExpired(here)"> |
<!-- |
| 13 |
<div class="message notice"> |
==================================================== |
| 14 |
<h1>This action is over</h1> |
Run some checks on the action to see if its expired or if it |
| 15 |
You may view the action but you may no longer participate. |
can be participated in by the viewer |
| 16 |
|
==================================================== |
| 17 |
|
--> |
| 18 |
|
<!-- Title here for whatever reason.. --> |
| 19 |
|
<h1 tal:content="here/title_or_id" /> |
| 20 |
|
|
| 21 |
|
<!-- Is it expired? --> |
| 22 |
|
<div tal:condition="python:here.isExpired(here)"> |
| 23 |
|
<div class="message notice"> |
| 24 |
|
<h1>This action is over</h1> |
| 25 |
|
You may view the action but you may no longer participate. |
| 26 |
|
</div> |
| 27 |
</div> |
</div> |
|
</div> |
|
| 28 |
|
|
| 29 |
<h1 tal:content="here/title_or_id" /> |
<!-- Logged in? --> |
| 30 |
<metal:block tal:condition="here/portal_membership/isAnonymousUser"> |
<metal:block tal:condition="here/portal_membership/isAnonymousUser"> |
| 31 |
<div class="message notice"> |
<div class="message notice"> |
| 32 |
You must be logged in to participate in any actions. |
You must be logged in to participate in any actions. |
| 33 |
</div> |
</div> |
| 34 |
</metal:block> |
</metal:block> |
| 35 |
|
|
| 36 |
<!-- Test for general eligiblity --> |
<!-- Is this action about the viewer? --> |
| 37 |
<metal:block tal:condition="not: here/portal_membership/isAnonymousUser" |
<metal:block tal:condition="not: here/portal_membership/isAnonymousUser" |
| 38 |
tal:define="member container/portal_membership/getAuthenticatedMember | nothing"> |
tal:define="member container/portal_membership/getAuthenticatedMember | nothing"> |
| 39 |
<div tal:omit-tag="" |
<div tal:omit-tag="" |
| 49 |
<div metal:define-macro="body" |
<div metal:define-macro="body" |
| 50 |
tal:omit-tag=""> |
tal:omit-tag=""> |
| 51 |
|
|
| 52 |
<span tal:omit-tag="" |
<span tal:omit-tag="" tal:content="structure here/getSummary"/> |
| 53 |
tal:content="structure here/getSummary"></span> |
|
| 54 |
</div> |
</div> |
| 55 |
|
|
| 56 |
<div metal:define-macro="footer" |
<div metal:define-macro="footer" |
| 57 |
tal:omit-tag=""> |
tal:omit-tag=""> |
| 58 |
<div tal:condition="python:not here.isExpired(here)"> |
<div tal:condition="python:not here.isExpired(here)"> |
| 59 |
|
|
| 60 |
<!-- Allow participation if eligable --> |
<!-- Only show the buttons to those who may particpate --> |
| 61 |
<metal:block tal:condition="not: here/portal_membership/isAnonymousUser" |
<metal:block tal:condition="not: here/portal_membership/isAnonymousUser" |
| 62 |
tal:define="member container/portal_membership/getAuthenticatedMember | nothing"> |
tal:define="member container/portal_membership/getAuthenticatedMember | nothing"> |
| 63 |
|
|
| 70 |
<input type="submit" tal:attributes="value python:here.portal_properties.pac_actions.getProperty(act).split('|')[0]"/> |
<input type="submit" tal:attributes="value python:here.portal_properties.pac_actions.getProperty(act).split('|')[0]"/> |
| 71 |
</form> |
</form> |
| 72 |
</div> |
</div> |
| 73 |
|
<h2>Your Qualified Recipients</h2> |
| 74 |
|
<div tal:repeat="ar python:here.getMyRecipients(member)"> |
| 75 |
|
<div tal:content="python:ar.Title"></div> |
| 76 |
|
</div> |
| 77 |
</div> |
</div> |
| 78 |
</metal:block> |
</metal:block> |
| 79 |
|
|