From c2c1c5b5f2faa890ff474995f0cf19bd4b2378b5 Mon Sep 17 00:00:00 2001 From: Emmanuel Viennet Date: Sat, 11 Dec 2021 09:58:04 +0100 Subject: [PATCH] =?UTF-8?q?Pour=20une=20poign=C3=A9e=20d'octets?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/scodoc/TrivialFormulator.py | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/app/scodoc/TrivialFormulator.py b/app/scodoc/TrivialFormulator.py index 7e8f9bd8..acbe8d8c 100644 --- a/app/scodoc/TrivialFormulator.py +++ b/app/scodoc/TrivialFormulator.py @@ -334,7 +334,7 @@ class TF(object): buttons_markup = "" if self.submitbutton: buttons_markup += ( - '' + '' % ( self.formid, self.formid, @@ -344,7 +344,7 @@ class TF(object): ) if self.cancelbutton: buttons_markup += ( - ' ' + ' ' % (self.formid, self.formid, self.cancelbutton) ) @@ -364,7 +364,7 @@ class TF(object): '
' % (self.form_url, self.method, self.formid, enctype, name, klass) ) - R.append('' % self.formid) + R.append('' % self.formid) if self.top_buttons: R.append(buttons_markup + "

") R.append('') @@ -406,7 +406,7 @@ class TF(object): else: checked = "" lab.append( - '' + '' % ("tf-checked", field, checked) ) if title_bubble: @@ -439,13 +439,13 @@ class TF(object): add_no_enter_js = True # lem.append('onchange="document.%s.%s.focus()"'%(name,nextitemname)) # lem.append('onblur="document.%s.%s.focus()"'%(name,nextitemname)) - lem.append(('value="%(' + field + ')s" />') % values) + lem.append(('value="%(' + field + ')s" >') % values) elif input_type == "password": lem.append( '') % values) + lem.append(('value="%(' + field + ')s" >') % values) elif input_type == "radio": labels = descr.get("labels", descr["allowed_values"]) for i in range(len(labels)): @@ -549,24 +549,24 @@ class TF(object): if descr.get("type", "") == "list": for v in values[field]: lem.append( - '' + '' % (field, v, attribs) ) else: lem.append( - '' + '' % (field, wid, values[field], attribs) ) elif input_type == "separator": pass elif input_type == "file": lem.append( - '' + '' % (field, size, values[field], attribs) ) elif input_type == "date": # JavaScript widget for date input lem.append( - '' + '' % (field, values[field]) ) elif input_type == "text_suggest": @@ -716,7 +716,7 @@ var {field}_as = new bsn.AutoSuggest('{field}', {field}_opts); bool_val = 0 R.append(labels[bool_val]) if bool_val: - R.append('' % field) + R.append('' % field) else: labels = descr.get("labels", descr["allowed_values"]) for i in range(len(labels)):