PageRenderTime 2ms CodeModel.GetById 11ms app.highlight 0ms RepoModel.GetById 1ms app.codeStats 0ms

/templates/user/username.mako

https://bitbucket.org/cistrome/cistrome-harvard/
Mako | 22 lines | 20 code | 2 blank | 0 comment | 1 complexity | 1f539a2330cd42a2fe576f8d66197a25 MD5 | raw file
 1<%inherit file="/base.mako"/>
 2
 3<% is_admin = cntrller == 'admin' and trans.user_is_admin() %>
 4
 5<h2>Manage Public Name</h2>
 6<div class="toolForm">
 7    <form name="username" id="username" action="${h.url_for( controller='user', action='edit_username', cntrller=cntrller, user_id=trans.security.encode_id( user.id ) )}" method="post" >
 8        <div class="toolFormTitle">Login Information</div>
 9        <div class="form-row">
10            <label>Public name:</label>
11            <input type="text" name="username" size="40" value="${username}"/>
12            <div class="toolParamHelp" style="clear: both;">
13                Your public name is an optional identifier that will be used to generate addresses for information
14                you share publicly. Public names must be at least four characters in length and contain only lower-case
15                letters, numbers, and the '-' character.
16            </div>
17        </div>
18        <div class="form-row">
19            <input type="submit" name="change_username_button" value="Save"/>
20        </div>
21    </form>
22</div>