forked from jan/debianmemberportfolio
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:
parent
2ac9f6dc5a
commit
659dbaed19
3 changed files with 11 additions and 3 deletions
|
@ -54,4 +54,8 @@ td p {
|
||||||
|
|
||||||
.errormsg {
|
.errormsg {
|
||||||
color:red;
|
color:red;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.hidden {
|
||||||
|
display:none;
|
||||||
|
}
|
||||||
|
|
|
@ -24,6 +24,7 @@ License along with this program. If not, see
|
||||||
<head>
|
<head>
|
||||||
<title>${_('Debian Developer Portfolio Service')}${self.titleaddon()}</title>
|
<title>${_('Debian Developer Portfolio Service')}${self.titleaddon()}</title>
|
||||||
${h.stylesheet_link('/stylesheets/style.css')}
|
${h.stylesheet_link('/stylesheets/style.css')}
|
||||||
|
${self.extrahead()}
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<div id="header">
|
<div id="header">
|
||||||
|
@ -43,3 +44,4 @@ License along with this program. If not, see
|
||||||
</div>
|
</div>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
<%def name="extrahead()"></%def>
|
||||||
|
|
|
@ -22,6 +22,7 @@ License along with this program. If not, see
|
||||||
<%def name="titleaddon()">
|
<%def name="titleaddon()">
|
||||||
- ${_('Enter your personal information')}
|
- ${_('Enter your personal information')}
|
||||||
</%def>
|
</%def>
|
||||||
|
<%def name="extrahead()">${h.javascript_link('/javascript/jquery/jquery.js')}</%def>
|
||||||
${h.form(h.url_for(action='urllist'), method='get')}
|
${h.form(h.url_for(action='urllist'), method='get')}
|
||||||
<fieldset id="ddportfolio">
|
<fieldset id="ddportfolio">
|
||||||
<legend>${_('Debian Developer Portfolio')}</legend>
|
<legend>${_('Debian Developer Portfolio')}</legend>
|
||||||
|
@ -43,14 +44,15 @@ ${h.form(h.url_for(action='urllist'), method='get')}
|
||||||
</label><br />
|
</label><br />
|
||||||
${h.text('name', request.params.get('name', None), id='name')}<br />
|
${h.text('name', request.params.get('name', None), id='name')}<br />
|
||||||
</div>
|
</div>
|
||||||
<div id="gpgfpfield">
|
<div id="gpgfpfield" class="hidden">
|
||||||
<label for="gpgfp">${_('GPG fingerprint:')}
|
<label for="gpgfp">${_('GPG fingerprint:')}
|
||||||
% if 'gpgfp' in c.messages['errors']:
|
% if 'gpgfp' in c.messages['errors']:
|
||||||
<br />
|
<br />
|
||||||
<span class="errormsg">${c.messages['errors']['gpgfp']}</span>
|
<span class="errormsg">${c.messages['errors']['gpgfp']}</span>
|
||||||
% endif
|
% endif
|
||||||
</label><br />
|
</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>
|
||||||
<div id="usernamefield">
|
<div id="usernamefield">
|
||||||
<label for="username">${_('Debian user name:')}
|
<label for="username">${_('Debian user name:')}
|
||||||
|
|
Loading…
Reference in a new issue