Added new field
This commit is contained in:
parent
87bc64a673
commit
ecbc9eae71
1 changed files with 22 additions and 0 deletions
22
paramecio/cromosoma/extraforms/usernameform.py
Normal file
22
paramecio/cromosoma/extraforms/usernameform.py
Normal file
|
|
@ -0,0 +1,22 @@
|
||||||
|
|
||||||
|
from paramecio.cromosoma.coreforms import BaseForm
|
||||||
|
from paramecio.citoplasma.mtemplates import env_theme, PTemplate
|
||||||
|
|
||||||
|
env=env_theme(__file__)
|
||||||
|
|
||||||
|
t=PTemplate(env)
|
||||||
|
|
||||||
|
class TextHTMLForm(BaseForm):
|
||||||
|
|
||||||
|
def __init__(self, name, value, t_add=None):
|
||||||
|
|
||||||
|
super().__init__(name, value)
|
||||||
|
|
||||||
|
self.t=t_add
|
||||||
|
|
||||||
|
if t_add==None:
|
||||||
|
self.t=t
|
||||||
|
|
||||||
|
def form(self):
|
||||||
|
|
||||||
|
return self.t.load_template('forms/texthtmlform.phtml', form=self)
|
||||||
Loading…
Add table
Add a link
Reference in a new issue