code: def gen_radio_edit(sig_dic):
      '''
      editing for HTML radio control.
      '''
      edit_zuoxiang = '''7
      <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="radio"  class="form-control" value="{1}"
          {{% if  '{0}' in postinfo.extinfo and postinfo.extinfo['{0}'] == '{1}' %}}
          checked
          {{% end %}}
          >{2}
          '''.format(sig_dic['en'], key, dic_tmp[key])
          edit_zuoxiang += tmp_str
  
      edit_zuoxiang += '''</label>'''
      return edit_zuoxianf gen_radio_edit(sig_dic):
      '''
      editing for HTML radio control.
      '''
      edit_zuoxiang = '''7
      <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="radio"  class="form-control" value="{1}"
          {{% if  '{0}' in postinfo.extinfo and postinfo.extinfo['{0}'] == '{1}' %}}
          checked
          {{% end %}}
          >{2}
          '''.format(sig_dic['en'], key, dic_tmp[key])
          edit_zuoxiang += tmp_str
  
      edit_zuoxiang += '''</label>'''
      return edit_zuoxiang
docs: editing for HTML radio control.