You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
81 lines
3.0 KiB
81 lines
3.0 KiB
{% include "shared/errors.html" %} |
|
|
|
<table class="attr"> |
|
<tr> |
|
<th><label for="user-number">{% filter i18n %}Number{% endfilter %}</label></th> |
|
<td><input size="8" type="text" name="NUMBER" value="{{user.number}}" id="user-number" /></td> |
|
</tr> |
|
<tr> |
|
<th><label for="user-name">{% filter i18n %}Name{% endfilter %}</label></th> |
|
<td><input type="text" value="{{user.name}}" name="NAME" id="user-name" /></td> |
|
</tr> |
|
<tr> |
|
<th><label for="password">Password</label></th> |
|
<td><input id="password" type="text" name="PASSWORD" /></td> |
|
</tr> |
|
<tr> |
|
<th><label for="user-full-name">{% filter i18n %}Full Name{% endfilter %}</label></th> |
|
<td><input type="text" value="{{user.full-name}}" name="FULL-NAME" id="user-full-name" /></td> |
|
</tr> |
|
<tr> |
|
<th>{% filter i18n %}Sex{% endfilter %}</th> |
|
<td> |
|
<input type="radio" value="1" {%ifequal user.sex 1%}checked="checked"{%endifequal%} name="SEX" id="member-sex-1" /> |
|
<label for="member-sex-1">{% filter i18n %}Male{% endfilter %}</label> |
|
<input type="radio" value="2" {%ifequal user.sex 2%}checked="checked"{%endifequal%} name="SEX" id="member-sex-2" /> |
|
<label for="member-sex-1">{% filter i18n %}Female{% endfilter %}</label> |
|
</td> |
|
</tr> |
|
<tr> |
|
<th><label for="user-birthday">{% filter i18n %}Birthday{% endfilter %}</label></th> |
|
<td><select id="member-birthday-li" name="BIRTHDAY-YEAR"> |
|
{{ user.birthday |
|
| lisp: (lambda(timestamp) |
|
(let((current-year(local-time:timestamp-year(local-time:now)))) |
|
(loop :for i :upfrom 1940 :to current-year |
|
:with target = (or (and timestamp |
|
(local-time:timestamp-year timestamp)) |
|
(- current-year 20)) |
|
:collect (format nil "<option value=\"~D\"~@[ ~A~]>~2:*~D</option>~%" |
|
i (when(= target i) |
|
"selected=\"selected\""))))) |
|
| join:"" |
|
| safe |
|
}} |
|
</select> |
|
<select id="member-birthday-2i" name="BIRTHDAY-MONTH"> |
|
{{ user.birthday |
|
| lisp: (lambda(timestamp) |
|
(loop :for i :upfrom 1 to 12 |
|
:with target = (or (and timestamp |
|
(local-time:timestamp-month timestamp)) |
|
1) |
|
:collect (format nil "<option value=\"~D\"~@[ ~A~]>~A</option>~%" |
|
i (when(= target i) |
|
"selected=\"selected\"") |
|
(aref local-time:+month-names+ i)))) |
|
| join:"" |
|
| safe |
|
}} |
|
</select> |
|
<select id="birthday-3i" name="BIRTHDAY-DAY"> |
|
{{ user.birthday |
|
| lisp: (lambda(timestamp) |
|
(loop :for i :upfrom 1 to 31 |
|
:with target = (or (and timestamp |
|
(local-time:timestamp-day timestamp)) |
|
1) |
|
:collect (format nil "<option value=\"~D\"~@[ ~A~]>~2:*~D</option>~%" |
|
i (when(= target i) |
|
"selected=\"selected\"")))) |
|
| join:"" |
|
| safe |
|
}} |
|
</select> |
|
</td> |
|
</tr> |
|
<tr> |
|
<th><label for="user-email">{% filter i18n %}Email{% endfilter %}</label></th> |
|
<td><input type="text" name="EMAIL" id="user-email" value="{{user.email}}"/></td> |
|
</tr> |
|
{% include "shared/user_form.html" %}
|
|
|