<!DOCTYPE html>
<html lang="en">
    <head>
        <meta charset="utf-8">
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        <meta name="description" content="">
        <meta name="author" content="">
        <!-- Favicons-->
        <link rel="apple-touch-icon-precomposed" href="images/favicon/apple-touch-icon-152x152.png">
        <meta name="msapplication-TileColor" content="#FFFFFF">
        <meta name="msapplication-TileImage" content="images/favicon/mstile-144x144.png">
        <link rel="icon" href="images/favicon/favicon-32x32.png" sizes="32x32">
        <title>编辑信息</title>
        <link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
        <!-- Materialize core CSS -->
        <link href="materialize/css/materialize.css" rel="stylesheet">
        <!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
        <!--[if lt IE 9]>
            <script src="assets/js/html5shiv.js"></script>
            <script src="assets/js/respond.min.js"></script>
        <![endif]-->
        <link href="style.css" rel="stylesheet">
    </head>
    <body>
        <form method="post" enctype="multipart/form-data" action="/spa/edit/profile"> 
            <div class="row layout-">
                <div class="col s12 m12 l12 valign center"> 
                    <img src="{{ .AvatarCacheURL}}" width="200" class="circle" />
                    <h5>{{.Name}}</h5> 
                </div>
            </div>
            <div class="row"> 
                <div class="input-field col s12"> 
                    <input id="lastname" type="text" class="validate" value="{{.LastName}}"> 
                    <label for="first_name">姓名（中文名）</label>                     
                </div>                 
            </div>             
            <div class="row">
                <div class="input-field col s12"> 
                    <input id="email" type="text" class="validate" value="{{.EmailAddress}}"> 
                    <label for="last_name">电子邮件</label>                     
                </div>                 
            </div>
            <div class="row">
                <div class="input-field col s12"> 
                    <input id="phone" type="text" class="validate" value="{{.PhoneNumber}}"> 
                    <label for="last_name">联络电话</label>                     
                </div>                 
            </div>             
            <div class="row"> 
                <div class="input-field col s12"> 
                    <textarea id="textarea1" class="materialize-textarea">{{.Description}}</textarea>                     
                    <label for="textarea1">个人简介 300字以内</label>                     
                </div>                 
            </div>
            <div class="row"> 
                <div class="input-field col s12"> 
                    <div class="file-field input-field"> 
                        <div class="btn"> 
                            <span>选择新头像</span> 
                            <input id="avatar" type="file"> 
                        </div>                         
                        <div class="file-path-wrapper"> 
                            <input class="file-path validate" type="text"> 
                        </div>                         
                    </div>                     
                </div>                 
            </div>
            <div class="row">
                <div class="col s12 m12 l12 valign center"> 
                    <button class="btn waves-effect waves-light" type="submit" name="action">保存信息
                        <i class="material-icons right">send</i>
                    </button>                     
                </div>
            </div>             
        </form>
        <!-- Materialize core JavaScript -->
        <!-- Placed at the end of the document so the pages load faster -->
        <script src="assets/js/jquery.min.js"></script>
        <script src="materialize/js/materialize.js"></script>
        <script src="index.js"></script>
    </body>
</html>
