Sha256: b89f6f45c5480b4d1c53532264cc42c41e7cf2e547654daf6683a0ddcc89320f

Contents?: true

Size: 1.89 KB

Versions: 3

Compression:

Stored size: 1.89 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

3 entries across 3 versions & 1 rubygems

Version Path
kaze-0.5.0 stubs/hotwire/app/views/auth/login.html.erb
kaze-0.4.0 stubs/hotwire/app/views/auth/login.html.erb
kaze-0.3.0 stubs/hotwire/app/views/auth/login.html.erb