Commits

Anonymous committed b383cbc

Fix form name for calendar popup.

Comments (0)

Files changed (1)

html/user.item.html

 <div tal:condition="context/is_view_ok">
 
 <form method="POST"
+      name="userdetails"
       tal:define="required python:'username address'.split()"
       enctype="multipart/form-data"
       tal:attributes="action context/designator;
  <tr>
    <th>Contributor Form Received</th>
    <td><span tal:replace="structure context/contrib_form/field"/>
-   <tal:if condition="python:context.contrib_form or utils.is_coordinator(request)">
+   <tal:if condition="python:context.contrib_form and not utils.is_coordinator(request)">
    on: <span tal:replace="structure context/contrib_form_date/field"/>
    </tal:if>
+   <tal:if condition="python:utils.is_coordinator(request)">
+   <span tal:replace="structure python:context.contrib_form_date.field(popcal=False)"/>
+   <span tal:replace="structure python:context.contrib_form_date.popcal(form='userdetails')"/>
+   </tal:if>
    </td>
 </tr>