Commits

Yang Zhang committed f2dd30a

add user widget

Comments (0)

Files changed (5)

 }
 
 .topic-icon{
-margin: 0 0 0 10px;
+margin-left: 70px;
+margin-right: 62px;
 }
 .userinfo-divider{
 padding: 0 10px;

templates/header.html

     </div>
     <div class='span4' id='login'>
         <div class='span3'></div>
-        <div class='span3'><h5><a href=''>登入</a></h5></div>
-        <div class='span3'><h5><a href=''>注册</a></h5></div>
-        
+        <div class='span3'><h5><a href=''>Py图书</a></h5></div>
+        <div class='span3'><h5><a href=''>Py视频</a></h5></div>
         
     </div>
 </div>

templates/signup.html

Empty file added.

templates/widgets.html

 <div class='container-box'>
 
+{%include "widgets/user.html"%}
 
-    <div class='widget container-box'>
-        <h5>用户信息</h5>
-    </div>
+        
+        
+        
+
     <div class='widget container-box'>
         <h5>热议主题</h5>
     </div>

templates/widgets/user.html

+<div class='widget container-box'>
+    <h5>用户信息</h5>
+
+    <form class="form-horizontal" style='margin-left: -100px;'>
+      <div class="control-group">
+        <label class="control-label" for="inputEmail">Email</label>
+        <div class="controls">
+          <input type="text" id="inputEmail" placeholder="用户名">
+        </div>
+      </div>
+      <div class="control-group">
+        <label class="control-label" for="inputPassword">密码</label>
+        <div class="controls">
+          <input type="password" id="inputPassword" placeholder="密码">
+        </div>
+      </div>
+      <div class="control-group">
+        <div class="controls">
+          <button type="submit" class="btn">登录</button>
+          <button type="submit" class="btn">注册</button>
+          <button type="submit" class="btn btn-link">忘记密码?</button>
+        </div>
+      </div>
+    </form>
+</div>