From 659dbaed1966a00daf417ddbe436856063a1f88f Mon Sep 17 00:00:00 2001 From: Jan Dittberner Date: Fri, 23 Jan 2009 14:23:53 +0100 Subject: [PATCH] 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 --- ddportfolioservice/public/stylesheets/style.css | 6 +++++- ddportfolioservice/templates/base.mako | 2 ++ ddportfolioservice/templates/showform.mako | 6 ++++-- 3 files changed, 11 insertions(+), 3 deletions(-) diff --git a/ddportfolioservice/public/stylesheets/style.css b/ddportfolioservice/public/stylesheets/style.css index 6e90f2c..b99d87d 100644 --- a/ddportfolioservice/public/stylesheets/style.css +++ b/ddportfolioservice/public/stylesheets/style.css @@ -54,4 +54,8 @@ td p { .errormsg { color:red; -} \ No newline at end of file +} + +.hidden { + display:none; +} diff --git a/ddportfolioservice/templates/base.mako b/ddportfolioservice/templates/base.mako index 686c000..d209ec6 100644 --- a/ddportfolioservice/templates/base.mako +++ b/ddportfolioservice/templates/base.mako @@ -24,6 +24,7 @@ License along with this program. If not, see ${_('Debian Developer Portfolio Service')}${self.titleaddon()} ${h.stylesheet_link('/stylesheets/style.css')} + ${self.extrahead()} +<%def name="extrahead()"> diff --git a/ddportfolioservice/templates/showform.mako b/ddportfolioservice/templates/showform.mako index 8aeae8b..fa37508 100644 --- a/ddportfolioservice/templates/showform.mako +++ b/ddportfolioservice/templates/showform.mako @@ -22,6 +22,7 @@ License along with this program. If not, see <%def name="titleaddon()"> - ${_('Enter your personal information')} +<%def name="extrahead()">${h.javascript_link('/javascript/jquery/jquery.js')} ${h.form(h.url_for(action='urllist'), method='get')}
${_('Debian Developer Portfolio')} @@ -43,14 +44,15 @@ ${h.form(h.url_for(action='urllist'), method='get')}
${h.text('name', request.params.get('name', None), id='name')}
-
+