code: def gen_select_list(sig_dic):
      '''
      For generating List view HTML file for SELECT.
      for each item.
      '''
      view_jushi = '''<span class="label label-primary" style="margin-right:10px">'''
  
      dic_tmp = sig_dic['dic']
      for key in dic_tmp.keys():
          tmp_str = '''{{% if '{0}' in postinfo.extinfo and postinfo.extinfo["{0}"][0] == "{1}" %}}
           {2} {{% end %}}'''.format(sig_dic['en'], key, dic_tmp[key])
          view_jushi += tmp_str
  
      view_jushi += '''</span>'''
      return view_jushf gen_select_list(sig_dic):
      '''
      For generating List view HTML file for SELECT.
      for each item.
      '''
      view_jushi = '''<span class="label label-primary" style="margin-right:10px">'''
  
      dic_tmp = sig_dic['dic']
      for key in dic_tmp.keys():
          tmp_str = '''{{% if '{0}' in postinfo.extinfo and postinfo.extinfo["{0}"][0] == "{1}" %}}
           {2} {{% end %}}'''.format(sig_dic['en'], key, dic_tmp[key])
          view_jushi += tmp_str
  
      view_jushi += '''</span>'''
      return view_jushi
docs: For generating List view HTML file for SELECT.
      for each item.