From 99a556ddd2f2b92621bee374f8bfa03332e2c4af Mon Sep 17 00:00:00 2001 From: Antoine Durand-Gasselin Date: Mon, 22 Jun 2009 21:14:08 +0200 Subject: [PATCH] [wiki/inscription] on ajoute des classes pour de jolies css darcs-hash:20090622191408-bd074-d5f4cc2b1ecc022900c5245100d1baf059990271.gz --- wiki/action/inscription.py | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/wiki/action/inscription.py b/wiki/action/inscription.py index 99577184..8719dcfc 100644 --- a/wiki/action/inscription.py +++ b/wiki/action/inscription.py @@ -77,19 +77,18 @@ class Field(): return ok def render(self, request, parser): - champ = html.UL() - champ.append(html.LI().append(self.prompt)) + champ = html.UL(CLASS="formulaire_field") + champ.append(html.LI(CLASS="formulaire_id").append(self.prompt)) input = html.INPUT(type=self.input_type,name=self.id,value=self.default) - champ.append(html.LI().append(input)) + champ.append(html.LI(CLASS="formulaire_input").append(input)) if self.error_txt: error = wikiutil.renderText(request, parser, self.error_txt) - champ.append(html.LI().append(error)) + champ.append(html.LI(CLASS="formulaire_error").append(error)) if self.error_msg: request.add_msg(self.error_msg) - return champ def is_name(self): @@ -186,6 +185,7 @@ def _create_form(request, parser, formulaire): f.append(html.LI().append(champ)) ret.append(f) + ret.append(html.HR(CLASS= "invisiblesep")) ret.append(html.INPUT(type="submit", name="inscrire", value=u"Me préinscrire")) return unicode(ret) @@ -216,6 +216,7 @@ def _perform_inscription(request, formulaire): def execute(pagename, request): request.page = Page(request, pagename) request.formatter.setPage(request.page) + request.loadTheme('crans-www') formulaire = FormulaireInscription(request) post = request.form parser = wikiutil.searchAndImportPlugin(request.cfg, "parser", request.page.pi['format'])