Coverage for khufu/forms/controlRow.py : 100%

Hot-keys on this page
r m x p toggle line displays
j k next/prev highlighted chunk
0 (zero) top of page
1 (one) first highlighted chunk
1# encoding: utf-8
2from . import *
4def controlRow(inputList=[]):
5 """
6 *generate a form row*
8 **Key Arguments**
10 - ``inputList`` -- list of inputs for the control row
13 **Return**
15 - ``controlRow`` -- the controlRow
17 """
18 if len(inputList) > 1:
19 row = "controls-row"
20 else:
21 row = ""
23 content = ""
24 for iinput in inputList:
25 content = """%(content)s %(iinput)s""" % locals()
27 controlRow = """
28 <div class="controls %(row)s">
29 %(content)s
30 </div>""" % locals()
32 return controlRow