def get_checkbox(state, custom_checkbox=False, clickable_checkbox=False):
    """Get checkbox tag."""
    if custom_checkbox:
        return ('<label class="task-list-control">' + 
            '<input type="checkbox"%s%s/>' % (' disabled' if not
            clickable_checkbox else '', ' checked' if state.lower() == 'x' else
            '') + '<span class="task-list-indicator"></span></label> ')
    return '<input type="checkbox"%s%s/> ' % (' disabled' if not
        clickable_checkbox else '', ' checked' if state.lower() == 'x' else '')
