'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:
        subform = DIV(_class='embeddedComponent')
        headers = self.headers(data, readonly=readonly)
        if headers:
            subform.append(headers)
        subform.append(DIV(item_rows, _class='inline-items'))
        if action_rows:
            subform.append(DIV(action_rows, _class='inline-edit'))
    return subform
