Commit b2f77d3d authored by Jérome Perrin's avatar Jérome Perrin

only display portal types chained with this interaction workflow in the `Filter` field


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@4031 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent c98df567
......@@ -25,12 +25,18 @@
<select name="portal_type_filter:list" multiple size="5">
<option value="None">(None)</option>
<dtml-in "portal_types.objectIds()" sort>
<dtml-if portal_type_filter>
<dtml-let selected="_['sequence-item'] in portal_type_filter and 'selected' or ' '">
<option value="&dtml-sequence-item;" &dtml-selected;>&dtml-sequence-item;</option>
</dtml-let>
<dtml-else>
<option value="&dtml-sequence-item;">&dtml-sequence-item;</option>
<dtml-if expr="aq_parent.aq_parent.id in portal_workflow._chains_by_type.get(_['sequence-item'], [])">
<dtml-if portal_type_filter>
<dtml-let selected="_['sequence-item'] in portal_type_filter and 'selected' or ' '">
<option value="&dtml-sequence-item;" &dtml-selected;>&dtml-sequence-item;</option>
</dtml-let>
<dtml-else>
<option value="&dtml-sequence-item;">&dtml-sequence-item;</option>
</dtml-if>
<dtml-else>
<dtml-if expr="_['sequence-item'] in portal_type_filter">
<option value="&dtml-sequence-item;" selected>(???) &dtml-sequence-item;</option>
</dtml-if>
</dtml-if>
</dtml-in>
</select>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment