Merge branch 'hellthread-filter-fix' into 'develop'
[akkoma] / lib / pleroma / web / templates / o_auth / o_auth / show.html.eex
1 <%= if get_flash(@conn, :info) do %>
2 <p class="alert alert-info" role="alert"><%= get_flash(@conn, :info) %></p>
3 <% end %>
4 <%= if get_flash(@conn, :error) do %>
5 <p class="alert alert-danger" role="alert"><%= get_flash(@conn, :error) %></p>
6 <% end %>
7 <h2>OAuth Authorization</h2>
8 <%= form_for @conn, o_auth_path(@conn, :authorize), [as: "authorization"], fn f -> %>
9 <%= label f, :name, "Name or email" %>
10 <%= text_input f, :name %>
11 <br>
12 <%= label f, :password, "Password" %>
13 <%= password_input f, :password %>
14 <br>
15 <%= hidden_input f, :client_id, value: @client_id %>
16 <%= hidden_input f, :response_type, value: @response_type %>
17 <%= hidden_input f, :redirect_uri, value: @redirect_uri %>
18 <%= hidden_input f, :scope, value: @scope %>
19 <%= hidden_input f, :state, value: @state%>
20 <%= submit "Authorize" %>
21 <% end %>