Merge branch 'features/mastoapi/2.6.0-min_id-pagination' into 'develop'
[akkoma] / lib / pleroma / web / templates / o_auth / o_auth / register.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
8 <h2>Registration Details</h2>
9
10 <p>If you'd like to register a new account, please provide the details below.</p>
11
12 <%= form_for @conn, o_auth_path(@conn, :register), [], fn f -> %>
13
14 <div class="input">
15 <%= label f, :nickname, "Nickname" %>
16 <%= text_input f, :nickname, value: @nickname %>
17 </div>
18 <div class="input">
19 <%= label f, :email, "Email" %>
20 <%= text_input f, :email, value: @email %>
21 </div>
22
23 <%= submit "Proceed as new user", name: "op", value: "register" %>
24
25 <p>Alternatively, sign in to connect to existing account.</p>
26
27 <div class="input">
28 <%= label f, :auth_name, "Name or email" %>
29 <%= text_input f, :auth_name %>
30 </div>
31 <div class="input">
32 <%= label f, :password, "Password" %>
33 <%= password_input f, :password %>
34 </div>
35
36 <%= submit "Proceed as existing user", name: "op", value: "connect" %>
37
38 <%= hidden_input f, :client_id, value: @client_id %>
39 <%= hidden_input f, :redirect_uri, value: @redirect_uri %>
40 <%= hidden_input f, :scope, value: Enum.join(@scopes, " ") %>
41 <%= hidden_input f, :state, value: @state %>
42
43 <% end %>