make gpgfp readonly and hidden per default, reference jquery

- add support for per template extra head elements
- add jquery link to showform.mako
- hide gpgfpfield and make it read-only
This commit is contained in:
Jan Dittberner 2009-01-23 14:23:53 +01:00
parent 2ac9f6dc5a
commit 659dbaed19
3 changed files with 11 additions and 3 deletions

View file

@ -55,3 +55,7 @@ td p {
.errormsg {
color:red;
}
.hidden {
display:none;
}

View file

@ -24,6 +24,7 @@ License along with this program. If not, see
<head>
<title>${_('Debian Developer Portfolio Service')}${self.titleaddon()}</title>
${h.stylesheet_link('/stylesheets/style.css')}
${self.extrahead()}
</head>
<body>
<div id="header">
@ -43,3 +44,4 @@ License along with this program. If not, see
</div>
</body>
</html>
<%def name="extrahead()"></%def>

View file

@ -22,6 +22,7 @@ License along with this program. If not, see
<%def name="titleaddon()">
- ${_('Enter your personal information')}
</%def>
<%def name="extrahead()">${h.javascript_link('/javascript/jquery/jquery.js')}</%def>
${h.form(h.url_for(action='urllist'), method='get')}
<fieldset id="ddportfolio">
<legend>${_('Debian Developer Portfolio')}</legend>
@ -43,14 +44,15 @@ ${h.form(h.url_for(action='urllist'), method='get')}
</label><br />
${h.text('name', request.params.get('name', None), id='name')}<br />
</div>
<div id="gpgfpfield">
<div id="gpgfpfield" class="hidden">
<label for="gpgfp">${_('GPG fingerprint:')}
% if 'gpgfp' in c.messages['errors']:
<br />
<span class="errormsg">${c.messages['errors']['gpgfp']}</span>
% endif
</label><br />
${h.text('gpgfp', request.params.get('gpgfp', None), id='gpgfp')}<br />
${h.text('gpgfp', request.params.get('gpgfp', None),
id='gpgfp', readonly='readonly')}<br />
</div>
<div id="usernamefield">
<label for="username">${_('Debian user name:')}