-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathform.erb
99 lines (98 loc) · 4.29 KB
/
form.erb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
<!DOCTYPE html>
<html lang="en">
<head>
<title>Register</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="/css/bootstrap.min.css"/>
<link rel="stylesheet" href="/css/bootstrap-theme.min.css" />
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
<script type="text/javascript" src="/js/bootstrap.js"></script>
<script type="text/javascript" src="/js/bootstrap.min.js"></script>
<style type="text/css">
html {
background: url(/images/back_ground.jpg) no-repeat center center fixed;
-webkit-background-size: cover;
-moz-background-size: cover;
-o-background-size: cover;
background-size: cover;
}
body{
background-color: transparent;
color:black;
}
h1 small{
color:333;
}
</style>
<link rel="stylesheet" type="text/css" media="all" href="/css/global.css"/>
</head>
<body>
<nav class="navbar navbar-tenshitter" role="navigation">
<div class="container-fluid">
<!-- Brand and toggle get grouped for better mobile display -->
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="/">Tenshitter</a>
</div>
</div><!-- /.container-fluid -->
</nav>
<div class="well" id="contenedor">
<% if @error_form %>
<div class="alert alert-danger">
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
Missing or invalid data, please check the errors and try again
</div>
<% end %>
<% if @error_password %>
<div class="alert alert-danger">
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
Password and their confirmation do not match
</div>
<% end %>
<div class="row">
<div class="col-md-6 col-md-offset-3 text-center"><h1 class = "color_h4">Welcome to Tenshitter<br />
<small>Microblogging network</small>
</h1>
</div>
</div>
<br />
<div class="row">
<div class="col-md-4 col-md-offset-4">
<form action="/users" method="post" role="form">
<br /><br />
<div class="form-group">
<label for="txtName">Name</label>
<input type="text" class="form-control" id="txtName" placeholder="Full name" name="name"/>
</div>
<div class="form-group">
<label for="txtEmail">E-mail</label>
<input type="text" class="form-control" id="txtEmail" placeholder="Enter email" name="email"/>
</div>
<div class="form-group">
<label for="txtPassword">Password</label>
<input type="password" class="form-control" id="txtPassword" placeholder="Password" name="password"/>
</div>
<div class="form-group">
<label for="txtConfirmPassword">Confirm password</label>
<input type="password" class="form-control" id="txtConfirmPassword" placeholder="Confirm password" name="confirmpassword"/>
</div>
<label for="txtUsername">Username</label>
<div class="input-group">
<span class="input-group-addon">@</span>
<input type="text" class="form-control" id="txtUsername" placeholder="Username" name="username"/>
</div>
<br />
<button type="submit" name="users" class="btn btn-info">Sign up for Tenshitter</button>
<br /><br /><br />
Do you have an account? <a href="/"> Sign In </a>
</form>
</div>
</div>
</div>
</body>
</html>