

@presentation.render_for(BoardBackground, model='title-color-overlay')
def render_board_background_title_color_overlay(self, h, comp, *args):
    'Color chooser contained in the overlay body'
    v = var.Var(self.board.title_color)
    i = h.generate_id()
    (h << h.div(id=i, class_='label-color-picker clearfix'))
    with h.form:
        (h << h.input(type='hidden', value=v(), id=('%s-hex-value' % i)).action(v))
        (h << h.button(_('Save'), class_='btn btn-primary').action(ajax.Update(action=(lambda v=v: self.set_color(v())))))
        (h << ' ')
        (h << h.button(_('Cancel'), class_='btn').action((lambda : None)))
    (h << h.script(('YAHOO.kansha.app.addColorPicker(%s)' % ajax.py2js(i))))
    return h.root

dataset/ETHPy150Open Net-ng/kansha/kansha/board/view.py render_board_background_title_color_overlay/original