Hide keyboard shortcuts

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 * 

3 

4def controlRow(inputList=[]): 

5 """ 

6 *generate a form row* 

7 

8 **Key Arguments** 

9 

10 - ``inputList`` -- list of inputs for the control row 

11  

12 

13 **Return** 

14 

15 - ``controlRow`` -- the controlRow 

16  

17 """ 

18 if len(inputList) > 1: 

19 row = "controls-row" 

20 else: 

21 row = "" 

22 

23 content = "" 

24 for iinput in inputList: 

25 content = """%(content)s %(iinput)s""" % locals() 

26 

27 controlRow = """ 

28 <div class="controls %(row)s"> 

29 %(content)s 

30 </div>""" % locals() 

31 

32 return controlRow