| 1 | <%inherit file="/base.mako"/> |
|---|
| 2 | |
|---|
| 3 | <%def name="render_user_info()"> |
|---|
| 4 | <h2>Manage User Information</h2> |
|---|
| 5 | %if not admin_view: |
|---|
| 6 | <ul class="manage-table-actions"> |
|---|
| 7 | <li> |
|---|
| 8 | <a class="action-button" href="${h.url_for( controller='user', action='index', webapp=webapp )}"> |
|---|
| 9 | <span>User preferences</span></a> |
|---|
| 10 | </li> |
|---|
| 11 | </ul> |
|---|
| 12 | %endif |
|---|
| 13 | <div class="toolForm"> |
|---|
| 14 | <form name="login_info" id="login_info" action="${h.url_for( controller='user', action='edit_info', user_id=user.id, admin_view=admin_view )}" method="post" > |
|---|
| 15 | <input type="hidden" name="webapp" value="${webapp}" size="40"/> |
|---|
| 16 | <div class="toolFormTitle">Login Information</div> |
|---|
| 17 | <div class="form-row"> |
|---|
| 18 | <label>Email address:</label> |
|---|
| 19 | <input type="text" name="email" value="${email}" size="40"/> |
|---|
| 20 | </div> |
|---|
| 21 | <div class="form-row"> |
|---|
| 22 | <label>Public name:</label> |
|---|
| 23 | <input type="text" name="username" size="40" value="${username}"/> |
|---|
| 24 | <div class="toolParamHelp" style="clear: both;"> |
|---|
| 25 | Your public name is an optional identifier that will be used to generate addresses for information |
|---|
| 26 | you share publicly. Public names must be at least four characters in length and contain only lower-case |
|---|
| 27 | letters, numbers, and the '-' character. |
|---|
| 28 | </div> |
|---|
| 29 | </div> |
|---|
| 30 | <div class="form-row"> |
|---|
| 31 | <input type="hidden" name="webapp" value="${webapp}" size="40"/> |
|---|
| 32 | <input type="submit" name="login_info_button" value="Save"/> |
|---|
| 33 | </div> |
|---|
| 34 | </form> |
|---|
| 35 | </div> |
|---|
| 36 | <p></p> |
|---|
| 37 | <div class="toolForm"> |
|---|
| 38 | <form name="change_password" id="change_password" action="${h.url_for( controller='user', action='edit_info', user_id=user.id, admin_view=admin_view )}" method="post" > |
|---|
| 39 | <input type="hidden" name="webapp" value="${webapp}" size="40"/> |
|---|
| 40 | <div class="toolFormTitle">Change Password</div> |
|---|
| 41 | %if not admin_view: |
|---|
| 42 | <div class="form-row"> |
|---|
| 43 | <label>Current Password:</label> |
|---|
| 44 | <input type="password" name="current" value="${current}" size="40"/> |
|---|
| 45 | </div> |
|---|
| 46 | %endif |
|---|
| 47 | <div class="form-row"> |
|---|
| 48 | <label>New Password:</label> |
|---|
| 49 | <input type="password" name="password" value="${password}" size="40"/> |
|---|
| 50 | </div> |
|---|
| 51 | <div class="form-row"> |
|---|
| 52 | <label>Confirm:</label> |
|---|
| 53 | <input type="password" name="confirm" value="${confirm}" size="40"/> |
|---|
| 54 | </div> |
|---|
| 55 | <div class="form-row"> |
|---|
| 56 | <input type="hidden" name="webapp" value="${webapp}" size="40"/> |
|---|
| 57 | <input type="submit" name="change_password_button" value="Save"/> |
|---|
| 58 | </div> |
|---|
| 59 | </form> |
|---|
| 60 | </div> |
|---|
| 61 | </%def> |
|---|