code: def gen_checkbox_add(sig_dic):
      '''
      for checkbox
      '''
      html_wuneisheshi = '''<label  for="{0}"><span>
      <a class="glyphicon glyphicon-star" style="color: red;font-size: xx-small;">
      </a>{1}</span>'''.format(sig_dic['en'], sig_dic['zh'])
  
      dic_tmp = sig_dic['dic']
      for key in dic_tmp.keys():
          tmp_str = '''
          <input id="{0}" name="{0}" type="checkbox" class="form-control" value="{1}">{2}
          '''.format(sig_dic['en'], key, dic_tmp[key])
          html_wuneisheshi += tmp_str
  
      html_wuneisheshi += '''</label>'''
      return html_wuneisheshf gen_checkbox_add(sig_dic):
      '''
      for checkbox
      '''
      html_wuneisheshi = '''<label  for="{0}"><span>
      <a class="glyphicon glyphicon-star" style="color: red;font-size: xx-small;">
      </a>{1}</span>'''.format(sig_dic['en'], sig_dic['zh'])
  
      dic_tmp = sig_dic['dic']
      for key in dic_tmp.keys():
          tmp_str = '''
          <input id="{0}" name="{0}" type="checkbox" class="form-control" value="{1}">{2}
          '''.format(sig_dic['en'], key, dic_tmp[key])
          html_wuneisheshi += tmp_str
  
      html_wuneisheshi += '''</label>'''
      return html_wuneisheshi
docs: for checkbox