Add UI for register user

This commit is contained in:
Unknown 2014-02-17 18:38:50 -05:00
parent 5da2ad7435
commit 3eb1ab9e8b
12 changed files with 144 additions and 41 deletions

View file

@ -1,15 +0,0 @@
<!DOCTYPE html>
<html>
<head>
{{template "base/head" .}}
{{template "head" .}}
</head>
<body>
<noscript>Please enable JavaScript in your browser!</noscript>
{{template "base/navbar" .}}
<div class="container">
{{template "body" .}}
</div>
{{template "base/footer" .}}
</body>
</html>

View file

@ -0,0 +1,2 @@
</body>
</html>

View file

@ -1,14 +1,22 @@
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<link rel="shortcut icon" href="img/favicon.png" />
<meta name="author" content="Gogs - Go Git Service" />
<meta name="description" content="Gogs(Go Git Service) is a GitHub-like clone in the Go Programming Language" />
<meta name="keywords" content="go, git">
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<link rel="shortcut icon" href="/img/favicon.png" />
<meta name="author" content="Gogs - Go Git Service" />
<meta name="description" content="Gogs(Go Git Service) is a GitHub-like clone in the Go Programming Language" />
<meta name="keywords" content="go, git">
<!-- Stylesheets -->
<link href="css/bootstrap.min.css" rel="stylesheet" />
<link href="css/todc-bootstrap.min.css" rel="stylesheet" />
<link href="css/font-awesome.min.css" rel="stylesheet" />
<link href="css/gogs.css" rel="stylesheet" />
<!-- Stylesheets -->
<link href="/css/bootstrap.min.css" rel="stylesheet" />
<link href="/css/todc-bootstrap.min.css" rel="stylesheet" />
<link href="/css/font-awesome.min.css" rel="stylesheet" />
<link href="/css/gogs.css" rel="stylesheet" />
<script src="js/jquery-1.10.1.min.js"></script>
<script src="js/bootstrap.min.js"></script>
<script src="/js/jquery-1.10.1.min.js"></script>
<script src="/js/bootstrap.min.js"></script>
<title>{{.Title}} | Gogs - Go Git Service</title>
</head>
<body>
<noscript>Please enable JavaScript in your browser!</noscript>

View file

@ -4,7 +4,7 @@
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#gogs-navbar-collapse">
<i class="fa fa-bars"></i>
</button>
<a class="navbar-brand" href="/"><img src="img/favicon.png" alt="Gogs Logo"></a>
<a class="navbar-brand" href="/"><img src="/img/favicon.png" alt="Gogs Logo"></a>
</div>
<div class="collapse navbar-collapse" id="gopmweb-navbar-collapse">
@ -12,7 +12,7 @@
<li><a>{{.Title}}</a></li>
</ul>
<a href="/login" class="navbar-right btn btn-success navbar-btn">Log In</a>
<a href="/user/signin" class="navbar-right btn btn-success navbar-btn">Sign In</a>
</div>
</div>
</nav>

View file

@ -1,5 +1,6 @@
{{template "base/base" .}}
{{define "head"}} <title>{{.Title}} | Gogs - Go Git Service</title>{{end}}
{{define "body"}}
Website is still in the progress of building...please come back later!
{{end}}
{{template "base/head" .}}
{{template "base/navbar" .}}
<div class="container">
Website is still in the progress of building...please come back later!
</div>
{{template "base/footer" .}}

View file

@ -0,0 +1,6 @@
{{template "base/head" .}}
{{template "base/navbar" .}}
<div class="container">
403 Forbidden
</div>
{{template "base/footer" .}}

View file

@ -0,0 +1,44 @@
{{template "base/head" .}}
{{template "base/navbar" .}}
<div class="container">
<form action="/user/signup" method="post" class="form-horizontal">
<div class="form-group">
<label class="col-md-4 control-label">Username: </label>
<div class="col-md-3">
<input name="username" class="form-control" placeholder="Type your username">
</div>
</div>
<div class="form-group">
<label class="col-md-4 control-label">Email: </label>
<div class="col-md-3">
<input name="email" class="form-control" placeholder="Type your e-mail address">
</div>
</div>
<div class="form-group">
<label class="col-md-4 control-label">Password: </label>
<div class="col-md-3">
<input name="passwd" type="password" class="form-control" placeholder="Type your password">
</div>
</div>
<div class="form-group">
<label class="col-md-4 control-label">Re-type: </label>
<div class="col-md-3">
<input type="password" class="form-control" placeholder="Re-type your password">
</div>
</div>
<div class="form-group">
<div class="col-md-offset-4 col-md-3">
<button type="submit" class="btn btn-info">Sign Up</button>
</div>
</div>
<div class="col-md-offset-4 col-md-3">
<a href="/user/signin">Already have an account? Sign in now!</a>
</div>
</form>
</div>
{{template "base/footer" .}}