

@presentation.render_for(BoardLabels)
@presentation.render_for(BoardLabels, model='edit')
def render_BoardLabels_edit(self, h, comp, *args):
    'Render the labels configuration panel'
    with h.div(class_='panel-section'):
        (h << h.div(_('Card labels'), class_='panel-section-title'))
        with h.ul(class_='board-labels clearfix'):
            for (title, label) in self.labels:
                with h.li:
                    with h.div(class_='label-title'):
                        (h << title.render(h.AsyncRenderer()))
                    with h.div(class_='label-color'):
                        (h << label)
    return h.root

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