We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4e0339c commit f2b44caCopy full SHA for f2b44ca
lib/teslamate_web/live/signin_live/index.html.leex
@@ -2,7 +2,7 @@
2
<div class="column is-half">
3
<%= case @state do %>
4
<% {type, changeset} when type in [:credentials, :tokens]-> %>
5
- <%= f = form_for changeset, "#", [phx_change: :validate, phx_submit: :sign_in, class: "box", as: :credentials] %>
+ <%= f = form_for changeset, "#", [phx_change: :validate, phx_submit: :sign_in, class: "box", as: type] %>
6
<%= if @error do %>
7
<div class="notification is-danger">
8
Error: <%= @error %>
0 commit comments