Added standard templates
This commit is contained in:
parent
d99e5ec840
commit
20becdbd27
14 changed files with 293 additions and 24 deletions
14
citoplasma/templates/forms/modelform.phtml
Normal file
14
citoplasma/templates/forms/modelform.phtml
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
<%def name="check_required(required)">
|
||||
% if required:
|
||||
${'*'}
|
||||
% endif
|
||||
</%def>
|
||||
<div class="form">
|
||||
% for form in forms.values():
|
||||
% if form.type!='hidden':
|
||||
<p><label>${form.label} ${check_required(form.required)}</label>${form.form()|n} <span class="error" id="${form.name}_error">${form.txt_error}</span></p>
|
||||
% else:
|
||||
${form.form()|n}
|
||||
% endif
|
||||
% endfor
|
||||
</div>
|
||||
Loading…
Add table
Add a link
Reference in a new issue