

@presentation.render_for(Board, 'save_template')
def render_Board_save_template(self, h, comp, *args):
    shared = var.Var('me')
    with h.form(class_='description-form'):
        (h << h.label(_('Save this board as a template')))
        with h.select.action(shared):
            (h << h.option(_('For me only'), value='me').selected(shared))
            (h << h.option(_('For all users'), value='shared').selected(shared))
        with h.div(class_='buttons'):
            action = remote.Action((lambda : self.save_as_template((shared() == 'shared'))))
            (h << h.button(_('Save'), class_='btn btn-primary', type='submit').action(action))
            (h << ' ')
            (h << h.button(_('Cancel'), class_='btn', onclick='YAHOO.kansha.app.hideOverlay();'))
    return h.root

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