Use spaces
This commit is contained in:
		@@ -1,12 +1,12 @@
 | 
			
		||||
{{define "register"}}
 | 
			
		||||
<!DOCTYPE html>
 | 
			
		||||
<html>
 | 
			
		||||
	<head>
 | 
			
		||||
		<title>Registration</title>
 | 
			
		||||
    <head>
 | 
			
		||||
        <title>Registration</title>
 | 
			
		||||
 | 
			
		||||
		{{template "head"}}
 | 
			
		||||
	
 | 
			
		||||
		<script>
 | 
			
		||||
        {{template "head"}}
 | 
			
		||||
    
 | 
			
		||||
        <script>
 | 
			
		||||
            function checkPasswordMatchUi() {
 | 
			
		||||
                if(checkPasswordMatch())
 | 
			
		||||
                    $("#divCheckPasswordMatch").html("Passwords match.");
 | 
			
		||||
@@ -23,8 +23,8 @@
 | 
			
		||||
 | 
			
		||||
            $(document).ready(function () {
 | 
			
		||||
                $("#password, #password_confirm").keyup(checkPasswordMatchUi);
 | 
			
		||||
				$('#invalidCredentials').hide(); 
 | 
			
		||||
				$('#loginForm').ajaxForm({
 | 
			
		||||
                $('#invalidCredentials').hide(); 
 | 
			
		||||
                $('#loginForm').ajaxForm({
 | 
			
		||||
                    beforeSubmit: function(a, b, c) {
 | 
			
		||||
                        var match = checkPasswordMatch();
 | 
			
		||||
                        if(!match){
 | 
			
		||||
@@ -32,42 +32,42 @@
 | 
			
		||||
                        }
 | 
			
		||||
                        return match;
 | 
			
		||||
                    },
 | 
			
		||||
					success: function() {
 | 
			
		||||
						window.location.href = "/api/v1/restricted";
 | 
			
		||||
					},
 | 
			
		||||
					error: function() {
 | 
			
		||||
						$('#invalidCredentials').show();
 | 
			
		||||
					}
 | 
			
		||||
				}); 
 | 
			
		||||
			}); 
 | 
			
		||||
		</script> 
 | 
			
		||||
	</head>
 | 
			
		||||
	<body>
 | 
			
		||||
		<div class="container" id="head">
 | 
			
		||||
			Budgeteer
 | 
			
		||||
		</div>
 | 
			
		||||
		<div class="container col-lg-12" id="content">
 | 
			
		||||
			<form id="loginForm" action="/api/v1/login" method="POST" class="center-block">
 | 
			
		||||
				<label for="email">E-Mail</label>
 | 
			
		||||
				<input type="text" name="email" /><br />
 | 
			
		||||
                    success: function() {
 | 
			
		||||
                        window.location.href = "/api/v1/restricted";
 | 
			
		||||
                    },
 | 
			
		||||
                    error: function() {
 | 
			
		||||
                        $('#invalidCredentials').show();
 | 
			
		||||
                    }
 | 
			
		||||
                }); 
 | 
			
		||||
            }); 
 | 
			
		||||
        </script> 
 | 
			
		||||
    </head>
 | 
			
		||||
    <body>
 | 
			
		||||
        <div class="container" id="head">
 | 
			
		||||
            Budgeteer
 | 
			
		||||
        </div>
 | 
			
		||||
        <div class="container col-lg-12" id="content">
 | 
			
		||||
            <form id="loginForm" action="/api/v1/login" method="POST" class="center-block">
 | 
			
		||||
                <label for="email">E-Mail</label>
 | 
			
		||||
                <input type="text" name="email" /><br />
 | 
			
		||||
 | 
			
		||||
                <label for="name">Name</label>
 | 
			
		||||
                <input type="text" name="name" /><br />
 | 
			
		||||
 | 
			
		||||
				<label for="password">Password</label>
 | 
			
		||||
				<input type="password" name="password" id="password" /><br />
 | 
			
		||||
                <label for="password">Password</label>
 | 
			
		||||
                <input type="password" name="password" id="password" /><br />
 | 
			
		||||
 | 
			
		||||
				<label for="password">Verify Password</label>
 | 
			
		||||
                <label for="password">Verify Password</label>
 | 
			
		||||
                <input type="password" id="password_confirm" />
 | 
			
		||||
                <span id="divCheckPasswordMatch"></span><br />
 | 
			
		||||
 | 
			
		||||
				<div id="invalidCredentials">
 | 
			
		||||
                <div id="invalidCredentials">
 | 
			
		||||
                    Username already exists
 | 
			
		||||
				</div>
 | 
			
		||||
                </div>
 | 
			
		||||
 | 
			
		||||
				<input type="submit" value="Login" />
 | 
			
		||||
			</form>
 | 
			
		||||
		</div>
 | 
			
		||||
	</body>
 | 
			
		||||
                <input type="submit" value="Login" />
 | 
			
		||||
            </form>
 | 
			
		||||
        </div>
 | 
			
		||||
    </body>
 | 
			
		||||
</html>
 | 
			
		||||
{{end}}
 | 
			
		||||
		Reference in New Issue
	
	Block a user