[wiki/inscription] on ajoute des classes pour de jolies css

darcs-hash:20090622191408-bd074-d5f4cc2b1ecc022900c5245100d1baf059990271.gz
This commit is contained in:
Antoine Durand-Gasselin 2009-06-22 21:14:08 +02:00
parent 5e6e3d9577
commit 99a556ddd2

View file

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