PageRenderTime 9ms CodeModel.GetById 1ms app.highlight 3ms RepoModel.GetById 1ms app.codeStats 0ms

/www/dsp/edit-user.dsp

http://github.com/cgay/wiki
Unknown | 66 lines | 64 code | 2 blank | 0 comment | 0 complexity | d1be67597e0f72096bf711907cdd5685 MD5 | raw file
 1<%dsp:taglib name="wiki"/>
 2<%dsp:include url="xhtml-start.dsp"/>
 3<head>
 4  <title>Dylan Wiki: Edit User <dsp:get name="user-name"/></title>
 5  <%dsp:include url="meta.dsp"/>
 6</head>
 7<body>
 8  <%dsp:include url="header.dsp"/>
 9  <div id="midsection">
10    <div id="navigation">
11      <wiki:include-page title="Wiki Left Nav"/>
12    </div>
13    <div id="content">
14      <h2><dsp:get name="user-name"/></h2>
15
16      <dsp:show-page-errors/>
17      <dsp:show-page-notes/>
18
19      <dsp:unless test="exists?" name="user-name">
20        <p class="hint">
21          This user doesn't exist. You can create it below.
22        </p>
23      </dsp:unless>
24      <form action="<wiki:base/>/user/edit" method="post">
25        <fieldset id="general" class="splitted">
26          <ol>
27            <li id="username">
28              <label id="username-label" for="username-input">Name <em title="required">*</em></label>
29              <input id="username-input" type="text" name="user-name"
30                     <dsp:if-error field-name="user-name" text='class="invalid-input"'/>
31                     value="<dsp:get name='user-name' context='request,page'/>"/>
32              <dsp:show-field-errors field-name="user-name"/>
33            </li>
34            <li id="password">
35              <label id="password-label" for="password-input">Password <em title="required">*</em></label>
36              <input id="password-input" type="password" name="password"
37                     <dsp:if-error field-name="password" text='class="invalid-input"'/>
38                     value="<dsp:get name='password' context='request,page'/>"/>
39              <dsp:show-field-errors field-name="password"/>
40            </li>
41            <li id="email">
42              <label id="email-label" for="email-input">E-Mail <em title="required">*</em></label>
43              <input id="email-input" type="text" name="email"
44                     <dsp:if-error field-name="email" text='class="invalid-input"'/>
45                     value="<dsp:get name='email' context='request,page'/>"/>
46              <dsp:show-field-errors field-name="email"/>
47            </li>
48            <dsp:when test="true?" name="active-user-is-admin?">
49              <li id="admin">
50                <label id="admini-label" for="admin-input">Administrator?</label>
51                <input id="admin-input" type="checkbox" name="admin?"
52                       <dsp:when test="false?" name="active-user-is-admin?">disabled="disabled"</dsp:when>
53                       <dsp:when test="true?" name="admin?" context="request,page">checked="checked"</dsp:when>
54                       <dsp:if-error field-name="admin?" text='class="invalid-input"'/> />
55                <dsp:show-field-errors field-name="admin?"/>
56              </li>
57            </dsp:when>
58          </ol>
59        </fieldset>
60        <input type="submit" value="<dsp:get name='button-text'/>"/>
61      </form>
62    </div>
63  </div>
64  <%dsp:include url="footer.dsp"/>
65</body>
66</html>