瀏覽代碼

Move "forgot password" button to a different position to avoid Keepass issue

Son NK 5 年之前
父節點
當前提交
d527fcf648
共有 1 個文件被更改,包括 10 次插入16 次删除
  1. 10 16
      app/auth/templates/auth/login.html

+ 10 - 16
app/auth/templates/auth/login.html

@@ -39,32 +39,26 @@
             <div class="form-group">
               <label class="form-label">
                 Password
-                <a href="{{ url_for('auth.forgot_password') }}" class="float-right small">
-                  I forgot my password
-                </a>
               </label>
               {{ form.password(class="form-control", type="password") }}
               {{ render_field_errors(form.password) }}
+              <div class="text-muted">
+                <a href="{{ url_for('auth.forgot_password') }}" class="small">
+                  I forgot my password
+                </a>
+              </div>
             </div>
 
-            <!-- TODO: add remember me
-            <div class="form-group">
-              <label class="custom-control custom-checkbox">
-                <input type="checkbox" class="custom-control-input"/>
-                <span class="custom-control-label">Remember me</span>
-              </label>
-            </div>
-            -->
-
             <div class="form-footer">
               <button type="submit" class="btn btn-primary btn-block">Log in</button>
             </div>
+
+            <div class="text-center text-muted mt-2">
+              Don't have an account yet? <a href="{{ url_for('auth.register') }}">Sign up</a>
+            </div>
+
           </div>
         </form>
-
-        <div class="text-center text-muted mb-6">
-          Don't have an account yet? <a href="{{ url_for('auth.register') }}">Sign up</a>
-        </div>
       </div>
     </div>