def generate_item_template(item, users):
    """Generates HTML code for the item and participant for the html body

    Args:
        item (List[str]): A list of item names
        users (List[str]): A list of user participants
    
    Returns:
        str: HTML code to generate parts of the body.
    """
    user_template = """
    {0} 
    <input type="checkbox" id="{1}:{2}:cb", name="{1}:{2}:cb", value={3}>
    <input type="text" id="{1}:{2}:tf" name="{1}:{2}:tf" size="2", value={4}>
    """
    template = """
    {} : {} <br>
    """.format(item[0], item[1])
    for u in users:
        template += user_template.format(u, item[0], u, "on", "")
    template += "<br><br>"
    return template