-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy path_default.html.erb
57 lines (46 loc) · 1.91 KB
/
_default.html.erb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
<% add_decidim_page_title(t("devise.sessions.new.log_in")) %>
<%= render layout: "layouts/decidim/shared/layout_center" do %>
<div class="flex justify-center">
<h1 class="title-decorator my-12"><%= t("devise.sessions.new.log_in") %></h1>
</div>
<div class="login__info font-semibold">
<% if current_organization.sign_up_enabled? %>
<p>
<%= t("decidim.devise.sessions.new.are_you_new?") %>
<%= link_to t("decidim.devise.sessions.new.register"), new_user_registration_path %>
</p>
<% elsif current_organization.sign_in_enabled? %>
<p>
<%= t("decidim.devise.sessions.new.sign_up_disabled") %>
</p>
<% else %>
<p>
<%= t("decidim.devise.sessions.new.sign_in_disabled") %>
</p>
<% end %>
</div>
<span class="login__info-separator"></span>
<% cache current_organization do %>
<%= render "decidim/devise/shared/omniauth_buttons" %>
<% end %>
<% if current_organization.sign_in_enabled? %>
<%= decidim_form_for(resource, namespace: "session", as: resource_name, url: session_path(resource_name)) do |f| %>
<div class="form__wrapper">
<%= f.email_field :email, autocomplete: "email", placeholder: t("placeholder_email", scope: "decidim.devise.shared"), required: true %>
<%= render partial: "decidim/account/password_fields", locals: { form: f } %>
<% if devise_mapping.rememberable? %>
<%= f.check_box :remember_me, label_options: { class: "form__wrapper-checkbox-label" } %>
<% end %>
</div>
<div class="form__wrapper-block">
<button type="submit" class="button button__lg button__secondary">
<%= t("devise.sessions.new.log_in") %>
<%= icon "arrow-right-line", class: "fill-current" %>
</button>
</div>
<div class="login__links">
<%= render "decidim/devise/shared/links" %>
</div>
<% end %>
<% end %>
<% end %>