Fixes in coreforms and ausers

This commit is contained in:
absurdo 2023-10-09 17:56:56 +02:00
parent deeec158d6
commit 7f1a3adf22
3 changed files with 8 additions and 4 deletions

View file

@ -42,12 +42,13 @@ class BaseForm:
self.error=False
self.name_field_id=self.name+'_form'
self.help=''
self.placeholder=''
def form(self):
"""Method for returm the html code of the form
"""
return '<input type="'+self.type+'" class="'+self.css+'" name="'+self.name+'" id="'+self.name_field_id+'" value="'+self.setform(self.default_value)+'" />'
return '<input type="'+self.type+'" class="'+self.css+'" name="'+self.name+'" id="'+self.name_field_id+'" value="'+self.setform(self.default_value)+'" placeholder="'+self.placeholder+'" />'
def show_formatted(self, value):
"""Method for show the value of form formatted