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'])