17 lines
505 B
Text
17 lines
505 B
Text
<div class="container page-container">
|
|
<%= if connected?(@socket) do %>
|
|
<form phx-submit="login">
|
|
<h1>Log in</h1>
|
|
|
|
<label>Email <input type="email" name="username" /></label>
|
|
<label>Password <input type="password" name="password" /></label>
|
|
<button>Log in</button>
|
|
|
|
<%= if @error != false do %>
|
|
<div class="error">Error occurred, please try again: <%= inspect(@error) %></div>
|
|
<% end %>
|
|
</form>
|
|
<% else %>
|
|
<h1>Loading…</h1>
|
|
<% end %>
|
|
</div>
|