'Outer container for the subform
@param data: the data dict (as returned from extract())
@param item_rows: the item rows
@param action_rows: the (hidden) action rows
@param empty: no data in this component
@param readonly: render read-only'

def subform(self, data, item_rows, action_rows, empty=False, readonly=False):

    if empty:
        subform = current.T('No    entries    currently    available')
    else:
        headers = self.headers(data, readonly=readonly)
        subform = TABLE(headers, TBODY(item_rows), TFOOT(action_rows), _class='    '.join(('embeddedComponent', self.layout_class)))
    return subform
