github.com/insionng/yougam@v0.0.0-20170714101924-2bc18d833463/themes/wind/templates/user/profile.html (about)

     1  {% extends "../base.html" %}
     2  
     3  {% block title %}
     4  <title>{{username}} - {{SiteName}}</title>
     5  {% endblock title %}
     6  
     7  {% block mainland %}
     8      <div id="main" class="container">
     9          <div class="row">
    10              <div id="content">
    11                  <div class="col-md-3">
    12                      <div class="box">
    13                          <ul class="nav nav-side">
    14                              <li class="cell first">
    15                                  <h4 class="head"> <i class="icon icon-cogs"></i>
    16                                      设置
    17                                  </h4>
    18                              </li>
    19                              <li class="active">
    20                                  <a href="/settings/profile/">个人信息</a>
    21                              </li>
    22                              <li>
    23                                  <a href="/settings/avatar/">我的头像</a>
    24                              </li>
    25                              <li>
    26                                  <a href="/settings/password/">修改密码</a>
    27                              </li>
    28                              <li class="cell last"></li>
    29                          </ul>
    30                      </div>
    31                  </div>
    32                  <div class="col-md-9">
    33                      <div class="box">
    34                          <div class="cell first breadcrumb">
    35                              <a href="/"> <i class="icon icon-home"></i>
    36                              </a>
    37                              <i class="fa fa-caret-right"></i>
    38                              <a href="">个人信息</a>
    39                          </div>
    40                          <div class="cell last slim">
    41  
    42                              <h3 class="underline">基本信息</h3>
    43                              <form method="POST" action="">
    44                                  <div class="row">
    45                                      <div class="col-md-12">
    46                                          {% include "../msgerr.html" %}
    47                                      </div>
    48                                      <div class="col-md-6">
    49                                          <div class="form-group">
    50                                              <label for="profile-username">用户名</label>
    51                                              <input id="profile-username" value="{{user.Username}}" type="text" class="form-control" disabled="">
    52                                          </div>
    53                                      </div>
    54  
    55                                      <div class="col-md-6">
    56                                          <div class="form-group">
    57                                              <label class="control-label" for="ProfileForm-Realname">真实姓名</label>
    58                                              <input id="ProfileForm-Realname" name="realname" type="text" value="{{user.Realname}}" class="form-control"></div>
    59                                      </div>
    60                                  </div>
    61  
    62                                  <div class="row">
    63                                      <div class="col-md-6">
    64                                          <div class="form-group{# has-warning#}">
    65                                              <label class="control-label" for="ProfileForm-Email">Email</label>
    66                                              <input id="ProfileForm-Email" name="email" type="text" value="{{user.Email}}" class="form-control">
    67                                              {#<p class="error-block">请认证您的邮箱地址。</p>#}
    68                                          </div>
    69                                      {% comment %}
    70                                          <div class="form-group">
    71                                              <label>
    72                                                  <input type="hidden" name="PublicEmail" value="false">
    73                                                  <button type="button" data-toggle="button" data-name="PublicEmail" class="btn btn-default btn-xs btn-checked">
    74                                                      <i class="icon icon-ok"></i>
    75                                                  </button>
    76                                                  公开您的邮箱
    77                                              </label>
    78                                          </div>
    79  
    80                                          <div class="form-group">
    81                                              <button id="verify-mail-send" type="button" data-loading-text="已发送!" class="btn btn-warning btn-xs">发送认证邮件</button>
    82                                          </div>
    83                                      {% endcomment %}
    84                                      </div>
    85  
    86                                      <div class="col-md-6">
    87  
    88                                          <div class="form-group">
    89  
    90                                              <label class="control-label" for="ProfileForm-Nickname">昵称</label>
    91                                              <input id="ProfileForm-Nickname" name="nickname" type="text" value="{{user.Nickname}}" class="form-control" placeholder="请输入您的昵称"></div>
    92  
    93                                      </div>
    94                                  </div>
    95  
    96                                  <div class="row">
    97                                      <div class="col-md-6">
    98                                          <div class="form-group">
    99                                              <label class="control-label" for="ProfileForm-GrEmail">你的头像</label>
   100                                              <div class="profile-avatar avatar" data-url="/">
   101                                              {% if user.Avatar %}
   102                                                  {% if user.AvatarLarge %}
   103                                                      <img src="{{File(user.AvatarLarge)}}" style="width:100px;height:100px;">
   104                                                  {% endif %}
   105                                                  {% if user.AvatarMedium %}
   106                                                      <img src="{{File(user.AvatarMedium)}}" style="width:48px;height:48px;">
   107                                                  {% endif %}
   108                                                  {% if user.AvatarSmall %}
   109                                                      <img src="{{File(user.AvatarSmall)}}" style="width:32px;height:32px;">
   110                                                  {% endif %}
   111                                              {% else %}
   112                                                  <img src="/img/d100.png" style="width:100px;height:100px;">
   113                                                  <img src="/img/d48.png" style="width:48px;height:48px;">
   114                                                  <img src="/img/d32.png" style="width:32px;height:32px;">
   115                                              {% endif %}
   116                                              </div>
   117                                          </div>
   118                                      </div>
   119  
   120                                      <div class="col-md-6">
   121  
   122                                          <div class="form-group">
   123  
   124                                              <label class="control-label" for="ProfileForm-Info">个人签名</label>
   125                                              <textarea id="ProfileForm-Info" name="content" rows="5" class="form-control">{{user.Content}}</textarea>
   126                                              <p class="help-block">写一句个性签名或人生格言</p>
   127                                          </div>
   128  
   129                                      </div>
   130                                  </div>
   131  
   132                                  <div class="row">
   133                                      <div class="col-md-6">
   134  
   135                                          <div class="form-group">
   136                                              <label class="control-label" for="ProfileForm-Gender">性别</label>
   137                                              <div>
   138                                                <span style="margin-right:1em;">
   139                                                  <input type="radio" id="male" name="gender" value="1"{% if user.Gender > 0 %} checked {% endif %}/>
   140                                                <label for="male"><span>男</span></label></span>
   141                                                <span><input type="radio" id="female" name="gender" value="-1"{% if user.Gender < 0 %} checked {% endif %}/>
   142                                                <label for="female"><span>女</span></label></span>
   143                                              </div>
   144                                          </div>
   145  
   146                                          <div class="form-group">
   147                                              <label class="control-label" for="ProfileForm-School">学校</label>
   148                                              <input id="ProfileForm-School" name="school" type="text" value="{{user.School}}" class="form-control">
   149                                          </div>
   150                                      </div>
   151                                      <div class="col-md-6">
   152  
   153                                          <div class="form-group">
   154                                              <label class="control-label" for="ProfileForm-Age">年龄</label>
   155                                              <input id="ProfileForm-Age" name="age" type="text" value="{{user.Age}}" class="form-control">
   156                                          </div>
   157  
   158                                          <div class="form-group">
   159                                              <label class="control-label" for="ProfileForm-Occupation">职业</label>
   160                                              <input id="ProfileForm-Occupation" name="occupation" type="text" value="{{user.Occupation}}" class="form-control">
   161                                          </div>
   162                                      </div>
   163  
   164                                      <div class="col-md-6">
   165  
   166                                          <div class="form-group">
   167                                              <label class="control-label" for="ProfileForm-Weight">体重</label>
   168                                              <input id="ProfileForm-Weight" name="weight" type="text" value="{{user.Province}}" class="form-control">
   169                                          </div>
   170  
   171                                          <div class="form-group">
   172                                              <label class="control-label" for="ProfileForm-Height">身高</label>
   173                                              <input id="ProfileForm-Height" name="height" type="text" value="{{user.Height}}" class="form-control">
   174                                          </div>
   175                                      </div>
   176                                      <div class="col-md-6">
   177  
   178                                          <div class="form-group">
   179                                              <label class="control-label" for="ProfileForm-Weibo">微博</label>
   180                                              <input id="ProfileForm-Weibo" name="weibo" type="text" value="{{user.Weibo}}" class="form-control">
   181                                          </div>
   182  
   183                                          <div class="form-group">
   184                                              <label class="control-label" for="ProfileForm-Weixin">微信</label>
   185                                              <input id="ProfileForm-Weixin" name="weixin" type="text" value="{{user.Weixin}}" class="form-control">
   186                                          </div>
   187                                      </div>
   188                                      <div class="col-md-6">
   189  
   190                                          <div class="form-group">
   191                                              <label class="control-label" for="ProfileForm-ZodiacSign">星座</label>
   192                                              <input id="ProfileForm-ZodiacSign" name="zodiacsign" type="text" value="{{user.ZodiacSign}}" class="form-control">
   193                                          </div>
   194                                          <div class="form-group">
   195                                              <label class="control-label" for="ProfileForm-Postcode">邮编</label>
   196                                              <input id="ProfileForm-Postcode" name="postcode" type="text" value="{{user.Postcode}}" class="form-control">
   197                                          </div>
   198                                      </div>
   199                                      <div class="col-md-6">
   200  
   201                                          <div class="form-group">
   202                                              <label class="control-label" for="ProfileForm-Website">主页</label>
   203                                              <input id="ProfileForm-Website" name="website" type="text" value="{{user.Website}}" class="form-control">
   204                                          </div>
   205  
   206                                          <div class="form-group">
   207                                              <label class="control-label" for="ProfileForm-Province">省份</label>
   208                                              <input id="ProfileForm-Province" name="province" type="text" value="{{user.Province}}" class="form-control">
   209                                          </div>
   210                                      </div>
   211                                      <div class="col-md-6">
   212  
   213                                          <div class="form-group">
   214                                              <label class="control-label" for="ProfileForm-Mobile">手机</label>
   215                                              <input id="ProfileForm-Mobile" name="mobile" type="text" value="{{user.Mobile}}" class="form-control">
   216                                          </div>
   217  
   218                                          <div class="form-group">
   219                                              <label class="control-label" for="ProfileForm-Qq">QQ</label>
   220                                              <input id="ProfileForm-Qq" name="qq" type="text" value="{{user.Qq}}" class="form-control">
   221                                          </div>
   222                                      </div>
   223                                      <div class="col-md-6">
   224  
   225                                          <div class="form-group">
   226                                              <label class="control-label" for="ProfileForm-City">城市</label>
   227                                              <input id="ProfileForm-City" name="city" type="text" value="{{user.City}}" class="form-control">
   228                                          </div>
   229  
   230                                          <div class="form-group">
   231                                              <label class="control-label" for="ProfileForm-Address">地址</label>
   232                                              <input id="ProfileForm-Address" name="address" type="text" value="{{user.Address}}" class="form-control">
   233                                          </div>
   234                                      </div>
   235                                  </div>
   236  
   237                              {% comment %}
   238                                  <div class="row">
   239                                      <div class="col-md-6">
   240  
   241                                          <div class="form-group">
   242  
   243                                              <label class="control-label" for="s2id_autogen1">首选语言</label>
   244                                              <div class="select2-container form-control" id="s2id_ProfileForm-Lang">
   245                                                  <a href="javascript:void(0)" onclick="return false;" class="select2-choice" tabindex="-1">
   246                                                      <span class="select2-chosen">简体中文</span> <abbr class="select2-search-choice-close"></abbr>
   247                                                      <span class="select2-arrow"> <b></b>
   248                                                      </span>
   249                                                  </a>
   250                                                  <input class="select2-focusser select2-offscreen" type="text" id="s2id_autogen1">
   251                                                  <div class="select2-drop select2-display-none select2-with-searchbox">
   252                                                      <div class="select2-search">
   253                                                          <input type="text" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false" class="select2-input"></div>
   254                                                      <ul class="select2-results"></ul>
   255                                                  </div>
   256                                              </div>
   257                                              <select id="ProfileForm-Lang" name="Lang" class="form-control select2-offscreen" rel="select2" tabindex="-1">
   258                                                  %!!(string=
   259                                                  <option></option>
   260                                                  <option value="0">English</option>
   261                                                  <option value="1" selected="selected">简体中文</option>
   262                                                  )s(MISSING)
   263                                              </select>
   264  
   265                                          </div>
   266  
   267                                      </div>
   268                                  </div>
   269                                  <h3 class="underline">社会化信息</h3>
   270  
   271                                  <div class="row">
   272                                      <div class="col-md-6">
   273  
   274                                          <div class="form-group">
   275                                              <div class="input-group">
   276                                                  <span class="input-group-addon">
   277                                                      <i class="icon-github-alt"></i>
   278                                                  </span>
   279                                                  <input id="ProfileForm-Github" name="Github" type="text" value="" class="form-control"></div>
   280  
   281                                          </div>
   282  
   283                                          <div class="form-group">
   284                                              <div class="input-group">
   285                                                  <span class="input-group-addon">
   286                                                      <i class="icon-weibo"></i>
   287                                                  </span>
   288                                                  <input id="ProfileForm-Weibo" name="Weibo" type="text" value="" class="form-control"></div>
   289  
   290                                          </div>
   291  
   292                                          <div class="form-group">
   293                                              <div class="input-group">
   294                                                  <span class="input-group-addon">
   295                                                      <i class="icon-linkedin"></i>
   296                                                  </span>
   297                                                  <input id="ProfileForm-Linkedin" name="Linkedin" type="text" value="" class="form-control"></div>
   298  
   299                                          </div>
   300  
   301                                      </div>
   302  
   303                                      <div class="col-md-6">
   304  
   305                                          <div class="form-group">
   306                                              <div class="input-group">
   307                                                  <span class="input-group-addon">
   308                                                      <i class="icon-google-plus"></i>
   309                                                  </span>
   310                                                  <input id="ProfileForm-Google" name="Google" type="text" value="" class="form-control"></div>
   311  
   312                                          </div>
   313  
   314                                          <div class="form-group">
   315                                              <div class="input-group">
   316                                                  <span class="input-group-addon">
   317                                                      <i class="icon-twitter"></i>
   318                                                  </span>
   319                                                  <input id="ProfileForm-Twitter" name="Twitter" type="text" value="" class="form-control"></div>
   320  
   321                                          </div>
   322  
   323                                          <div class="form-group">
   324                                              <div class="input-group">
   325                                                  <span class="input-group-addon">
   326                                                      <i class="icon-facebook"></i>
   327                                                  </span>
   328                                                  <input id="ProfileForm-Facebook" name="Facebook" type="text" value="" class="form-control"></div>
   329  
   330                                          </div>
   331  
   332                                      </div>
   333                                  </div>
   334                              {% endcomment %}
   335                                  <div class="row">
   336                                      <div class="col-md-6">
   337                                          <div class="form-group">
   338                                              <input type="hidden" name="action" value="save-profile">
   339                                              <button type="submit" class="btn btn-s-md btn-dark btn-rounded">
   340                                                  保存信息&nbsp;&nbsp;
   341                                                  <i class="icon-chevron-sign-right"></i>
   342                                              </button>
   343                                          </div>
   344                                      </div>
   345                                  </div>
   346                              </form>
   347                          </div>
   348                      </div>
   349                  </div>
   350              </div>
   351          </div>
   352      </div>
   353  {% endblock mainland %}