daisy_devise 0.0.2 → 0.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b5636d76bb923f85b3229d3d878d1795f2303df9550c2941622c1415a8699723
4
- data.tar.gz: 3096fc4758bd967d95b7c687758971104d49dc73eda547738127ad09418b9fcf
3
+ metadata.gz: 48b80ef4950cce6fa730bf37d8133abca7105c791cc9e0755852ca557064245e
4
+ data.tar.gz: 1583df33bca9cbd50364cd4d5624ecd1c451be2a304930225e4bc8a2bc42dab1
5
5
  SHA512:
6
- metadata.gz: fcec79f70a580a600eb23fbde2b42af2b7ea5657ee7bcbe3a85e4eb24afe01e23e2f4928aa439dc3c0fd26d5abe91a7cc4d6708c5a627ba1a0297840aa939f71
7
- data.tar.gz: 7c534486f6fde64b18495f5303fb3d939787058858f031199098fdb7c2d5cf8bafbdd2bcb4a6d60eed7dd6a769e040b01a8917c03ce71a8758e0c68e8427773b
6
+ metadata.gz: 1868450b9f68ee5e42c53c36640cb861a790a5920f1e09111a3a2eeec4a4090da32e37214e920a73cf2db119a27d1ded7911dd4438aa393b1755d2a603a0ce86
7
+ data.tar.gz: c1a71a0c0313ebacec0fcea42ef20272617dc7498435811785e3eb0aa2502c412257b88291113a1e69d971dc547b644cab8f72cbca2e212419f3d7c7114ca3e9
@@ -1,48 +1,45 @@
1
1
  <div class="w-full min-h-[100vh] pt-24">
2
- <div class="max-w-xl w-full mx-auto shadow-lg bg-gray-200 rounded-lg py-8">
3
- <h2 class="text-xl mb-4 text-center">Edit <%= resource_name.to_s.humanize %></h2>
2
+ <fieldset class="fieldset bg-base-200 border-base-300 rounded-box w-lg border p-4 mx-auto">
3
+ <legend class="fieldset-legend">Edit <%= resource_name.to_s.humanize %></legend>
4
4
 
5
- <div class="w-3/4 mx-auto">
6
- <%= form_for(resource, as: resource_name, url: registration_path(resource_name), html: { method: :put }) do |f| %>
7
- <%= render "devise/shared/error_messages", resource: resource %>
5
+ <%= form_for(resource, as: resource_name, url: registration_path(resource_name), html: { method: :put }) do |f| %>
6
+ <%= render "devise/shared/error_messages", resource: resource %>
8
7
 
9
- <div class="field mb-4">
10
- <%= f.label :email, class: "label" %><br />
11
- <%= f.email_field :email, autofocus: true, autocomplete: "email", class: "input" %>
12
- </div>
8
+ <div class="flex flex-col mb-4 gap-2">
9
+ <%= f.label :email, class: "label" %>
10
+ <%= f.email_field :email, autofocus: true, autocomplete: "email", class: "input w-full" %>
11
+ </div>
13
12
 
14
- <% if devise_mapping.confirmable? && resource.pending_reconfirmation? %>
15
- <div>Currently waiting confirmation for: <%= resource.unconfirmed_email %></div>
16
- <% end %>
17
-
18
- <div class="field mb-4">
19
- <%= f.label :password, class: "label" %> <i>(leave blank if you don't want to change it)</i><br />
20
- <%= f.password_field :password, autocomplete: "new-password", class: "input" %>
21
- <% if @minimum_password_length %>
22
- <br />
23
- <em><%= @minimum_password_length %> characters minimum</em>
24
- <% end %>
25
- </div>
26
-
27
- <div class="field mb-4">
28
- <%= f.label :password_confirmation, class: "label" %><br />
29
- <%= f.password_field :password_confirmation, autocomplete: "new-password", class: "input" %>
30
- </div>
31
-
32
- <div class="field mb-4">
33
- <%= f.label :current_password, class: "label" %> <i>(we need your current password to confirm your changes)</i><br />
34
- <%= f.password_field :current_password, autocomplete: "current-password", class: "input" %>
35
- </div>
36
-
37
- <div class="actions">
38
- <%= f.submit "Update", class: "btn btn-primary" %>
39
- </div>
13
+ <% if devise_mapping.confirmable? && resource.pending_reconfirmation? %>
14
+ <div>Currently waiting confirmation for: <%= resource.unconfirmed_email %></div>
40
15
  <% end %>
41
- <br/>
42
-
43
- <%= link_to "Back", :back, class: "text-lg" %>
44
16
 
45
- <div class="flex gap-2 items-center mt-8 mx-auto">Unhappy? <%= button_to "Cancel my account", registration_path(resource_name), data: { confirm: "Are you sure?", turbo_confirm: "Are you sure?" }, method: :delete, class: "bg-red-500 p-2 rounded-lg text-red-100" %></div>
46
- </div>
47
- </div>
17
+ <div class="flex flex-col mb-4 gap-2">
18
+ <%= f.label :password, class: "label" %> <i>(leave blank if you don't want to change it)</i>
19
+ <%= f.password_field :password, autocomplete: "new-password", class: "input w-full" %>
20
+ <% if @minimum_password_length %>
21
+ <em><%= @minimum_password_length %> characters minimum</em>
22
+ <% end %>
23
+ </div>
24
+
25
+ <div class="field mb-4">
26
+ <%= f.label :password_confirmation, class: "label" %>
27
+ <%= f.password_field :password_confirmation, autocomplete: "new-password", class: "input w-full" %>
28
+ </div>
29
+
30
+ <div class="flex flex-col mb-4 gap-2">
31
+ <%= f.label :current_password, class: "label" %> <i>(we need your current password to confirm your changes)</i>
32
+ <%= f.password_field :current_password, autocomplete: "current-password", class: "input w-full" %>
33
+ </div>
34
+
35
+ <div class="actions">
36
+ <%= f.submit "Update", class: "btn btn-primary" %>
37
+ </div>
38
+ <% end %>
39
+ <br/>
40
+
41
+ <%= link_to "Back", :back, class: "text-lg" %>
42
+
43
+ <div class="flex gap-2 items-center mt-8 mx-auto">Unhappy? <%= button_to "Cancel my account", registration_path(resource_name), data: { confirm: "Are you sure?", turbo_confirm: "Are you sure?" }, method: :delete, class: "btn btn-error" %></div>
44
+ </fieldset>
48
45
  </div>
@@ -5,18 +5,18 @@
5
5
  <%= form_for(resource, as: resource_name, url: registration_path(resource_name)) do |f| %>
6
6
  <%= render "devise/shared/error_messages", resource: resource %>
7
7
 
8
- <div class="flex flex-col mb-6">
9
- <%= f.label :email, class: "label" %><br />
8
+ <div class="flex flex-col mb-6 gap-2">
9
+ <%= f.label :email, class: "label" %>
10
10
  <%= f.email_field :email, autofocus: true, autocomplete: "email", class: "input w-full" %>
11
11
  </div>
12
12
 
13
- <div class="flex flex-col mb-6">
13
+ <div class="flex flex-col mb-6 gap-2">
14
14
  <%= f.label :password, class: "label" %>
15
15
  <%= f.password_field :password, autocomplete: "new-password", class: "input w-full" %>
16
16
  </div>
17
17
 
18
- <div class="flex flex-col mb-6">
19
- <%= f.label :password_confirmation, class: "label" %><br />
18
+ <div class="flex flex-col mb-6 gap-2">
19
+ <%= f.label :password_confirmation, class: "label" %>
20
20
  <%= f.password_field :password_confirmation, autocomplete: "new-password", class: "input w-full" %>
21
21
  </div>
22
22
 
@@ -3,18 +3,18 @@
3
3
  <legend class="fieldset-legend">Login</legend>
4
4
 
5
5
  <%= form_for(resource, as: resource_name, url: session_path(resource_name)) do |f| %>
6
- <div class="w-full flex flex-col mb-6">
7
- <%= f.label :email, class: "label" %><br />
6
+ <div class="w-full flex flex-col mb-6 gap-2">
7
+ <%= f.label :email, class: "label" %>
8
8
  <%= f.email_field :email, autofocus: true, autocomplete: "email", class: "input w-full" %>
9
9
  </div>
10
10
 
11
- <div class="w-full flex flex-col mb-6">
12
- <%= f.label :password, class: "label" %><br />
11
+ <div class="w-full flex flex-col mb-6 gap-2">
12
+ <%= f.label :password, class: "label" %>
13
13
  <%= f.password_field :password, autocomplete: "current-password", class: "input w-full" %>
14
14
  </div>
15
15
 
16
16
  <% if devise_mapping.rememberable? %>
17
- <div class="w-full flex gap-4 mb-6">
17
+ <div class="w-full flex gap-4 mb-6 gap-2">
18
18
  <%= f.check_box :remember_me, class: "checkbox" %>
19
19
  <%= f.label :remember_me, class: "label" %>
20
20
  </div>
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: daisy_devise
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Indigo