source: main/waeup.sirp/trunk/src/waeup/sirp/browser/templates/usereditformpage.pt @ 7162

Last change on this file since 7162 was 7149, checked in by Henrik Bettermann, 13 years ago

Use PasswordValidator? also when adding or editing portal users. This is also a fix because the old UserEditFormPage? did not use the setPassword method but stored passwords as plain text.

File size: 2.0 KB
Line 
1<form action="." tal:attributes="action request/URL" method="post"
2      class="edit-form" enctype="multipart/form-data">
3
4  <h2 i18n:translate=""
5    tal:condition="view/label"
6    tal:content="view/label">Label</h2>
7
8  <div class="form-status"
9      tal:define="status view/status"
10      tal:condition="status">
11      Form Status:
12      <span i18n:translate="" tal:content="view/status">
13        Form status summary
14      </span>
15      <ul tal:condition="view/errors">
16        <li tal:repeat="error view/error_views">
17           <span tal:replace="structure error">Error Type</span>
18        </li>
19      </ul>
20  </div>
21
22  <table class="zebra">
23    <tbody>
24      <tal:block repeat="widget view/widgets">
25        <tr>
26          <td class="label">
27            <label tal:attributes="for widget/name">
28              <span class="required" tal:condition="widget/required">*</span>
29              <span i18n:translate="" tal:content="widget/label">label</span>:
30            </label>
31          </td>
32          <td class="field">
33            <span class="widget" tal:content="structure widget">
34              <input type="text" />
35            </span>
36            <tal:error tal:condition="widget/error">
37              <span tal:replace="structure widget/error">error</span>
38            </tal:error>
39            <tal:hint tal:condition="widget/hint">
40              <span class="hint" tal:content="structure widget/hint">hint</span>
41            </tal:hint>
42          </td>
43        </tr>
44      </tal:block>
45      <tr>
46        <td class="label"><label>Password:</label></td>
47        <td>
48          <input name="password" type="password"  />
49        </td>
50      </tr>
51      <tr>
52        <td class="label"><label>Retype password:</label></td>
53        <td>
54          <input name="control_password" type="password" />
55        </td>
56      </tr>
57      <tal:files content="structure provider:files" />
58    </tbody>
59  </table>
60  <div class="actionButtons" tal:condition="view/availableActions">
61    <input tal:repeat="action view/actions"
62           tal:replace="structure action/render"
63           />
64  </div>
65</form>
Note: See TracBrowser for help on using the repository browser.