Little fixes in form html templates
This commit is contained in:
parent
c08196aff5
commit
39ba0de29e
2 changed files with 9 additions and 3 deletions
|
|
@ -5,14 +5,20 @@
|
||||||
</%def>
|
</%def>
|
||||||
<%def name="help(help, name)">
|
<%def name="help(help, name)">
|
||||||
% if help:
|
% if help:
|
||||||
<i class="fa fa-question-circle tooltip" data-tooltip-content="#tooltip_${name}_content" style="cursor:pointer;"></i> \
|
<i class="fa fa-question-circle tooltip" data-tooltip-content="#tooltip_${name}_content" style="cursor:pointer;"></i>
|
||||||
<div class="tooltip_templates" style="display:none;"><div id="tooltip_${name}_content">${help|n}</div></div>
|
<!--<div class="tooltip_templates" style="display:none;"><div id="tooltip_${name}_content">${help|n}</div></div>-->
|
||||||
|
% endif
|
||||||
|
</%def>
|
||||||
|
<%def name="help_tooltip(help, name)">
|
||||||
|
% if help:
|
||||||
|
<div class="tooltip_templates" style="display:none;"><div id="tooltip_${name}_content">${help|n}</div></div>
|
||||||
% endif
|
% endif
|
||||||
</%def>
|
</%def>
|
||||||
<div class="form">
|
<div class="form">
|
||||||
% for form in forms.values():
|
% for form in forms.values():
|
||||||
% if form.type!='hidden':
|
% if form.type!='hidden':
|
||||||
<p><label>${form.label} ${check_required(form.required)} ${help(form.help, form.name)}</label>${form.form()|n} <span class="error" id="${form.name}_error">${form.txt_error}</span></p>
|
<p><label>${form.label} ${check_required(form.required)} ${help(form.help, form.name)}</label>${form.form()|n} <span class="error" id="${form.name}_error">${form.txt_error}</span></p>
|
||||||
|
${help_tooltip(form.help, form.name)}
|
||||||
% else:
|
% else:
|
||||||
${form.form()|n}
|
${form.form()|n}
|
||||||
% endif
|
% endif
|
||||||
|
|
|
||||||
2
setup.py
2
setup.py
|
|
@ -13,7 +13,7 @@ if sys.version_info < (3, 5):
|
||||||
# If you install passlib and bcrypt, the password system will use bcrypt by default, if not, will use native crypt libc
|
# If you install passlib and bcrypt, the password system will use bcrypt by default, if not, will use native crypt libc
|
||||||
|
|
||||||
setup(name='paramecio2',
|
setup(name='paramecio2',
|
||||||
version='2.0.1',
|
version='2.0.15',
|
||||||
description='Simple Web Framework based in flask and Mako.',
|
description='Simple Web Framework based in flask and Mako.',
|
||||||
long_description='This framework is a simple framework used for create web apps. Paramecio is modular and fast. By default have a module called admin that can be used for create admin sites',
|
long_description='This framework is a simple framework used for create web apps. Paramecio is modular and fast. By default have a module called admin that can be used for create admin sites',
|
||||||
author='Antonio de la Rosa Caballero',
|
author='Antonio de la Rosa Caballero',
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue