File: check_box_table.html

package info (click to toggle)
python-toscawidgets 0.9.7.2-2
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 1,080 kB
  • sloc: python: 3,906; makefile: 18; sh: 13
file content (18 lines) | stat: -rw-r--r-- 645 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
<table xmlns="http://www.w3.org/1999/xhtml" 
       xmlns:py="http://genshi.edgewall.org/"
       id="${id}"
       class="${css_class}"
       py:attrs="attrs" >
    <tbody>
    <tr py:for="i,row in enumerate(options_rows)">
        <td py:for="value, desc, attrs in row">
            <py:with vars="id_c = id_counter.next()">
            <input id="${id}_${id_c}" value="${value}" name="${name}" 
                   type="${field_type}" py:attrs="attrs" />
            <label for="${id}_${id_c}" py:content="desc" />
            </py:with>
        </td>
        <td py:for="j in xrange(num_cols - len(row))" />
    </tr>
    </tbody>
</table>