headmin 0.5.2 → 0.5.3
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 +4 -4
- data/.lock-487e157d270f3062a98b7b2a012753708-1272821827 +0 -0
- data/Gemfile.lock +2 -2
- data/app/helpers/headmin/form_helper.rb +2 -2
- data/app/models/concerns/headmin/field.rb +2 -1
- data/app/models/concerns/headmin/fieldable.rb +10 -10
- data/app/views/examples/admin.html.erb +18 -18
- data/app/views/examples/auth.html.erb +3 -3
- data/app/views/headmin/_blocks.html.erb +2 -2
- data/app/views/headmin/_breadcrumbs.html.erb +3 -3
- data/app/views/headmin/_dropdown.html.erb +2 -2
- data/app/views/headmin/_filters.html.erb +7 -7
- data/app/views/headmin/_form.html.erb +2 -2
- data/app/views/headmin/_heading.html.erb +1 -1
- data/app/views/headmin/_index.html.erb +1 -1
- data/app/views/headmin/_notifications.html.erb +1 -1
- data/app/views/headmin/_pagination.html.erb +3 -3
- data/app/views/headmin/_popup.html.erb +4 -4
- data/app/views/headmin/_table.html.erb +2 -2
- data/app/views/headmin/_thumbnail.html.erb +1 -1
- data/app/views/headmin/dropdown/_button.html.erb +2 -2
- data/app/views/headmin/dropdown/_devise.html.erb +8 -8
- data/app/views/headmin/dropdown/_item.html.erb +2 -2
- data/app/views/headmin/dropdown/_list.html.erb +3 -3
- data/app/views/headmin/dropdown/_locale.html.erb +6 -6
- data/app/views/headmin/filters/_base.html.erb +20 -20
- data/app/views/headmin/filters/_boolean.html.erb +4 -4
- data/app/views/headmin/filters/_date.html.erb +4 -4
- data/app/views/headmin/filters/_flatpickr.html.erb +4 -4
- data/app/views/headmin/filters/_number.html.erb +4 -4
- data/app/views/headmin/filters/_options.html.erb +4 -4
- data/app/views/headmin/filters/_search.html.erb +3 -3
- data/app/views/headmin/filters/_text.html.erb +4 -4
- data/app/views/headmin/filters/filter/_button.html.erb +2 -2
- data/app/views/headmin/filters/filter/_null_select.html.erb +2 -2
- data/app/views/headmin/forms/_autocomplete.html.erb +2 -2
- data/app/views/headmin/forms/_blocks.html.erb +4 -4
- data/app/views/headmin/forms/_checkbox.html.erb +5 -5
- data/app/views/headmin/forms/_color.html.erb +5 -5
- data/app/views/headmin/forms/_date.html.erb +8 -8
- data/app/views/headmin/forms/_date_range.html.erb +3 -3
- data/app/views/headmin/forms/_datetime.html.erb +8 -8
- data/app/views/headmin/forms/_datetime_range.html.erb +3 -3
- data/app/views/headmin/forms/_email.html.erb +9 -9
- data/app/views/headmin/forms/_errors.html.erb +1 -1
- data/app/views/headmin/forms/_file.html.erb +16 -16
- data/app/views/headmin/forms/_flatpickr.html.erb +2 -2
- data/app/views/headmin/forms/_flatpickr_range.html.erb +8 -8
- data/app/views/headmin/forms/_hidden.html.erb +1 -1
- data/app/views/headmin/forms/_hint.html.erb +1 -1
- data/app/views/headmin/forms/_label.html.erb +1 -1
- data/app/views/headmin/forms/_media.html.erb +11 -11
- data/app/views/headmin/forms/_number.html.erb +8 -8
- data/app/views/headmin/forms/_password.html.erb +7 -7
- data/app/views/headmin/forms/_redactorx.html.erb +2 -2
- data/app/views/headmin/forms/_repeater.html.erb +20 -20
- data/app/views/headmin/forms/_search.html.erb +9 -9
- data/app/views/headmin/forms/_select.html.erb +8 -8
- data/app/views/headmin/forms/_switch.html.erb +2 -2
- data/app/views/headmin/forms/_text.html.erb +9 -9
- data/app/views/headmin/forms/_textarea.html.erb +7 -7
- data/app/views/headmin/forms/_url.html.erb +9 -9
- data/app/views/headmin/forms/_validation.html.erb +1 -1
- data/app/views/headmin/forms/_wysiwyg.html.erb +2 -2
- data/app/views/headmin/forms/fields/_base.html.erb +2 -2
- data/app/views/headmin/forms/fields/_file.html.erb +3 -3
- data/app/views/headmin/forms/fields/_files.html.erb +3 -3
- data/app/views/headmin/forms/fields/_group.html.erb +7 -7
- data/app/views/headmin/forms/fields/_list.html.erb +5 -5
- data/app/views/headmin/forms/fields/_text.html.erb +3 -3
- data/app/views/headmin/forms/media/_item.html.erb +4 -4
- data/app/views/headmin/forms/media/_validation.html.erb +4 -4
- data/app/views/headmin/forms/repeater/_row.html.erb +5 -5
- data/app/views/headmin/heading/_title.html.erb +2 -2
- data/app/views/headmin/layout/_main.html.erb +1 -1
- data/app/views/headmin/media/_item.html.erb +1 -1
- data/app/views/headmin/media/_media_item_modal.html.erb +12 -12
- data/app/views/headmin/media/_modal.html.erb +10 -10
- data/app/views/headmin/media/create.turbo_stream.erb +2 -2
- data/app/views/headmin/media/index.html.erb +1 -1
- data/app/views/headmin/media/update.turbo_stream.erb +1 -1
- data/app/views/headmin/nav/_dropdown.html.erb +7 -7
- data/app/views/headmin/nav/_item.html.erb +5 -5
- data/app/views/headmin/nav/item/_devise.html.erb +6 -6
- data/app/views/headmin/nav/item/_locale.html.erb +6 -6
- data/app/views/headmin/pagination/_per_page.html.erb +7 -7
- data/app/views/headmin/pagination/kaminari/_first_page.html.erb +2 -2
- data/app/views/headmin/pagination/kaminari/_gap.html.erb +1 -1
- data/app/views/headmin/pagination/kaminari/_last_page.html.erb +2 -2
- data/app/views/headmin/pagination/kaminari/_next_page.html.erb +3 -3
- data/app/views/headmin/pagination/kaminari/_page.html.erb +2 -2
- data/app/views/headmin/pagination/kaminari/_paginator.html.erb +1 -1
- data/app/views/headmin/pagination/kaminari/_prev_page.html.erb +2 -2
- data/app/views/headmin/table/_actions.html.erb +11 -11
- data/app/views/headmin/table/_body.html.erb +1 -1
- data/app/views/headmin/table/actions/_action.html.erb +4 -4
- data/app/views/headmin/table/actions/_delete.html.erb +2 -2
- data/app/views/headmin/table/actions/_export.html.erb +2 -2
- data/app/views/headmin/table/body/_association.html.erb +1 -1
- data/app/views/headmin/table/body/_boolean.erb +4 -4
- data/app/views/headmin/table/body/_date.html.erb +2 -2
- data/app/views/headmin/table/body/_row.html.erb +3 -3
- data/app/views/headmin/table/body/_string.html.erb +1 -1
- data/app/views/headmin/table/foot/_cell.html.erb +1 -1
- data/app/views/headmin/table/head/_cell.html.erb +1 -1
- data/app/views/headmin/table/head/cell/_asc.html.erb +2 -2
- data/app/views/headmin/table/head/cell/_default.html.erb +1 -1
- data/app/views/headmin/table/head/cell/_desc.html.erb +1 -1
- data/app/views/headmin/views/devise/confirmations/_new.html.erb +4 -4
- data/app/views/headmin/views/devise/passwords/_edit.html.erb +5 -5
- data/app/views/headmin/views/devise/passwords/_new.html.erb +4 -4
- data/app/views/headmin/views/devise/registrations/_edit.html.erb +10 -10
- data/app/views/headmin/views/devise/registrations/_new.html.erb +6 -6
- data/app/views/headmin/views/devise/sessions/_new.html.erb +5 -5
- data/app/views/headmin/views/devise/shared/_links.html.erb +11 -11
- data/app/views/headmin/views/devise/unlocks/_new.html.erb +4 -4
- data/lib/generators/templates/views/auth/confirmations/new.html.erb +1 -1
- data/lib/generators/templates/views/auth/mailer/confirmation_instructions.html.erb +1 -1
- data/lib/generators/templates/views/auth/mailer/email_changed.html.erb +1 -1
- data/lib/generators/templates/views/auth/mailer/password_change.html.erb +1 -1
- data/lib/generators/templates/views/auth/mailer/reset_password_instructions.html.erb +1 -1
- data/lib/generators/templates/views/auth/mailer/unlock_instructions.html.erb +1 -1
- data/lib/generators/templates/views/auth/passwords/edit.html.erb +1 -1
- data/lib/generators/templates/views/auth/passwords/new.html.erb +1 -1
- data/lib/generators/templates/views/auth/registrations/edit.html.erb +1 -1
- data/lib/generators/templates/views/auth/registrations/new.html.erb +1 -1
- data/lib/generators/templates/views/auth/sessions/new.html.erb +1 -1
- data/lib/generators/templates/views/auth/unlocks/new.html.erb +1 -1
- data/lib/generators/templates/views/layouts/auth.html.erb +3 -3
- data/lib/headmin/version.rb +1 -1
- data/package.json +1 -1
- metadata +3 -2
@@ -1,24 +1,24 @@
|
|
1
1
|
<div>
|
2
2
|
<%= form_for(resource, as: resource_name, url: registration_path(resource_name), html: { method: :put }) do |f| %>
|
3
|
-
<%= render
|
3
|
+
<%= render "headmin/views/devise/shared/error_messages", resource: resource %>
|
4
4
|
|
5
|
-
<%= render
|
5
|
+
<%= render "headmin/forms/email", form: f, attribute: :email, required: true, float: true %>
|
6
6
|
|
7
7
|
<% if devise_mapping.confirmable? && resource.pending_reconfirmation? %>
|
8
|
-
<div><%= t(
|
8
|
+
<div><%= t(".waiting_confirmation", email: resource.unconfirmed_email) %></div>
|
9
9
|
<% end %>
|
10
10
|
|
11
|
-
<%= render
|
12
|
-
<%= render
|
13
|
-
<%= render
|
11
|
+
<%= render "headmin/forms/password", form: f, attribute: :password, required: true, float: true %>
|
12
|
+
<%= render "headmin/forms/password", form: f, attribute: :password_confirmation, required: true, float: true %>
|
13
|
+
<%= render "headmin/forms/password", form: f, attribute: :current_password, required: true, float: true %>
|
14
14
|
|
15
|
-
<%= f.submit t(
|
15
|
+
<%= f.submit t(".change"), class: "btn btn-lg btn-primary w-100" %>
|
16
16
|
<% end %>
|
17
17
|
|
18
18
|
<div class="mt-5">
|
19
|
-
<h4><%= t(
|
19
|
+
<h4><%= t(".cancel") %></h4>
|
20
20
|
|
21
|
-
<p><%= t(
|
22
|
-
<%= button_to t(
|
21
|
+
<p><%= t(".unhappy") %></p>
|
22
|
+
<%= button_to t(".cancel"), registration_path(resource_name), class: "btn btn-lg btn-danger w-100", "data-turbo-confirm": "Are you sure?", "data-turbo-method": "delete" %>
|
23
23
|
</div>
|
24
24
|
</div>
|
@@ -1,11 +1,11 @@
|
|
1
1
|
<%= form_for(resource, as: resource_name, url: registration_path(resource_name)) do |f| %>
|
2
|
-
<%= render
|
2
|
+
<%= render "headmin/views/devise/shared/error_messages", resource: resource %>
|
3
3
|
|
4
|
-
<%= render
|
5
|
-
<%= render
|
6
|
-
<%= render
|
4
|
+
<%= render "headmin/forms/email", form: f, attribute: :email, required: true, float: true %>
|
5
|
+
<%= render "headmin/forms/password", form: f, attribute: :password, required: true, float: true %>
|
6
|
+
<%= render "headmin/forms/password", form: f, attribute: :password_confirmation, required: true, float: true %>
|
7
7
|
|
8
|
-
<%= f.submit t(
|
8
|
+
<%= f.submit t(".sign_up"), class: "btn btn-lg btn-primary w-100" %>
|
9
9
|
|
10
|
-
<%= render
|
10
|
+
<%= render "headmin/views/devise/shared/links" %>
|
11
11
|
<% end %>
|
@@ -1,13 +1,13 @@
|
|
1
1
|
<%= form_for(resource, as: resource_name, url: session_path(resource_name)) do |f| %>
|
2
2
|
|
3
|
-
<%= render
|
4
|
-
<%= render
|
3
|
+
<%= render "headmin/forms/email", form: f, attribute: :email, required: true, float: true %>
|
4
|
+
<%= render "headmin/forms/password", form: f, attribute: :password, required: true, float: true %>
|
5
5
|
|
6
6
|
<% if devise_mapping.rememberable? %>
|
7
|
-
<%= render
|
7
|
+
<%= render "headmin/forms/checkbox", form: f, attribute: :remember_me %>
|
8
8
|
<% end %>
|
9
9
|
|
10
|
-
<%= f.submit t(
|
10
|
+
<%= f.submit t(".login"), class: "btn btn-lg btn-primary w-100" %>
|
11
11
|
|
12
|
-
<%= render
|
12
|
+
<%= render "headmin/views/devise/shared/links" %>
|
13
13
|
<% end %>
|
@@ -1,27 +1,27 @@
|
|
1
1
|
<div class="bg-light mt-5 text-center">
|
2
|
-
<%- if controller_name !=
|
3
|
-
<%= link_to t(
|
2
|
+
<%- if controller_name != "sessions" %>
|
3
|
+
<%= link_to t(".sign_in"), new_session_path(resource_name) %><br />
|
4
4
|
<% end %>
|
5
5
|
|
6
|
-
<%- if devise_mapping.registerable? && controller_name !=
|
7
|
-
<%= link_to t(
|
6
|
+
<%- if devise_mapping.registerable? && controller_name != "registrations" %>
|
7
|
+
<%= link_to t(".sign_up"), new_registration_path(resource_name) %><br />
|
8
8
|
<% end %>
|
9
9
|
|
10
|
-
<%- if devise_mapping.recoverable? && controller_name !=
|
11
|
-
<%= link_to t(
|
10
|
+
<%- if devise_mapping.recoverable? && controller_name != "passwords" && controller_name != "registrations" %>
|
11
|
+
<%= link_to t(".forgot_password"), new_password_path(resource_name) %><br />
|
12
12
|
<% end %>
|
13
13
|
|
14
|
-
<%- if devise_mapping.confirmable? && controller_name !=
|
15
|
-
<%= link_to t(
|
14
|
+
<%- if devise_mapping.confirmable? && controller_name != "confirmations" %>
|
15
|
+
<%= link_to t(".confirmation"), new_confirmation_path(resource_name) %><br />
|
16
16
|
<% end %>
|
17
17
|
|
18
|
-
<%- if devise_mapping.lockable? && resource_class.unlock_strategy_enabled?(:email) && controller_name !=
|
19
|
-
<%= link_to t(
|
18
|
+
<%- if devise_mapping.lockable? && resource_class.unlock_strategy_enabled?(:email) && controller_name != "unlocks" %>
|
19
|
+
<%= link_to t(".unlock"), new_unlock_path(resource_name) %><br />
|
20
20
|
<% end %>
|
21
21
|
|
22
22
|
<%- if devise_mapping.omniauthable? %>
|
23
23
|
<%- resource_class.omniauth_providers.each do |provider| %>
|
24
|
-
<%= link_to t(
|
24
|
+
<%= link_to t(".omniauth", provider: OmniAuth::Utils.camelize(provider)), omniauth_authorize_path(resource_name, provider), method: :post %><br />
|
25
25
|
<% end %>
|
26
26
|
<% end %>
|
27
27
|
</div>
|
@@ -1,10 +1,10 @@
|
|
1
1
|
<%= form_for(resource, as: resource_name, url: unlock_path(resource_name), html: {method: :post}) do |f| %>
|
2
|
-
<%= render
|
2
|
+
<%= render "headmin/views/devise/shared/error_messages", resource: resource %>
|
3
3
|
|
4
|
-
<%= render
|
4
|
+
<%= render "headmin/forms/email", form: f, attribute: :email, required: true, float: true %>
|
5
5
|
|
6
|
-
<%= f.submit t(
|
6
|
+
<%= f.submit t(".resend"), class: "btn btn-lg btn-primary w-100" %>
|
7
7
|
|
8
|
-
<%= render
|
8
|
+
<%= render "headmin/views/devise/shared/links" %>
|
9
9
|
|
10
10
|
<% end %>
|
@@ -1 +1 @@
|
|
1
|
-
<%= render
|
1
|
+
<%= render "headmin/views/devise/confirmations/new" %>
|
@@ -1 +1 @@
|
|
1
|
-
<%= render
|
1
|
+
<%= render "headmin/views/devise/mailer/confirmation_instructions" %>
|
@@ -1 +1 @@
|
|
1
|
-
<%= render
|
1
|
+
<%= render "headmin/views/devise/mailer/email_changed" %>
|
@@ -1 +1 @@
|
|
1
|
-
<%= render
|
1
|
+
<%= render "headmin/views/devise/mailer/password_change" %>
|
@@ -1 +1 @@
|
|
1
|
-
<%= render
|
1
|
+
<%= render "headmin/views/devise/mailer/reset_password_instructions" %>
|
@@ -1 +1 @@
|
|
1
|
-
<%= render
|
1
|
+
<%= render "headmin/views/devise/mailer/unlock_instructions" %>
|
@@ -1 +1 @@
|
|
1
|
-
<%= render
|
1
|
+
<%= render "headmin/views/devise/passwords/edit" %>
|
@@ -1 +1 @@
|
|
1
|
-
<%= render
|
1
|
+
<%= render "headmin/views/devise/passwords/new" %>
|
@@ -1 +1 @@
|
|
1
|
-
<%= render
|
1
|
+
<%= render "headmin/views/devise/registrations/edit" %>
|
@@ -1 +1 @@
|
|
1
|
-
<%= render
|
1
|
+
<%= render "headmin/views/devise/registrations/new" %>
|
@@ -1 +1 @@
|
|
1
|
-
<%= render
|
1
|
+
<%= render "headmin/views/devise/sessions/new" %>
|
@@ -1 +1 @@
|
|
1
|
-
<%= render
|
1
|
+
<%= render "headmin/views/devise/unlocks/new" %>
|
@@ -5,12 +5,12 @@
|
|
5
5
|
<meta name="viewport" content="width=device-width,initial-scale=1">
|
6
6
|
<%= csrf_meta_tags %>
|
7
7
|
<%= csp_meta_tag %>
|
8
|
-
<%= stylesheet_pack_tag
|
9
|
-
<%= javascript_pack_tag
|
8
|
+
<%= stylesheet_pack_tag "admin", media: "all", "data-turbolinks-track": "reload" %>
|
9
|
+
<%= javascript_pack_tag "admin", "data-turbolinks-track": "reload" %>
|
10
10
|
</head>
|
11
11
|
<body class="bg-light w-100 vh-100">
|
12
12
|
|
13
|
-
<%= render
|
13
|
+
<%= render "headmin/notifications" %>
|
14
14
|
|
15
15
|
<main class="d-flex justify-content-center align-items-center w-100 vh-100 p-3">
|
16
16
|
<%= yield %>
|
data/lib/headmin/version.rb
CHANGED
data/package.json
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: headmin
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jef Vlamings
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-
|
11
|
+
date: 2022-07-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: closure_tree
|
@@ -76,6 +76,7 @@ extra_rdoc_files: []
|
|
76
76
|
files:
|
77
77
|
- ".github/workflows/ci.yml"
|
78
78
|
- ".gitignore"
|
79
|
+
- ".lock-487e157d270f3062a98b7b2a012753708-1272821827"
|
79
80
|
- ".nvmrc"
|
80
81
|
- ".ruby-version"
|
81
82
|
- CHANGELOG.md
|