Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com> This commit refactors the entire application to replace the 'parties' concept with 'events'. All controllers, models, views, and related files have been updated to reflect this change. The parties table has been replaced with an events table, and all related functionality has been updated accordingly.
44 lines
2.3 KiB
Plaintext
Executable File
44 lines
2.3 KiB
Plaintext
Executable File
<div class="flex items-center justify-center bg-neutral-50 py-12 px-4 sm:px-6 lg:px-8">
|
|
<div class="max-w-md w-full space-y-8">
|
|
<div>
|
|
<%= link_to "/" do %>
|
|
<img class="mx-auto h-12 w-auto" src="/icon.svg" alt="Aperonight" />
|
|
<% end %>
|
|
<h2 class="mt-6 text-center text-3xl font-extrabold text-neutral-900">
|
|
<%= t('devise.passwords.edit.title') %>
|
|
</h2>
|
|
<p class="mt-2 text-center text-sm text-neutral-600">
|
|
<%= t('devise.passwords.edit.description') %>
|
|
</p>
|
|
</div>
|
|
|
|
<%= form_for(resource, as: resource_name, url: password_path(resource_name), html: { method: :put, class: "mt-8 space-y-6" }) do |f| %>
|
|
<%= f.hidden_field :reset_password_token %>
|
|
|
|
<div class="space-y-4">
|
|
<div>
|
|
<%= f.label :password, t('devise.passwords.edit.new_password'), class: "block text-sm font-medium text-neutral-700" %>
|
|
<% if @minimum_password_length %>
|
|
<em class="text-sm text-neutral-500">(<%= t('devise.registrations.new.minimum_password_length', count: @minimum_password_length) %>)</em>
|
|
<% end %>
|
|
<%= f.password_field :password, autofocus: true, autocomplete: "new-password",
|
|
class: "mt-1 block w-full px-3 py-2 border border-neutral-300 rounded-md shadow-sm placeholder-neutral-400 focus:outline-none focus:ring-purple-500 focus:border-purple-500 sm:text-sm" %>
|
|
</div>
|
|
|
|
<div>
|
|
<%= f.label :password_confirmation, t('devise.passwords.edit.confirm_new_password'), class: "block text-sm font-medium text-neutral-700" %>
|
|
<%= f.password_field :password_confirmation, autocomplete: "new-password",
|
|
class: "mt-1 block w-full px-3 py-2 border border-neutral-300 rounded-md shadow-sm placeholder-neutral-400 focus:outline-none focus:ring-purple-500 focus:border-purple-500 sm:text-sm" %>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="actions">
|
|
<%= f.submit t('devise.passwords.edit.submit'),
|
|
class: "group relative w-full flex justify-center py-2 px-4 border border-transparent text-sm font-medium rounded-md text-white bg-purple-600 hover:bg-purple-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-offset-neutral-50 focus:ring-purple-500" %>
|
|
</div>
|
|
<% end %>
|
|
|
|
<%= render "devise/shared/links" %>
|
|
</div>
|
|
</div>
|