14 lines
443 B
Elixir
14 lines
443 B
Elixir
<%= if @error do %>
|
|
<h2><%= @error %></h2>
|
|
<% end %>
|
|
<h2>Log in to follow</h2>
|
|
<p><%= @name %></p>
|
|
<img height="128" width="128" src="<%= @avatar %>">
|
|
<%= form_for @conn, util_path(@conn, :do_remote_follow), [as: "authorization"], fn f -> %>
|
|
<%= text_input f, :name, placeholder: "Username" %>
|
|
<br>
|
|
<%= password_input f, :password, placeholder: "Password" %>
|
|
<br>
|
|
<%= hidden_input f, :id, value: @id %>
|
|
<%= submit "Authorize" %>
|
|
<% end %>
|