def get_display(self):
    div = DivWdg()
    table = Table()
    div.add(table)
    table.add_row()
    if self.show_title:
        title_div = DivWdg()
        table.add_cell(title_div)
        name = self.get_name()
        title = self.get_title()
        if (not title):
            title = name
        title = Common.get_display_title(title)
        title_div.add(('%s:' % title))
        title_div.add_style('width: 80px')
        title_div.add_style('font-weight: bold')
        title_div.add_style('margin-left: 15px')
        title_div.add_style('padding-top: 2px')
    td = table.add_cell()
    op = DivWdg('is')
    td.add(op)
    td = table.add_cell()
    op = DivWdg(' between&nbsp;&nbsp;&nbsp;')
    op.add_style('margin-left: 5px')
    td.add(op)
    start_date = self.values.get('start_date')
    end_date = self.values.get('end_date')
    from tactic.ui.widget import CalendarInputWdg
    td = table.add_cell()
    cal1 = CalendarInputWdg('start_date')
    if start_date:
        cal1.set_value(start_date)
    td.add(cal1)
    td = table.add_cell()
    spacing = DivWdg('&nbsp;and&nbsp;')
    td.add(spacing)
    td = table.add_cell()
    cal2 = CalendarInputWdg('end_date')
    if end_date:
        cal2.set_value(end_date)
    td.add(cal2)
    return div
def get_display(self):
    div = DivWdg()
    table = Table()
    div.add(table)
    table.add_row()
    if self.show_title:
        title_div = DivWdg()
        table.add_cell(title_div)
        name = self.get_name()
        title = self.get_title()
        if (not title):
            title = name
        title = Common.get_display_title(title)
        title_div.add(('%s:' % title))
        title_div.add_style('width: 80px')
        title_div.add_style('font-weight: bold')
        title_div.add_style('margin-left: 15px')
        title_div.add_style('padding-top: 2px')
    td = table.add_cell()
    op = DivWdg('is')
    td.add(op)
    td = table.add_cell()
    op = DivWdg(' between&nbsp;&nbsp;&nbsp;')
    op.add_style('margin-left: 5px')
    td.add(op)
    start_date = self.values.get('start_date')
    end_date = self.values.get('end_date')
    from tactic.ui.widget import CalendarInputWdg
    td = table.add_cell()
    cal1 = CalendarInputWdg('start_date')
    if start_date:
        cal1.set_value(start_date)
    td.add(cal1)
    td = table.add_cell()
    spacing = DivWdg('&nbsp;and&nbsp;')
    td.add(spacing)
    td = table.add_cell()
    cal2 = CalendarInputWdg('end_date')
    if end_date:
        cal2.set_value(end_date)
    td.add(cal2)
    return div