code: def gen_checkbox_edit(sig_dic):
      '''
      for checkbox
      '''
      edit_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}"
           {{% if "{1}" in postinfo.extinfo["{0}"] %}}
           checked="checked"
           {{% end %}}
           >{2} '''.format(sig_dic['en'], key, dic_tmp[key])
          edit_wuneisheshi += tmp_str
  
      edit_wuneisheshi += '''</label>'''
      return edit_wuneisheshf gen_checkbox_edit(sig_dic):
      '''
      for checkbox
      '''
      edit_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}"
           {{% if "{1}" in postinfo.extinfo["{0}"] %}}
           checked="checked"
           {{% end %}}
           >{2} '''.format(sig_dic['en'], key, dic_tmp[key])
          edit_wuneisheshi += tmp_str
  
      edit_wuneisheshi += '''</label>'''
      return edit_wuneisheshi
docs: for checkbox