def gen_select_view(sig_dic):
    """
    HTML view, for selection.
    """
    option_str = ''
    dic_tmp = sig_dic['dic']
    for key, val in dic_tmp.items():
        tmp_str = (
            """
         {{% if '{sig_en}' in postinfo.extinfo %}}
          {{% set tmp_var = postinfo.extinfo["{sig_en}"] %}}
          {{% if tmp_var == "{sig_key}" %}}
          {sig_dic}
          {{% end %}}
          {{% end %}}
         """
            .format(sig_en=sig_dic['en'], sig_key=key, sig_dic=val))
        option_str += tmp_str
    return (
        """
    <div class="row">
    <div class="col-sm-4"><span class="des"><strong>{sig_zh}</strong></span></div>
    <div class="col-sm-8">
    {option_str}
    </div></div>
    """
        .format(sig_zh=sig_dic['zh'], option_str=option_str))
