File: fieldset.mak

package info (click to toggle)
python-toscawidgets 0.9.7.2-1
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 1,080 kB
  • ctags: 1,072
  • sloc: python: 3,906; makefile: 18; sh: 13
file content (14 lines) | stat: -rw-r--r-- 428 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
<%namespace name="tw" module="tw.core.mako_util"/>\
<fieldset ${tw.attrs(
    [('id', context.get('id')),
     ('class', css_class)],
    attrs=attrs
)}>
    <legend>${tw.content(legend)}</legend>
    % for field in hidden_fields:
        ${field.display(value_for(field), **args_for(field))}
    % endfor
    % for field in fields:
        ${field.display(value_for(field), **args_for(field))} <br />
    % endfor
</fieldset>\