You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

47 lines
1.3 KiB

<%= render partial: 'layouts/header' %>
<% if flash[:message] %>
<div class="alert">
<%= flash[:message] %>
</div>
<% end %>
<h1>Welcome, sinner</h1>
<h3>Please sign <em>up</em> to lift your burdens</h3>
<form action="<%= users_path %>" method="POST"
autocomplete="false">
<input type="hidden" name="authenticity_token"
value="<%= form_authenticity_token %>">
<input type="email" name="user[email]"
placeholder="your email address"><br/>
<input type="password" name="user[password]"
placeholder="desired password"><br/>
<input type="submit" value="Sign up">
</form>
<h3>Please sign <em>in</em> to lift your burdens</h3>
<form action="<%= session_path %>" method="POST"
autocomplete="false">
<input type="hidden" name="authenticity_token"
value="<%= form_authenticity_token %>">
<input type="email" name="user[email]"
placeholder="your email address"><br/>
<input type="password" name="user[password]"
placeholder="desired password"><br/>
<input type="submit" value="Sign in">
</form>
<% if current_user %>
<hr/>
<form action="<%= session_path %>" method="POST">
<input type="hidden" name="authenticity_token"
value="<%= form_authenticity_token %>">
<input type="hidden" name="_method" value="DELETE">
<input type="submit" value="Log Out!">
</form>
<% end %>