code: def gen_radio_view(sig_dic):
      '''
      for checkbox
      '''
      view_zuoxiang = '''
      <div class="col-sm-4"><span class="des">{0}</span></div>
      <div class="col-sm-8">
      '''.format(sig_dic['zh'])
  
      dic_tmp = sig_dic['dic']
      for key in dic_tmp.keys():
          tmp_str = '''<span class="input_text">
           {{% if  '{0}' in postinfo.extinfo and postinfo.extinfo['{0}'] == "{1}" %}}
           {2}
           {{% end %}}
           </span>'''.format(sig_dic['en'], key, dic_tmp[key])
          view_zuoxiang += tmp_str
  
      view_zuoxiang += '''</div>'''
      return view_zuoxianf gen_radio_view(sig_dic):
      '''
      for checkbox
      '''
      view_zuoxiang = '''
      <div class="col-sm-4"><span class="des">{0}</span></div>
      <div class="col-sm-8">
      '''.format(sig_dic['zh'])
  
      dic_tmp = sig_dic['dic']
      for key in dic_tmp.keys():
          tmp_str = '''<span class="input_text">
           {{% if  '{0}' in postinfo.extinfo and postinfo.extinfo['{0}'] == "{1}" %}}
           {2}
           {{% end %}}
           </span>'''.format(sig_dic['en'], key, dic_tmp[key])
          view_zuoxiang += tmp_str
  
      view_zuoxiang += '''</div>'''
      return view_zuoxiang
docs: for checkbox