Sha256: dea162352c4c151b646d334d59a696151a357ede73651825a2160e8b809146db

Contents?: true

Size: 1.88 KB

Versions: 16

Compression:

Stored size: 1.88 KB

Contents

<!-- Session Status -->
<%= render(AuthSessionStatusComponent.new({ class: "mb-4", status: flash[:status] })) %>
<%= form_with model: @form, url: login_path do |form| %>
  <!-- Email Address -->
  <div>
    <%= render(InputLabelComponent.new({ for: "email", value: "Email" })) %>
    <%= render(TextInputComponent.new({ id: "email", class: "block mt-1 w-full", type: "email", name: "email", value: @form.email, required: true, autofocus: true, autocomplete: "username" })) %>
    <%= render(InputErrorComponent.new({ class: "mt-2", message: @form.error_messages[:email] })) %>
  </div>
  <!-- Password -->
  <div class="mt-4">
    <%= render(InputLabelComponent.new({ for: "password", value: "Password" })) %>
    <%= render(TextInputComponent.new({ id: "password", class: "block mt-1 w-full", type: "password", name: "password", required: true, autocomplete: "current-password" })) %>
    <%= render(InputErrorComponent.new({ class: "mt-2", message: @form.error_messages[:password] })) %>
  </div>
  <!-- Remember Me -->
  <div class="block mt-4">
    <label for="remember_me" class="inline-flex items-center">
      <input id="remember_me" type="checkbox" class="rounded dark:bg-gray-900 border-gray-300 dark:border-gray-700 text-indigo-600 shadow-sm focus:ring-indigo-500 dark:focus:ring-indigo-600 dark:focus:ring-offset-gray-800" name="remember">
      <span class="ms-2 text-sm text-gray-600 dark:text-gray-400">Remember me</span>
    </label>
  </div>
  <div class="flex items-center justify-end mt-4">
    <a class="underline text-sm text-gray-600 dark:text-gray-400 hover:text-gray-900 dark:hover:text-gray-100 rounded-md focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500 dark:focus:ring-offset-gray-800" href="<%= password_request_path %>">
      Forgot your password?
    </a>
    <%= render(PrimaryButtonComponent.new({ class: "ms-4" })) do %>
      Login
    <% end %>
  </div>
<% end %>

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
kaze-1.0.1 stubs/hotwire/app/views/auth/login.html.erb
kaze-1.0.0 stubs/hotwire/app/views/auth/login.html.erb
kaze-0.19.0 stubs/hotwire/app/views/auth/login.html.erb
kaze-0.18.0 stubs/hotwire/app/views/auth/login.html.erb
kaze-0.17.0 stubs/hotwire/app/views/auth/login.html.erb
kaze-0.16.0 stubs/hotwire/app/views/auth/login.html.erb
kaze-0.15.0 stubs/hotwire/app/views/auth/login.html.erb
kaze-0.14.0 stubs/hotwire/app/views/auth/login.html.erb
kaze-0.13.0 stubs/hotwire/app/views/auth/login.html.erb
kaze-0.12.0 stubs/hotwire/app/views/auth/login.html.erb
kaze-0.11.0 stubs/hotwire/app/views/auth/login.html.erb
kaze-0.10.0 stubs/hotwire/app/views/auth/login.html.erb
kaze-0.9.0 stubs/hotwire/app/views/auth/login.html.erb
kaze-0.8.0 stubs/hotwire/app/views/auth/login.html.erb
kaze-0.7.0 stubs/hotwire/app/views/auth/login.html.erb
kaze-0.6.0 stubs/hotwire/app/views/auth/login.html.erb