Merge branch 'features/download-mastofe-build' 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 <%= form_for @conn, o_auth_path(@conn, :register), [as: "authorization"], fn f -> %>
12
13 <div class="input">
14 <%= label f, :nickname, "Nickname" %>
15 <%= text_input f, :nickname, value: @nickname %>
16 </div>
17 <div class="input">
18 <%= label f, :email, "Email" %>
19 <%= text_input f, :email, value: @email %>
20 </div>
21
22 <%= submit "Proceed as new user", name: "op", value: "register" %>
23
24 <p>Alternatively, sign in to connect to existing account.</p>
25
26 <div class="input">
27 <%= label f, :name, "Name or email" %>
28 <%= text_input f, :name %>
29 </div>
30 <div class="input">
31 <%= label f, :password, "Password" %>
32 <%= password_input f, :password %>
33 </div>
34
35 <%= submit "Proceed as existing user", name: "op", value: "connect" %>
36
37 <%= hidden_input f, :client_id, value: @client_id %>
38 <%= hidden_input f, :redirect_uri, value: @redirect_uri %>
39 <%= hidden_input f, :scope, value: Enum.join(@scopes, " ") %>
40 <%= hidden_input f, :state, value: @state %>
41
42 <% end %>