Sha256: d4a3d858e966ab29dd6926f6b9b0188259e4017dd2d28762c96088f6cf2ef6b9

Contents?: true

Size: 2 KB

Versions: 33

Compression:

Stored size: 2 KB

Contents

<% add_decidim_page_title(t("devise.sessions.new.sign_in")) %>

<div class="wrapper">
  <div class="row collapse">
    <div class="row collapse">
      <div class="columns large-8 large-centered text-center page-title">
        <h1><%= t("devise.sessions.new.sign_in") %></h1>
        <% if current_organization.sign_up_enabled? %>
          <p>
            <%= t(".are_you_new?") %>
            <%= link_to t(".register"), new_user_registration_path %>
          </p>
        <% elsif current_organization.sign_in_enabled? %>
          <p>
            <%= t(".sign_up_disabled") %>
          </p>
        <% else %>
          <p>
            <%= t(".sign_in_disabled") %>
          </p>
        <% end %>
      </div>
    </div>
    <% cache current_organization do %>
      <%= render "decidim/devise/shared/omniauth_buttons" %>
    <% end %>

    <% if current_organization.sign_in_enabled? %>
      <div class="row">
        <div class="columns large-6 medium-centered">
          <div class="card">
            <div class="card__content">
              <%= decidim_form_for(resource, namespace: "session", as: resource_name, url: session_path(resource_name), html: { class: "register-form new_user" }) do |f| %>
                <div>
                  <div class="field">
                    <%= f.email_field :email %>
                  </div>
                  <div class="field">
                    <%= f.password_field :password, autocomplete: "off" %>
                  </div>
                </div>
                  <% if devise_mapping.rememberable? %>
                    <div class="field">
                      <%= f.check_box :remember_me %>
                    </div>
                  <% end %>
                <div class="actions">
                  <%= f.submit t("devise.sessions.new.sign_in"), class: "button expanded" %>
                </div>
              <% end %>
              <%= render "decidim/devise/shared/links" %>
            </div>
          </div>
        </div>
      </div>
    <% end %>
  </div>
</div>

Version data entries

33 entries across 33 versions & 1 rubygems

Version Path
decidim-core-0.26.10 app/views/decidim/devise/sessions/new.html.erb
decidim-core-0.26.9 app/views/decidim/devise/sessions/new.html.erb
decidim-core-0.26.8 app/views/decidim/devise/sessions/new.html.erb
decidim-core-0.26.7 app/views/decidim/devise/sessions/new.html.erb
decidim-core-0.26.5 app/views/decidim/devise/sessions/new.html.erb
decidim-core-0.26.4 app/views/decidim/devise/sessions/new.html.erb
decidim-core-0.26.3 app/views/decidim/devise/sessions/new.html.erb
decidim-core-0.26.2 app/views/decidim/devise/sessions/new.html.erb
decidim-core-0.26.1 app/views/decidim/devise/sessions/new.html.erb
decidim-core-0.26.0 app/views/decidim/devise/sessions/new.html.erb
decidim-core-0.26.0.rc2 app/views/decidim/devise/sessions/new.html.erb
decidim-core-0.26.0.rc1 app/views/decidim/devise/sessions/new.html.erb
decidim-core-0.25.2 app/views/decidim/devise/sessions/new.html.erb
decidim-core-0.25.1 app/views/decidim/devise/sessions/new.html.erb
decidim-core-0.25.0 app/views/decidim/devise/sessions/new.html.erb
decidim-core-0.25.0.rc4 app/views/decidim/devise/sessions/new.html.erb
decidim-core-0.25.0.rc3 app/views/decidim/devise/sessions/new.html.erb
decidim-core-0.25.0.rc2 app/views/decidim/devise/sessions/new.html.erb
decidim-core-0.25.0.rc1 app/views/decidim/devise/sessions/new.html.erb
decidim-core-0.24.3 app/views/decidim/devise/sessions/new.html.erb