[CMF-checkins] CVS: CMF/CMFCollector/skins/collector - collector_add_issue_form.pt:1.5
Ken Manheimer
klm@zope.com
Mon, 22 Oct 2001 23:56:04 -0400
Update of /cvs-repository/CMF/CMFCollector/skins/collector
In directory cvs.zope.org:/tmp/cvs-serv15280
Modified Files:
collector_add_issue_form.pt
Log Message:
Added assignees selection for permitted folk.
=== CMF/CMFCollector/skins/collector/collector_add_issue_form.pt 1.4 => 1.5 ===
<h2> Submit New Issue </h2>
- <div tal:define="member python:
- here.portal_membership.getAuthenticatedMember();
+ <div tal:define="pm python: here.portal_membership;
+ member python: pm.getAuthenticatedMember();
authenticated python: member.has_role('Authenticated')">
<form method="POST" enctype="multipart/form-data"
@@ -138,12 +138,30 @@
the causes.
</font>
</td>
+ </tr>
- <tr valign="top">
- <th align="right"> Description </th>
- <td colspan="3">
- <textarea name="description:text" rows="8" cols="60"></textarea>
- </td>
+ <tr valign="top"
+ tal:define="assigner python: pm.checkPermission(
+ 'Support collector issue', here);
+ supporters here/supporters">
+ <th align="right"> Description </th>
+ <td colspan="3">
+ <textarea name="description:text" rows="10" cols="55"></textarea>
+ </td>
+ <td valign="top"
+ tal:condition="assigner">
+ Assign to:
+ <select name="assignees:list" MULTIPLE size="5"
+ tal:attributes="size python:
+ min(max(len(supporters), 3), 8)">
+ <span tal:repeat="supporter supporters">
+ <option tal:content="supporter">
+ SUPPORTER
+ </option>
+ </span>
+ </select>
+ </td>
+
</tr>
<tr>