logo

pleroma

My custom branche(s) on git.pleroma.social/pleroma/pleroma git clone https://hacktivis.me/git/pleroma.git

register.html.eex (2145B)


  1. <%= if Phoenix.Flash.get(@flash, :info) do %>
  2. <p class="alert alert-info" role="alert"><%= Phoenix.Flash.get(@flash, :info) %></p>
  3. <% end %>
  4. <%= if Phoenix.Flash.get(@flash, :error) do %>
  5. <p class="alert alert-danger" role="alert"><%= Phoenix.Flash.get(@flash, :error) %></p>
  6. <% end %>
  7. <h2><%= Gettext.dpgettext("static_pages", "oauth register page title", "Registration Details") %></h2>
  8. <p><%= Gettext.dpgettext("static_pages", "oauth register page fill form prompt", "If you'd like to register a new account, please provide the details below.") %></p>
  9. <%= form_for @conn, Routes.o_auth_path(@conn, :register), [as: "authorization"], fn f -> %>
  10. <div class="input">
  11. <%= label f, :nickname, Gettext.dpgettext("static_pages", "oauth register page nickname prompt", "Nickname") %>
  12. <%= text_input f, :nickname, value: @nickname, autocomplete: "username" %>
  13. </div>
  14. <div class="input">
  15. <%= label f, :email, Gettext.dpgettext("static_pages", "oauth register page email prompt", "Email") %>
  16. <%= text_input f, :email, value: @email, autocomplete: "email" %>
  17. </div>
  18. <%= submit Gettext.dpgettext("static_pages", "oauth register page register button", "Proceed as new user"), name: "op", value: "register" %>
  19. <p><%= Gettext.dpgettext("static_pages", "oauth register page login prompt", "Alternatively, sign in to connect to existing account.") %></p>
  20. <div class="input">
  21. <%= label f, :name, Gettext.dpgettext("static_pages", "oauth register page login username prompt", "Name or email") %>
  22. <%= text_input f, :name, autocomplete: "username" %>
  23. </div>
  24. <div class="input">
  25. <%= label f, :password, Gettext.dpgettext("static_pages", "oauth register page login password prompt", "Password") %>
  26. <%= password_input f, :password, autocomplete: "password" %>
  27. </div>
  28. <%= submit Gettext.dpgettext("static_pages", "oauth register page login button", "Proceed as existing user"), name: "op", value: "connect" %>
  29. <%= hidden_input f, :client_id, value: @client_id %>
  30. <%= hidden_input f, :redirect_uri, value: @redirect_uri %>
  31. <%= hidden_input f, :scope, value: Enum.join(@scopes, " ") %>
  32. <%= hidden_input f, :state, value: @state %>
  33. <% end %>