lesli_shield 1.1.6 → 1.1.8

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.
Files changed (110) hide show
  1. checksums.yaml +4 -4
  2. data/Rakefile +3 -0
  3. data/app/assets/stylesheets/lesli_shield/application.css +1222 -1
  4. data/app/assets/stylesheets/lesli_shield/confirmations.css +917 -18
  5. data/app/assets/stylesheets/lesli_shield/confirmations.tailwind.css +918 -0
  6. data/app/assets/stylesheets/lesli_shield/invitations.css +1008 -0
  7. data/app/assets/stylesheets/lesli_shield/passwords.css +872 -18
  8. data/app/assets/stylesheets/lesli_shield/passwords.tailwind.css +873 -0
  9. data/app/assets/stylesheets/lesli_shield/registrations.css +904 -832
  10. data/app/assets/stylesheets/lesli_shield/registrations.tailwind.css +908 -0
  11. data/app/assets/stylesheets/lesli_shield/sessions.css +984 -32
  12. data/app/assets/stylesheets/lesli_shield/sessions.tailwind.css +983 -1
  13. data/app/controllers/lesli_shield/invites_controller.rb +100 -49
  14. data/app/controllers/lesli_shield/profile/passwords_controller.rb +119 -0
  15. data/app/controllers/lesli_shield/profiles_controller.rb +69 -0
  16. data/app/controllers/lesli_shield/role/actions_controller.rb +134 -38
  17. data/app/controllers/lesli_shield/roles_controller.rb +114 -141
  18. data/app/controllers/lesli_shield/sessions_controller.rb +1 -2
  19. data/app/controllers/lesli_shield/users_controller.rb +11 -4
  20. data/app/controllers/users/confirmations_controller.rb +162 -49
  21. data/app/controllers/users/invitations_controller.rb +101 -0
  22. data/app/controllers/users/passwords_controller.rb +211 -28
  23. data/app/controllers/users/registrations_controller.rb +108 -83
  24. data/app/controllers/users/sessions_controller.rb +124 -84
  25. data/app/interfaces/lesli_shield/authorization_interface.rb +2 -2
  26. data/app/jobs/lesli_shield/invitation_delivery_job.rb +123 -0
  27. data/app/mailers/lesli_shield/devise_mailer.rb +73 -17
  28. data/app/mailers/lesli_shield/invitation_mailer.rb +58 -0
  29. data/app/models/concerns/lesli_shield/role_management.rb +70 -0
  30. data/app/models/concerns/lesli_shield/user_authentication.rb +54 -0
  31. data/app/models/concerns/lesli_shield/user_security.rb +22 -19
  32. data/app/models/lesli_shield/account.rb +4 -1
  33. data/app/models/lesli_shield/invite.rb +183 -12
  34. data/app/models/lesli_shield/user/role.rb +1 -1
  35. data/app/models/lesli_shield/user.rb +5 -2
  36. data/app/services/lesli_shield/invitation_audit.rb +34 -0
  37. data/app/services/lesli_shield/invitation_email_policy.rb +64 -0
  38. data/app/services/lesli_shield/invitation_service.rb +405 -0
  39. data/app/services/lesli_shield/invite_service.rb +34 -5
  40. data/app/services/lesli_shield/profile/password_service.rb +47 -0
  41. data/app/services/lesli_shield/profile_service.rb +25 -0
  42. data/app/services/lesli_shield/role_action_service.rb +37 -92
  43. data/app/services/lesli_shield/role_audit.rb +42 -0
  44. data/app/services/lesli_shield/role_permission_service.rb +347 -0
  45. data/app/services/lesli_shield/role_privilege_deployment_service.rb +79 -0
  46. data/app/services/lesli_shield/role_privilege_service.rb +69 -105
  47. data/app/services/lesli_shield/role_service.rb +431 -0
  48. data/app/services/lesli_shield/user_registration_service.rb +41 -74
  49. data/app/services/lesli_shield/user_session_service.rb +1 -1
  50. data/app/services/lesli_shield/user_validator_service.rb +37 -39
  51. data/app/views/devise/confirmations/new.html.erb +58 -12
  52. data/app/views/devise/confirmations/show.html.erb +27 -60
  53. data/app/views/devise/passwords/edit.html.erb +59 -25
  54. data/app/views/devise/passwords/new.html.erb +61 -26
  55. data/app/views/devise/registrations/new.html.erb +83 -56
  56. data/app/views/devise/sessions/new.html.erb +58 -41
  57. data/app/views/devise/shared/_application-devise-simple.erb +18 -19
  58. data/app/views/devise/shared/_demo.html.erb +8 -6
  59. data/app/views/devise/shared/_error_messages.html.erb +45 -10
  60. data/app/views/devise/shared/_links.html.erb +10 -20
  61. data/app/views/lesli_shield/invites/_form.html.erb +64 -7
  62. data/app/views/lesli_shield/invites/_invite.html.erb +55 -2
  63. data/app/views/lesli_shield/invites/_invite_actions.html.erb +34 -0
  64. data/app/views/lesli_shield/invites/_status_badge.html.erb +13 -0
  65. data/app/views/lesli_shield/invites/index.html.erb +119 -62
  66. data/app/views/lesli_shield/invites/new.html.erb +11 -36
  67. data/app/views/lesli_shield/invites/show.html.erb +13 -52
  68. data/app/views/lesli_shield/profiles/_information-form.html.erb +11 -0
  69. data/app/views/lesli_shield/profiles/_password-form.html.erb +68 -0
  70. data/app/views/lesli_shield/profiles/show.html.erb +26 -0
  71. data/app/views/lesli_shield/role/actions/_custom_actions.html.erb +24 -0
  72. data/app/views/lesli_shield/role/actions/_deployment_status.html.erb +14 -0
  73. data/app/views/lesli_shield/role/actions/_matrix.html.erb +69 -0
  74. data/app/views/lesli_shield/role/actions/_permissions.html.erb +95 -0
  75. data/app/views/lesli_shield/role/actions/_toggle.html.erb +34 -0
  76. data/app/views/lesli_shield/role/actions/index.html.erb +14 -10
  77. data/app/views/lesli_shield/roles/_deployment_badge.html.erb +15 -0
  78. data/app/views/lesli_shield/roles/_empty_state.html.erb +20 -0
  79. data/app/views/lesli_shield/roles/_field_errors.html.erb +5 -0
  80. data/app/views/lesli_shield/roles/_filters.html.erb +66 -0
  81. data/app/views/lesli_shield/roles/_form.html.erb +149 -18
  82. data/app/views/lesli_shield/roles/_management_menu.html.erb +37 -0
  83. data/app/views/lesli_shield/roles/_pagination.html.erb +43 -0
  84. data/app/views/lesli_shield/roles/_role_list.html.erb +116 -0
  85. data/app/views/lesli_shield/roles/_status_badge.html.erb +11 -0
  86. data/app/views/lesli_shield/roles/_type_badge.html.erb +9 -0
  87. data/app/views/lesli_shield/roles/index.html.erb +15 -38
  88. data/app/views/lesli_shield/roles/new.html.erb +11 -0
  89. data/app/views/lesli_shield/roles/show.html.erb +79 -7
  90. data/app/views/lesli_shield/users/_information-form.html.erb +15 -1
  91. data/app/views/users/invitations/show.html.erb +142 -0
  92. data/app/views/users/invitations/unavailable.html.erb +19 -0
  93. data/config/initializers/devise.rb +52 -328
  94. data/config/locales/devise.en.yml +8 -0
  95. data/config/locales/devise.es.yml +8 -0
  96. data/config/locales/translations.en.yml +314 -16
  97. data/config/locales/translations.es.yml +314 -16
  98. data/config/routes.rb +14 -3
  99. data/db/migrate/v1/0801120110_create_lesli_shield_invites.rb +40 -6
  100. data/lib/lesli_shield/engine.rb +42 -4
  101. data/lib/lesli_shield/router.rb +62 -18
  102. data/lib/lesli_shield/version.rb +2 -2
  103. data/lib/tasks/lesli_shield_tasks.rake +1 -1
  104. data/readme.md +17 -3
  105. metadata +63 -8
  106. data/app/assets/config/lesli_shield_manifest.js +0 -48
  107. data/app/assets/stylesheets/lesli_shield/application.tailwind.css +0 -2
  108. data/app/mailers/lesli_shield/invitation.html.erb +0 -23
  109. data/app/views/lesli_shield/invites/edit.html.erb +0 -12
  110. data/app/views/lesli_shield/role/actions/_form.html.erb +0 -75
metadata CHANGED
@@ -1,13 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lesli_shield
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.6
4
+ version: 1.1.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - The Lesli Development Team
8
+ autorequire:
8
9
  bindir: bin
9
10
  cert_chain: []
10
- date: 1980-01-02 00:00:00.000000000 Z
11
+ date: 2026-11-16 00:00:00.000000000 Z
11
12
  dependencies:
12
13
  - !ruby/object:Gem::Dependency
13
14
  name: lesli
@@ -23,6 +24,20 @@ dependencies:
23
24
  - - "~>"
24
25
  - !ruby/object:Gem::Version
25
26
  version: 5.1.0
27
+ - !ruby/object:Gem::Dependency
28
+ name: devise
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: 5.0.0
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: 5.0.0
26
41
  description: "Provides a complete authentication and authorization solution for The
27
42
  Lesli Framework, \nincluding user session management, secure login and logout, role-based
28
43
  access control, \nand permission handling.\n"
@@ -33,7 +48,6 @@ extensions: []
33
48
  extra_rdoc_files: []
34
49
  files:
35
50
  - Rakefile
36
- - app/assets/config/lesli_shield_manifest.js
37
51
  - app/assets/images/lesli_shield/login-background.jpg
38
52
  - app/assets/images/lesli_shield/register-background.jpg
39
53
  - app/assets/images/lesli_shield/shield-logo.svg
@@ -43,17 +57,22 @@ files:
43
57
  - app/assets/javascripts/lesli_shield/registrations.js
44
58
  - app/assets/javascripts/lesli_shield/sessions.js
45
59
  - app/assets/stylesheets/lesli_shield/application.css
46
- - app/assets/stylesheets/lesli_shield/application.tailwind.css
47
60
  - app/assets/stylesheets/lesli_shield/confirmations.css
61
+ - app/assets/stylesheets/lesli_shield/confirmations.tailwind.css
48
62
  - app/assets/stylesheets/lesli_shield/devise/oauth.css
63
+ - app/assets/stylesheets/lesli_shield/invitations.css
49
64
  - app/assets/stylesheets/lesli_shield/passwords.css
65
+ - app/assets/stylesheets/lesli_shield/passwords.tailwind.css
50
66
  - app/assets/stylesheets/lesli_shield/registrations.css
67
+ - app/assets/stylesheets/lesli_shield/registrations.tailwind.css
51
68
  - app/assets/stylesheets/lesli_shield/sessions.css
52
69
  - app/assets/stylesheets/lesli_shield/sessions.tailwind.css
53
70
  - app/assets/stylesheets/lesli_shield/users.css
54
71
  - app/controllers/lesli_shield/application_controller.rb
55
72
  - app/controllers/lesli_shield/dashboards_controller.rb
56
73
  - app/controllers/lesli_shield/invites_controller.rb
74
+ - app/controllers/lesli_shield/profile/passwords_controller.rb
75
+ - app/controllers/lesli_shield/profiles_controller.rb
57
76
  - app/controllers/lesli_shield/role/actions_controller.rb
58
77
  - app/controllers/lesli_shield/roles_controller.rb
59
78
  - app/controllers/lesli_shield/sessions_controller.rb
@@ -61,6 +80,7 @@ files:
61
80
  - app/controllers/lesli_shield/user/roles_controller.rb
62
81
  - app/controllers/lesli_shield/users_controller.rb
63
82
  - app/controllers/users/confirmations_controller.rb
83
+ - app/controllers/users/invitations_controller.rb
64
84
  - app/controllers/users/omniauth_callbacks_controller.rb
65
85
  - app/controllers/users/passwords_controller.rb
66
86
  - app/controllers/users/registrations_controller.rb
@@ -76,9 +96,12 @@ files:
76
96
  - app/interfaces/lesli_shield/authentication_interface.rb
77
97
  - app/interfaces/lesli_shield/authorization_interface.rb
78
98
  - app/jobs/lesli_shield/application_job.rb
99
+ - app/jobs/lesli_shield/invitation_delivery_job.rb
79
100
  - app/mailers/lesli_shield/application_mailer.rb
80
101
  - app/mailers/lesli_shield/devise_mailer.rb
81
- - app/mailers/lesli_shield/invitation.html.erb
102
+ - app/mailers/lesli_shield/invitation_mailer.rb
103
+ - app/models/concerns/lesli_shield/role_management.rb
104
+ - app/models/concerns/lesli_shield/user_authentication.rb
82
105
  - app/models/concerns/lesli_shield/user_security.rb
83
106
  - app/models/lesli_shield/account.rb
84
107
  - app/models/lesli_shield/application_record.rb
@@ -90,9 +113,18 @@ files:
90
113
  - app/models/lesli_shield/user.rb
91
114
  - app/models/lesli_shield/user/role.rb
92
115
  - app/models/lesli_shield/user/session.rb
116
+ - app/services/lesli_shield/invitation_audit.rb
117
+ - app/services/lesli_shield/invitation_email_policy.rb
118
+ - app/services/lesli_shield/invitation_service.rb
93
119
  - app/services/lesli_shield/invite_service.rb
120
+ - app/services/lesli_shield/profile/password_service.rb
121
+ - app/services/lesli_shield/profile_service.rb
94
122
  - app/services/lesli_shield/role_action_service.rb
123
+ - app/services/lesli_shield/role_audit.rb
124
+ - app/services/lesli_shield/role_permission_service.rb
125
+ - app/services/lesli_shield/role_privilege_deployment_service.rb
95
126
  - app/services/lesli_shield/role_privilege_service.rb
127
+ - app/services/lesli_shield/role_service.rb
96
128
  - app/services/lesli_shield/tokens.rb
97
129
  - app/services/lesli_shield/user_registration_service.rb
98
130
  - app/services/lesli_shield/user_session_service.rb
@@ -123,14 +155,31 @@ files:
123
155
  - app/views/lesli_shield/dashboards/_component-weather.html.erb
124
156
  - app/views/lesli_shield/invites/_form.html.erb
125
157
  - app/views/lesli_shield/invites/_invite.html.erb
126
- - app/views/lesli_shield/invites/edit.html.erb
158
+ - app/views/lesli_shield/invites/_invite_actions.html.erb
159
+ - app/views/lesli_shield/invites/_status_badge.html.erb
127
160
  - app/views/lesli_shield/invites/index.html.erb
128
161
  - app/views/lesli_shield/invites/new.html.erb
129
162
  - app/views/lesli_shield/invites/show.html.erb
130
163
  - app/views/lesli_shield/partials/_navigation.html.erb
131
- - app/views/lesli_shield/role/actions/_form.html.erb
164
+ - app/views/lesli_shield/profiles/_information-form.html.erb
165
+ - app/views/lesli_shield/profiles/_password-form.html.erb
166
+ - app/views/lesli_shield/profiles/show.html.erb
167
+ - app/views/lesli_shield/role/actions/_custom_actions.html.erb
168
+ - app/views/lesli_shield/role/actions/_deployment_status.html.erb
169
+ - app/views/lesli_shield/role/actions/_matrix.html.erb
170
+ - app/views/lesli_shield/role/actions/_permissions.html.erb
171
+ - app/views/lesli_shield/role/actions/_toggle.html.erb
132
172
  - app/views/lesli_shield/role/actions/index.html.erb
173
+ - app/views/lesli_shield/roles/_deployment_badge.html.erb
174
+ - app/views/lesli_shield/roles/_empty_state.html.erb
175
+ - app/views/lesli_shield/roles/_field_errors.html.erb
176
+ - app/views/lesli_shield/roles/_filters.html.erb
133
177
  - app/views/lesli_shield/roles/_form.html.erb
178
+ - app/views/lesli_shield/roles/_management_menu.html.erb
179
+ - app/views/lesli_shield/roles/_pagination.html.erb
180
+ - app/views/lesli_shield/roles/_role_list.html.erb
181
+ - app/views/lesli_shield/roles/_status_badge.html.erb
182
+ - app/views/lesli_shield/roles/_type_badge.html.erb
134
183
  - app/views/lesli_shield/roles/index.html.erb
135
184
  - app/views/lesli_shield/roles/new.html.erb
136
185
  - app/views/lesli_shield/roles/show.html.erb
@@ -162,7 +211,11 @@ files:
162
211
  - app/views/lesli_shield/users/index.html.erb
163
212
  - app/views/lesli_shield/users/new.html.erb
164
213
  - app/views/lesli_shield/users/show.html.erb
214
+ - app/views/users/invitations/show.html.erb
215
+ - app/views/users/invitations/unavailable.html.erb
165
216
  - config/initializers/devise.rb
217
+ - config/locales/devise.en.yml
218
+ - config/locales/devise.es.yml
166
219
  - config/locales/translations.en.yml
167
220
  - config/locales/translations.es.yml
168
221
  - config/routes.rb
@@ -190,6 +243,7 @@ metadata:
190
243
  source_code_uri: https://github.com/LesliTech/LesliShield
191
244
  bug_tracker_uri: https://github.com/LesliTech/LesliShield/issues
192
245
  documentation_uri: https://www.lesli.dev/engines/shield/
246
+ post_install_message:
193
247
  rdoc_options: []
194
248
  require_paths:
195
249
  - lib
@@ -204,7 +258,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
204
258
  - !ruby/object:Gem::Version
205
259
  version: '0'
206
260
  requirements: []
207
- rubygems_version: 3.7.1
261
+ rubygems_version: 3.5.16
262
+ signing_key:
208
263
  specification_version: 4
209
264
  summary: Users & security management for the Lesli Framework.
210
265
  test_files: []
@@ -1,48 +0,0 @@
1
- /*
2
- Lesli
3
-
4
- Copyright (c) 2023, Lesli Technologies, S. A.
5
-
6
- This program is free software: you can redistribute it and/or modify
7
- it under the terms of the GNU General Public License as published by
8
- the Free Software Foundation, either version 3 of the License, or
9
- (at your option) any later version.
10
-
11
- This program is distributed in the hope that it will be useful,
12
- but WITHOUT ANY WARRANTY; without even the implied warranty of
13
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14
- GNU General Public License for more details.
15
-
16
- You should have received a copy of the GNU General Public License
17
- along with this program. If not, see http://www.gnu.org/licenses/.
18
-
19
- Lesli · Ruby on Rails SaaS Development Framework.
20
-
21
- Made with ♥ by https://www.lesli.tech
22
- Building a better future, one line of code at a time.
23
-
24
- @contact hello@lesli.tech
25
- @website https://www.lesli.dev
26
- @license GPLv3 http://www.gnu.org/licenses/gpl-3.0.en.html
27
-
28
- // · ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~
29
- // ·
30
- */
31
-
32
- //= link_tree ../images/lesli_shield .png
33
- //= link_tree ../images/lesli_shield .jpg
34
- //= link_tree ../images/lesli_shield .svg
35
-
36
- //= link lesli_shield/application.css
37
- //= link lesli_shield/application.js
38
- //= link lesli_shield/sessions.tailwind.css
39
-
40
-
41
- //= link lesli_shield/sessions.js
42
- //= link lesli_shield/sessions.css
43
- //= link lesli_shield/passwords.js
44
- //= link lesli_shield/passwords.css
45
- //= link lesli_shield/registrations.js
46
- //= link lesli_shield/registrations.css
47
- //= link lesli_shield/confirmations.js
48
- //= link lesli_shield/confirmations.css
@@ -1,2 +0,0 @@
1
- /*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */
2
- @layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-leading:initial;--tw-font-weight:initial;--tw-outline-style:solid}}}@layer theme{:root,:host{--color-slate-600:oklch(44.6% .043 257.281);--color-slate-800:oklch(27.9% .041 260.031);--spacing:.25rem;--text-xl:1.25rem;--text-xl--line-height:calc(1.75 / 1.25);--font-weight-semibold:600;--leading-tight:1.25;--radius-sm:.25rem}}@layer utilities{.mt-6{margin-top:calc(var(--spacing) * 6)}.mr-2{margin-right:calc(var(--spacing) * 2)}.mb-1{margin-bottom:var(--spacing)}.mb-4{margin-bottom:calc(var(--spacing) * 4)}.flex{display:flex}.inline-flex{display:inline-flex}.min-w-0{min-width:0}.shrink-0{flex-shrink:0}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-center{align-items:center}.justify-center{justify-content:center}.gap-4{gap:calc(var(--spacing) * 4)}.gap-x-4{column-gap:calc(var(--spacing) * 4)}.gap-y-2{row-gap:calc(var(--spacing) * 2)}.text-center{text-align:center}.text-xl{font-size:var(--text-xl);line-height:var(--tw-leading,var(--text-xl--line-height))}.leading-tight{--tw-leading:var(--leading-tight);line-height:var(--leading-tight)}.font-semibold{--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.break-all{word-break:break-all}.text-\[var\(--lesli-color-primary\)\]{color:var(--lesli-color-primary)}.text-slate-600{color:var(--color-slate-600)}.text-slate-800{color:var(--color-slate-800)}@media (hover:hover){.hover\:underline:hover{text-decoration-line:underline}}.focus-visible\:rounded-sm:focus-visible{border-radius:var(--radius-sm)}.focus-visible\:outline-2:focus-visible{outline-style:var(--tw-outline-style);outline-width:2px}.focus-visible\:outline-offset-2:focus-visible{outline-offset:2px}.focus-visible\:outline-\[var\(--lesli-color-primary\)\]:focus-visible{outline-color:var(--lesli-color-primary)}@media (min-width:48rem){.md\:flex-row{flex-direction:row}.md\:justify-start{justify-content:flex-start}.md\:text-left{text-align:left}}}@property --tw-leading{syntax:"*";inherits:false}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-outline-style{syntax:"*";inherits:false;initial-value:solid}
@@ -1,23 +0,0 @@
1
- <!doctype html><html xmlns="http://www.w3.org/1999/xhtml" xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office"><head><title></title><!--[if !mso]><!--><meta http-equiv="X-UA-Compatible" content="IE=edge"><!--<![endif]--><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><meta name="viewport" content="width=device-width,initial-scale=1"><style type="text/css">#outlook a { padding:0; }
2
- body { margin:0;padding:0;-webkit-text-size-adjust:100%;-ms-text-size-adjust:100%; }
3
- table, td { border-collapse:collapse;mso-table-lspace:0pt;mso-table-rspace:0pt; }
4
- img { border:0;height:auto;line-height:100%; outline:none;text-decoration:none;-ms-interpolation-mode:bicubic; }
5
- p { display:block;margin:13px 0; }</style><!--[if mso]>
6
- <noscript>
7
- <xml>
8
- <o:OfficeDocumentSettings>
9
- <o:AllowPNG/>
10
- <o:PixelsPerInch>96</o:PixelsPerInch>
11
- </o:OfficeDocumentSettings>
12
- </xml>
13
- </noscript>
14
- <![endif]--><!--[if lte mso 11]>
15
- <style type="text/css">
16
- .mj-outlook-group-fix { width:100% !important; }
17
- </style>
18
- <![endif]--><!--[if !mso]><!--><link href="https://fonts.googleapis.com/css?family=Ubuntu:300,400,500,700" rel="stylesheet" type="text/css"><style type="text/css">@import url(https://fonts.googleapis.com/css?family=Ubuntu:300,400,500,700);</style><!--<![endif]--><style type="text/css">@media only screen and (min-width:480px) {
19
- .mj-column-per-100 { width:100% !important; max-width: 100%; }
20
- }</style><style media="screen and (min-width:480px)">.moz-text-html .mj-column-per-100 { width:100% !important; max-width: 100%; }</style><style type="text/css">@media only screen and (max-width:479px) {
21
- table.mj-full-width-mobile { width: 100% !important; }
22
- td.mj-full-width-mobile { width: auto !important; }
23
- }</style><style type="text/css"></style></head><body style="word-spacing:normal;background-color:#ebecf0;"><div style="background-color:#ebecf0;"><!--[if mso | IE]><table align="center" border="0" cellpadding="0" cellspacing="0" class="" role="presentation" style="width:600px;" width="600" ><tr><td style="line-height:0px;font-size:0px;mso-line-height-rule:exactly;"><![endif]--><div style="margin:0px auto;max-width:600px;"><table align="center" border="0" cellpadding="0" cellspacing="0" role="presentation" style="width:100%;"><tbody><tr><td style="direction:ltr;font-size:0px;padding:20px 0;text-align:center;"><!--[if mso | IE]><table role="presentation" border="0" cellpadding="0" cellspacing="0"><tr><td class="" style="vertical-align:top;width:600px;" ><![endif]--><div class="mj-column-per-100 mj-outlook-group-fix" style="font-size:0px;text-align:left;direction:ltr;display:inline-block;vertical-align:top;width:100%;"><table border="0" cellpadding="0" cellspacing="0" role="presentation" style="vertical-align:top;" width="100%"><tbody><tr><td align="center" style="font-size:0px;padding:0px;padding-top:60px;padding-bottom:0px;padding-left:5px;word-break:break-word;"><table border="0" cellpadding="0" cellspacing="0" role="presentation" style="border-collapse:collapse;border-spacing:0px;"><tbody><tr><td style="width:125px;"><img src="https://cdn.lesli.tech/leslicloud/brand/app-logo.png" style="border:0;display:block;outline:none;text-decoration:none;height:auto;width:100%;font-size:13px;" width="125" height="auto"></td></tr></tbody></table></td></tr></tbody></table></div><!--[if mso | IE]></td></tr></table><![endif]--></td></tr></tbody></table></div><!--[if mso | IE]></td></tr></table><![endif]--><div style="height:5px;line-height:5px;">&#8202;</div><div style="font-family:Ubuntu, Helvetica, Arial, sans-serif;font-size:13px;line-height:1;text-align:center;color:#4a5056;"><h1>Welcome to The Lesli Family!</h1></div><!--[if mso | IE]><table align="center" border="0" cellpadding="0" cellspacing="0" class="" role="presentation" style="width:600px;" width="600" bgcolor="#ffffff" ><tr><td style="line-height:0px;font-size:0px;mso-line-height-rule:exactly;"><![endif]--><div style="background:#ffffff;background-color:#ffffff;margin:0px auto;border-radius:15px;max-width:600px;"><table align="center" border="0" cellpadding="0" cellspacing="0" role="presentation" style="background:#ffffff;background-color:#ffffff;width:100%;border-radius:15px;"><tbody><tr><td style="direction:ltr;font-size:0px;padding:40px;text-align:center;"><!--[if mso | IE]><table role="presentation" border="0" cellpadding="0" cellspacing="0"><tr><td class="" style="vertical-align:top;width:520px;" ><![endif]--><div class="mj-column-per-100 mj-outlook-group-fix" style="font-size:0px;text-align:left;direction:ltr;display:inline-block;vertical-align:top;width:100%;"><table border="0" cellpadding="0" cellspacing="0" role="presentation" style="vertical-align:top;" width="100%"><tbody><tr><td align="center" style="font-size:0px;padding:0px;word-break:break-word;"><div style="font-family:Ubuntu, Helvetica, Arial, sans-serif;font-size:13px;line-height:1;text-align:center;color:#4a5056;"><h2><raw><% name = @data.dig(:user, :full_name) %></raw><raw><%= !name.blank? ? "Hi #{name.strip}." : nil %></raw></h2></div></td></tr><tr><td style="background:#95a3ab;font-size:0px;word-break:break-word;"><div style="height:2px;line-height:2px;">&#8202;</div></td></tr><tr><td style="font-size:0px;word-break:break-word;"><div style="height:5px;line-height:5px;">&#8202;</div></td></tr><tr><td align="center" style="font-size:0px;padding:10px 25px;word-break:break-word;"><div style="font-family:Ubuntu, Helvetica, Arial, sans-serif;font-size:18px;line-height:1.4;text-align:center;color:#4a5056;"><p>You have been invitated to Lesli, please confirm your email address by clicking the button below:</p></div></td></tr><tr><td align="center" vertical-align="middle" style="font-size:0px;padding:10px 25px;word-break:break-word;"><table border="0" cellpadding="0" cellspacing="0" role="presentation" style="border-collapse:separate;line-height:100%;"><tbody><tr><td align="center" bgcolor="#eef6fc" role="presentation" style="border:1px solid #209cee;border-radius:5px;cursor:auto;mso-padding-alt:10px;background:#eef6fc;" valign="middle"><a href="<%= url_for(@app[:host] + @data[:url]) %>" style="display:inline-block;background:#eef6fc;color:#209cee;font-family:Ubuntu, Helvetica, Arial, sans-serif;font-size:17px;font-weight:normal;line-height:120%;margin:0;text-decoration:none;text-transform:none;padding:10px;mso-padding-alt:0px;border-radius:5px;" target="_blank">Confirm my account</a></td></tr></tbody></table></td></tr></tbody></table></div><!--[if mso | IE]></td></tr></table><![endif]--></td></tr></tbody></table></div><!--[if mso | IE]></td></tr></table><![endif]--><div style="height:30px;line-height:30px;">&#8202;</div><!--[if mso | IE]><table align="center" border="0" cellpadding="0" cellspacing="0" class="" role="presentation" style="width:600px;" width="600" ><tr><td style="line-height:0px;font-size:0px;mso-line-height-rule:exactly;"><![endif]--><div style="margin:0px auto;max-width:600px;"><table align="center" border="0" cellpadding="0" cellspacing="0" role="presentation" style="width:100%;"><tbody><tr><td style="direction:ltr;font-size:0px;padding:20px 0;text-align:center;"><!--[if mso | IE]><table role="presentation" border="0" cellpadding="0" cellspacing="0"><tr><td class="" style="vertical-align:top;width:600px;" ><![endif]--><div class="mj-column-per-100 mj-outlook-group-fix" style="font-size:0px;text-align:left;direction:ltr;display:inline-block;vertical-align:top;width:100%;"><table border="0" cellpadding="0" cellspacing="0" role="presentation" style="vertical-align:top;" width="100%"><tbody><tr><td align="center" style="font-size:0px;padding:10px 25px;word-break:break-word;"><div style="font-family:Ubuntu, Helvetica, Arial, sans-serif;font-size:18px;font-weight:600;line-height:1;text-align:center;color:#444444;">¡Siguenos!</div></td></tr><tr><td align="center" style="font-size:0px;padding:10px 25px;word-break:break-word;"><table cellpadding="0" cellspacing="0" width="300" border="0" style="color:#000000;font-family:Ubuntu, Helvetica, Arial, sans-serif;font-size:13px;line-height:22px;table-layout:auto;width:300px;border:none;"><tr><td align="center"><img width="45px" alt="Facebook" src="https://cdn.lesli.tech/leslicloud/emails/social-facebook.png"></td><td align="center"><img width="45px" alt="Twitter" src="https://cdn.lesli.tech/leslicloud/emails/social-twitter.png"></td><td align="center"><img width="45px" alt="Instagram" src="https://cdn.lesli.tech/leslicloud/emails/social-instagram.png"></td><td align="center"><img width="45px" alt="Linkedin" src="https://cdn.lesli.tech/leslicloud/emails/social-linkedin.png"></td></tr></table></td></tr></tbody></table></div><!--[if mso | IE]></td></tr></table><![endif]--></td></tr></tbody></table></div><!--[if mso | IE]></td></tr></table><table align="center" border="0" cellpadding="0" cellspacing="0" class="" role="presentation" style="width:600px;" width="600" ><tr><td style="line-height:0px;font-size:0px;mso-line-height-rule:exactly;"><![endif]--><div style="margin:0px auto;max-width:600px;"><table align="center" border="0" cellpadding="0" cellspacing="0" role="presentation" style="width:100%;"><tbody><tr><td style="direction:ltr;font-size:0px;padding:20px 0;text-align:center;"><!--[if mso | IE]><table role="presentation" border="0" cellpadding="0" cellspacing="0"><tr><td class="" style="vertical-align:top;width:600px;" ><![endif]--><div class="mj-column-per-100 mj-outlook-group-fix" style="font-size:0px;text-align:left;direction:ltr;display:inline-block;vertical-align:top;width:100%;"><table border="0" cellpadding="0" cellspacing="0" role="presentation" style="vertical-align:top;" width="100%"><tbody><tr><td align="center" style="font-size:0px;padding:10px 25px;word-break:break-word;"><div style="font-family:Ubuntu, Helvetica, Arial, sans-serif;font-size:18px;font-weight:600;line-height:1;text-align:center;color:#444444;">Download our app</div></td></tr><tr><td align="center" style="font-size:0px;padding:10px 25px;word-break:break-word;"><table cellpadding="0" cellspacing="0" width="100%" border="0" style="color:#000000;font-family:Ubuntu, Helvetica, Arial, sans-serif;font-size:13px;line-height:22px;table-layout:auto;width:100%;border:none;"><tr><td style="text-align: right; padding: 5px;"><a target="blank" href="https://apps.apple.com/us/app/lesli/id1595893730"><img width="130px" alt="Appstore badge" src="https://cdn.lesli.tech/leslicloud/emails/appstore.png"></a></td><td style="text-align: left; padding: 5px;"><a target="blank" href="https://apps.apple.com/us/app/lesli/id1595893730"><img width="130px" alt="Playstore badge" src="https://cdn.lesli.tech/leslicloud/emails/playstore.png"></a></td></tr></table></td></tr></tbody></table></div><!--[if mso | IE]></td></tr></table><![endif]--></td></tr></tbody></table></div><!--[if mso | IE]></td></tr></table><![endif]--><div style="height:10px;line-height:10px;">&#8202;</div><!--[if mso | IE]><table align="center" border="0" cellpadding="0" cellspacing="0" class="" role="presentation" style="width:600px;" width="600" ><tr><td style="line-height:0px;font-size:0px;mso-line-height-rule:exactly;"><![endif]--><div style="margin:0px auto;max-width:600px;"><table align="center" border="0" cellpadding="0" cellspacing="0" role="presentation" style="width:100%;"><tbody><tr><td style="direction:ltr;font-size:0px;padding:20px 0;text-align:center;"><!--[if mso | IE]><table role="presentation" border="0" cellpadding="0" cellspacing="0"><tr><td class="" style="vertical-align:top;width:600px;" ><![endif]--><div class="mj-column-per-100 mj-outlook-group-fix" style="font-size:0px;text-align:left;direction:ltr;display:inline-block;vertical-align:top;width:100%;"><table border="0" cellpadding="0" cellspacing="0" role="presentation" style="vertical-align:top;" width="100%"><tbody><tr><td align="center" style="font-size:0px;padding:4px;word-break:break-word;"><div style="font-family:Ubuntu, Helvetica, Arial, sans-serif;font-size:13px;line-height:1;text-align:center;color:#666666;">Copyright &copy; <%= Time.new.year %> LesliTech</div></td></tr><tr><td align="center" style="font-size:0px;padding:4px;word-break:break-word;"><div style="font-family:Ubuntu, Helvetica, Arial, sans-serif;font-size:13px;line-height:1;text-align:center;color:#666666;">Ciudad de Guatemala, Guatemala.</div></td></tr><tr><td align="center" style="font-size:0px;padding:4px;word-break:break-word;"><div style="font-family:Ubuntu, Helvetica, Arial, sans-serif;font-size:13px;line-height:1;text-align:center;color:#666666;">All rights reserved.</div></td></tr><tr><td align="center" style="font-size:0px;padding:4px;padding-top:20px;word-break:break-word;"><div style="font-family:Ubuntu, Helvetica, Arial, sans-serif;font-size:13px;line-height:1;text-align:center;color:#666666;">The Lesli Team</div></td></tr></tbody></table></div><!--[if mso | IE]></td></tr></table><![endif]--></td></tr></tbody></table></div><!--[if mso | IE]></td></tr></table><![endif]--></div></body></html>
@@ -1,12 +0,0 @@
1
- <% content_for :title, "Editing invite" %>
2
-
3
- <h1>Editing invite</h1>
4
-
5
- <%= render "form", invite: @invite %>
6
-
7
- <br>
8
-
9
- <div>
10
- <%= link_to "Show this invite", @invite %> |
11
- <%= link_to "Back to invites", invites_path %>
12
- </div>
@@ -1,75 +0,0 @@
1
-
2
- <%
3
- columns = [{
4
- label: "Controller"
5
- }, {
6
- label: "Index"
7
- }, {
8
- label: "Show"
9
- }, {
10
- label: "Create"
11
- }, {
12
- label: "Update"
13
- }, {
14
- label: "Destroy"
15
- }]
16
- %>
17
-
18
-
19
- <style>
20
- .mini-toggle {
21
- position: relative;
22
- width: 40px;
23
- height: 20px;
24
- background: #ccc;
25
- border-radius: 9999px;
26
- border: none;
27
- cursor: pointer;
28
- padding: 0;
29
- transition: background 0.25s ease;
30
- display: inline-block;
31
- }
32
-
33
- .mini-toggle.active {
34
- background: #22c55e; /* green */
35
- background: var(--lesli-color-primary)
36
- }
37
-
38
- .mini-toggle-slider {
39
- position: absolute;
40
- top: 2px;
41
- left: 2px;
42
- width: 16px;
43
- height: 16px;
44
- background: white;
45
- border-radius: 50%;
46
- transition: transform 0.25s ease;
47
- }
48
-
49
- .mini-toggle.active .mini-toggle-slider {
50
- transform: translateX(20px);
51
- }
52
- </style>
53
-
54
- <section id="shield-role-actions-form">
55
- <%= render(LesliView::Elements::Table.new(:columns => columns)) do |table| %>
56
- <% @role_actions.each do |controller_name, actions| %>
57
- <% table.with_row do |row| %>
58
- <% row.with_cell do %>
59
- <%= controller_name %>
60
- <% end %>
61
- <% actions.each do |action_name, action| %>
62
- <% row.with_cell do %>
63
- <% if action %>
64
- <%= button_to role_action_path(action),
65
- class: "mini-toggle #{'active' if action[:active] == 1}",
66
- method: (action[:active] == 1 ? :delete : :patch) do %>
67
- <span class="mini-toggle-slider"></span>
68
- <% end %>
69
- <% end %>
70
- <% end %>
71
- <% end %>
72
- <% end %>
73
- <% end %>
74
- <% end %>
75
- </section>