templates/authentication/views/user/signup.erb in gennaro-0.3.6.2 vs templates/authentication/views/user/signup.erb in gennaro-0.3.6.3

- old
+ new

@@ -1,18 +1,22 @@ -<% @title = 'Signup' %> +<% @title = 'Sign up' %> <%= erb :'template/header' %> <% if defined? @error %> - <p class="error"><%= @error %></p> + <div class="alert alert-danger"><%= @error %></div> <% elsif defined? @success %> - <p class="success"><%= @success %></p> + <div class="alert alert-success"><%= @success %></div> + <script>setTimeout(function() { window.location = '/user/login'; }, 1500);</script> <% else %> - <form action="<%= @current_url %>" method="post"> - <input type="text" placeholder="username" name="username"><br> - <input type="email" placeholder="email" name="email" ><br> - <input type="password" placeholder="password" name="password"><br> + <form action="<%= @current_url %>" method="post" role="form"> + <h2><%= @title %></h2> + + <input type="text" placeholder="username" name="username" class="form-control" required autofocus><br> + <input type="email" placeholder="email" name="email" class="form-control" required ><br> + <input type="password" placeholder="password" name="password" class="form-control" required ><br> + <%= csrf_tag %> - <input type="submit" value="Sign up"> + <button class="btn btn-lg btn-primary btn-block" type="submit" name="signup">Sign up</button> </form> <% end %> <%= erb :'template/footer' %> \ No newline at end of file