activeadmin 4.0.0.beta6 → 4.0.0.beta8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CONTRIBUTING.md +1 -1
- data/app/javascript/active_admin/features/batch_actions.js +10 -4
- data/config/locales/ca.yml +85 -32
- data/config/locales/de.yml +16 -12
- data/lib/active_admin/version.rb +1 -1
- data/lib/active_admin/views/components/active_admin_form.rb +1 -1
- data/plugin.js +0 -1
- metadata +5 -6
- data/config/locales/de-CH.yml +0 -84
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a63b35e7f784fd50ba0471841cb52b10cf47f732c17e9a03b632303cedb922cf
|
4
|
+
data.tar.gz: 54a8a264547063ddf0b1178310a4c8a00444aaa32796e4fe9abd72c04b2406aa
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2f6a7cba813a4ce9af1f4192ab9dd96287b46044524927ab1c410875225f803ee970943658fe4942a59d6647791c61db30ab26479d87fa2db39fa92aeafb6258
|
7
|
+
data.tar.gz: fe2b8edf174e2bafcc5efcf21d7cbd2f5f8aa5449aa2f66a2963f537116d41554d30cde07014230dcdfb100bd71f66071d3e96bb8a6ff487656df713c17d2693
|
data/CONTRIBUTING.md
CHANGED
@@ -1,11 +1,20 @@
|
|
1
1
|
import Rails from '@rails/ujs';
|
2
2
|
|
3
|
+
const submitForm = function() {
|
4
|
+
let form = document.getElementById("collection_selection")
|
5
|
+
if (form) {
|
6
|
+
form.submit()
|
7
|
+
}
|
8
|
+
}
|
9
|
+
|
3
10
|
const batchActionClick = function(event) {
|
4
11
|
event.preventDefault()
|
5
12
|
let batchAction = document.getElementById("batch_action")
|
6
13
|
if (batchAction) {
|
7
14
|
batchAction.value = this.dataset.action
|
8
15
|
}
|
16
|
+
|
17
|
+
if (!event.target.dataset.confirm) { submitForm() }
|
9
18
|
}
|
10
19
|
|
11
20
|
const batchActionConfirmComplete = function(event) {
|
@@ -15,10 +24,7 @@ const batchActionConfirmComplete = function(event) {
|
|
15
24
|
if (batchAction) {
|
16
25
|
batchAction.value = this.dataset.action
|
17
26
|
}
|
18
|
-
|
19
|
-
if (form) {
|
20
|
-
form.submit()
|
21
|
-
}
|
27
|
+
submitForm()
|
22
28
|
}
|
23
29
|
}
|
24
30
|
|
data/config/locales/ca.yml
CHANGED
@@ -1,10 +1,27 @@
|
|
1
1
|
ca:
|
2
|
+
activerecord:
|
3
|
+
models:
|
4
|
+
comment:
|
5
|
+
one: "Comentari"
|
6
|
+
other: "Comentaris"
|
7
|
+
active_admin/comment:
|
8
|
+
one: "Comentari"
|
9
|
+
other: "Comentaris"
|
10
|
+
attributes:
|
11
|
+
active_admin/comment:
|
12
|
+
author_type: "Tipus d'autor"
|
13
|
+
body: "Missatge"
|
14
|
+
created_at: "Creat el"
|
15
|
+
namespace: "Espai de noms"
|
16
|
+
resource_type: "Tipus de recurs"
|
17
|
+
updated_at: "Actualitzat el"
|
2
18
|
active_admin:
|
3
|
-
dashboard: Tauler
|
19
|
+
dashboard: "Tauler d'activitat"
|
4
20
|
view: "Mostra"
|
5
21
|
edit: "Edita"
|
6
22
|
delete: "Elimina"
|
7
|
-
delete_confirmation: "Segur que
|
23
|
+
delete_confirmation: "Segur que voleu eliminar-ho?"
|
24
|
+
create_another: "Crear un altre %{model}"
|
8
25
|
new_model: "Crear %{model}"
|
9
26
|
edit_model: "Editar %{model}"
|
10
27
|
delete_model: "Eliminar %{model}"
|
@@ -14,27 +31,41 @@ ca:
|
|
14
31
|
previous: "Anterior"
|
15
32
|
next: "Següent"
|
16
33
|
download: "Descarregar:"
|
17
|
-
has_many_new: "Afegir %{model}"
|
34
|
+
has_many_new: "Afegir un altre %{model}"
|
18
35
|
has_many_delete: "Eliminar"
|
19
36
|
has_many_remove: "Treure"
|
37
|
+
move: "Moure"
|
20
38
|
filters:
|
21
39
|
buttons:
|
22
|
-
filter: "
|
23
|
-
clear: "
|
40
|
+
filter: "Filtra"
|
41
|
+
clear: "Elimina els filtres"
|
42
|
+
predicates:
|
43
|
+
from: "Des de"
|
44
|
+
to: "Fins"
|
45
|
+
scopes:
|
46
|
+
all: "Tots"
|
47
|
+
search_status:
|
48
|
+
title: "Cerca activa"
|
49
|
+
title_with_scope: "Cerca activa per %{name}"
|
50
|
+
no_current_filters: "Sense filtres actius"
|
24
51
|
status_tag:
|
25
52
|
"yes": "Sí"
|
26
53
|
"no": "No"
|
27
|
-
"unset": "
|
28
|
-
logout: "
|
54
|
+
"unset": "Desconegut"
|
55
|
+
logout: "Tanca la sessió"
|
29
56
|
powered_by: "Powered by %{active_admin} %{version}"
|
30
57
|
sidebars:
|
31
58
|
filters: "Filtres"
|
59
|
+
search_status: "Estat de la cerca"
|
32
60
|
pagination:
|
33
|
-
empty: "No
|
34
|
-
one: "S'està mostrant <b>1</b>
|
35
|
-
one_page: "S'estan mostrant <b>tots %{n}</b>
|
36
|
-
multiple: "
|
37
|
-
multiple_without_total: "
|
61
|
+
empty: "No s'ha trobat cap %{model}"
|
62
|
+
one: "S'està mostrant <b>1</b> de <b>1</b>"
|
63
|
+
one_page: "S'estan mostrant <b>tots %{n}</b>"
|
64
|
+
multiple: "Se n'estan mostrant <b>%{from}-%{to}</b> d'un total de <b>%{total}</b>"
|
65
|
+
multiple_without_total: "Se n'estan mostrant <b>%{from}-%{to}</b>"
|
66
|
+
per_page: "Per pàgina"
|
67
|
+
previous: "Anterior"
|
68
|
+
next: "Següent"
|
38
69
|
entry:
|
39
70
|
one: "entrada"
|
40
71
|
other: "entrades"
|
@@ -43,36 +74,55 @@ ca:
|
|
43
74
|
content: "Encara no hi ha cap %{resource_name}."
|
44
75
|
link: "Crea'n un/a"
|
45
76
|
batch_actions:
|
46
|
-
button_label: "
|
47
|
-
default_confirmation: "
|
48
|
-
delete_confirmation: "
|
77
|
+
button_label: "Accions per lots"
|
78
|
+
default_confirmation: "Segur que voleu fer-ho?"
|
79
|
+
delete_confirmation: "Segurs que voleu eliminar aquests %{plural_model}?"
|
49
80
|
succesfully_destroyed:
|
50
|
-
one: "
|
51
|
-
other: "
|
52
|
-
selection_toggle_explanation: "(
|
81
|
+
one: "1 %{model} eliminat"
|
82
|
+
other: "%{count} %{plural_model} eliminats"
|
83
|
+
selection_toggle_explanation: "(Invertir la selecció)"
|
53
84
|
action_label: "%{title} seleccionat"
|
54
85
|
labels:
|
55
|
-
destroy: "
|
86
|
+
destroy: "Esborrar"
|
56
87
|
comments:
|
57
|
-
|
58
|
-
|
88
|
+
created_at: "Creat el"
|
89
|
+
resource_type: "Tipus de recurs"
|
90
|
+
author_type: "Tipus d'author"
|
91
|
+
body: "Missatge"
|
92
|
+
author: "Autor"
|
59
93
|
add: "Afegeix comentari"
|
94
|
+
delete: "Elimina comentari"
|
95
|
+
delete_confirmation: "Esteu segurs que voleu eliminar aquest comentari?"
|
60
96
|
resource: "Recurs"
|
61
|
-
no_comments_yet: "
|
62
|
-
|
97
|
+
no_comments_yet: "Sense comentaris"
|
98
|
+
author_missing: "Anònim"
|
99
|
+
title_content: "Tots els comentaris (%{count})"
|
63
100
|
errors:
|
64
|
-
empty_text: "El comentari no
|
101
|
+
empty_text: "El comentari no s'ha desat, no hi havia text."
|
65
102
|
devise:
|
103
|
+
username:
|
104
|
+
title: "Usuari"
|
105
|
+
email:
|
106
|
+
title: "Email"
|
107
|
+
subdomain:
|
108
|
+
title: "Subdomini"
|
109
|
+
password:
|
110
|
+
title: "Contrasenya"
|
111
|
+
password_confirmation:
|
112
|
+
title: "Confirmeu la contrasenya"
|
113
|
+
sign_up:
|
114
|
+
title: "Doneu-vos d'alta"
|
115
|
+
submit: "Doneu-vos d'alta"
|
66
116
|
login:
|
67
|
-
title: "
|
68
|
-
remember_me: "
|
69
|
-
submit: "
|
117
|
+
title: "Identifiqueu-vos"
|
118
|
+
remember_me: "Recorda'm"
|
119
|
+
submit: "Identifiqueu-vos"
|
70
120
|
reset_password:
|
71
|
-
title: "Heu
|
121
|
+
title: "Heu oblidat la contrasenya?"
|
72
122
|
submit: "Restablir la contrasenya"
|
73
123
|
change_password:
|
74
124
|
title: "Canvieu la contrasenya"
|
75
|
-
submit: "
|
125
|
+
submit: "Canvia'm la contrasenya"
|
76
126
|
unlock:
|
77
127
|
title: "Reenvia instruccions per a desbloquejar"
|
78
128
|
submit: "Reenvia instruccions per a desbloquejar"
|
@@ -80,10 +130,13 @@ ca:
|
|
80
130
|
title: "Reenviar instruccions de confirmació"
|
81
131
|
submit: "Reenviar instruccions de confirmació"
|
82
132
|
links:
|
83
|
-
|
133
|
+
sign_up: "Sign up"
|
134
|
+
sign_in: "Sign in"
|
84
135
|
forgot_your_password: "Heu perdut la contrasenya?"
|
85
|
-
sign_in_with_omniauth_provider: "
|
136
|
+
sign_in_with_omniauth_provider: "Identificació via %{provider}"
|
137
|
+
resend_unlock_instructions: "Reenviar les instruccions de desbloqueig"
|
138
|
+
resend_confirmation_instructions: "Reenviar les instruccions de confirmació"
|
86
139
|
access_denied:
|
87
|
-
message: "No
|
140
|
+
message: "No esteu autoritzats a realitzar aquesta acció"
|
88
141
|
index_list:
|
89
142
|
table: "Taula"
|
data/config/locales/de.yml
CHANGED
@@ -16,7 +16,7 @@ de:
|
|
16
16
|
resource_type: "Ressourcentyp"
|
17
17
|
updated_at: "Aktualisiert"
|
18
18
|
active_admin:
|
19
|
-
dashboard: Übersicht
|
19
|
+
dashboard: "Übersicht"
|
20
20
|
view: "Anzeigen"
|
21
21
|
edit: "Bearbeiten"
|
22
22
|
delete: "Löschen"
|
@@ -34,7 +34,7 @@ de:
|
|
34
34
|
has_many_new: "%{model} hinzufügen"
|
35
35
|
has_many_delete: "Löschen"
|
36
36
|
has_many_remove: "Entfernen"
|
37
|
-
move: "
|
37
|
+
move: "Verschieben"
|
38
38
|
filters:
|
39
39
|
buttons:
|
40
40
|
filter: "Filtern"
|
@@ -45,6 +45,8 @@ de:
|
|
45
45
|
scopes:
|
46
46
|
all: "Alle"
|
47
47
|
search_status:
|
48
|
+
title: "Aktive Filter"
|
49
|
+
title_with_scope: "Aktive Filter in %{name}"
|
48
50
|
no_current_filters: "Keine"
|
49
51
|
status_tag:
|
50
52
|
"yes": "Ja"
|
@@ -54,14 +56,16 @@ de:
|
|
54
56
|
powered_by: "Powered by %{active_admin} %{version}"
|
55
57
|
sidebars:
|
56
58
|
filters: "Filter"
|
57
|
-
search_status: "
|
59
|
+
search_status: "Aktive Filter"
|
58
60
|
pagination:
|
59
61
|
empty: "Keine %{model} gefunden"
|
60
|
-
one: "
|
61
|
-
one_page: "
|
62
|
-
multiple: "
|
63
|
-
multiple_without_total: "
|
62
|
+
one: "<b>1</b> %{model}"
|
63
|
+
one_page: "<b>Alle %{n}</b> %{model}"
|
64
|
+
multiple: "%{model} <b>%{from} – %{to}</b> von <b>%{total}</b>"
|
65
|
+
multiple_without_total: "%{model} <b>%{from} – %{to}</b>"
|
64
66
|
per_page: "Pro Seite: "
|
67
|
+
previous: "Vorherige"
|
68
|
+
next: "Nächste"
|
65
69
|
entry:
|
66
70
|
one: "Eintrag"
|
67
71
|
other: "Einträge"
|
@@ -71,15 +75,15 @@ de:
|
|
71
75
|
link: "Erstellen"
|
72
76
|
batch_actions:
|
73
77
|
button_label: "Stapelverarbeitung"
|
74
|
-
default_confirmation: "
|
75
|
-
delete_confirmation: "Sind Sie sicher dass
|
78
|
+
default_confirmation: "Sind Sie sicher?"
|
79
|
+
delete_confirmation: "Sind Sie sicher dass Sie diese %{plural_model} löschen wollen?"
|
76
80
|
succesfully_destroyed:
|
77
81
|
one: "Erfolgreich 1 %{model} gelöscht"
|
78
82
|
other: "Erfolgreich %{count} %{plural_model} gelöscht"
|
79
83
|
selection_toggle_explanation: "(Auswahl umschalten)"
|
80
|
-
action_label: "%{title}
|
84
|
+
action_label: "Ausgewählte %{title}"
|
81
85
|
labels:
|
82
|
-
destroy: "
|
86
|
+
destroy: "löschen"
|
83
87
|
comments:
|
84
88
|
created_at: "Erstellt"
|
85
89
|
resource_type: "Ressourcen-Typ"
|
@@ -88,7 +92,7 @@ de:
|
|
88
92
|
author: "Autor"
|
89
93
|
add: "Kommentar hinzufügen"
|
90
94
|
delete: "Löschen"
|
91
|
-
delete_confirmation: "Sind Sie sicher dass
|
95
|
+
delete_confirmation: "Sind Sie sicher dass Sie diesen Kommentar löschen wollen?"
|
92
96
|
resource: "Ressource"
|
93
97
|
no_comments_yet: "Es gibt noch keine Kommentare."
|
94
98
|
author_missing: "Unbekannt"
|
data/lib/active_admin/version.rb
CHANGED
@@ -131,7 +131,7 @@ module ActiveAdmin
|
|
131
131
|
html_options[:class] ||= "inputs"
|
132
132
|
legend = args.shift if args.first.is_a?(::String)
|
133
133
|
legend = html_options.delete(:name) if html_options.key?(:name)
|
134
|
-
legend_tag = legend ? "<legend class=\"fieldset-title\">#{legend}</legend>" : ""
|
134
|
+
legend_tag = legend ? "<legend class=\"fieldset-title\">#{ERB::Util.html_escape(legend)}</legend>" : ""
|
135
135
|
fieldset_attrs = html_options.map { |k, v| %Q{#{k}="#{v}"} }.join(" ")
|
136
136
|
@opening_tag = "<fieldset #{fieldset_attrs}>#{legend_tag}<ol>"
|
137
137
|
@closing_tag = "</ol></fieldset>"
|
data/plugin.js
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: activeadmin
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.0.0.
|
4
|
+
version: 4.0.0.beta8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Charles Maresh
|
@@ -15,7 +15,7 @@ authors:
|
|
15
15
|
autorequire:
|
16
16
|
bindir: bin
|
17
17
|
cert_chain: []
|
18
|
-
date: 2024-
|
18
|
+
date: 2024-07-27 00:00:00.000000000 Z
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|
21
21
|
name: arbre
|
@@ -225,7 +225,6 @@ files:
|
|
225
225
|
- config/locales/ca.yml
|
226
226
|
- config/locales/cs.yml
|
227
227
|
- config/locales/da.yml
|
228
|
-
- config/locales/de-CH.yml
|
229
228
|
- config/locales/de.yml
|
230
229
|
- config/locales/el.yml
|
231
230
|
- config/locales/en-CA.yml
|
@@ -402,11 +401,11 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
402
401
|
version: '3.0'
|
403
402
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
404
403
|
requirements:
|
405
|
-
- - "
|
404
|
+
- - ">="
|
406
405
|
- !ruby/object:Gem::Version
|
407
|
-
version:
|
406
|
+
version: '0'
|
408
407
|
requirements: []
|
409
|
-
rubygems_version: 3.
|
408
|
+
rubygems_version: 3.5.15
|
410
409
|
signing_key:
|
411
410
|
specification_version: 4
|
412
411
|
summary: Active Admin is a Ruby on Rails plugin for generating administration style
|
data/config/locales/de-CH.yml
DELETED
@@ -1,84 +0,0 @@
|
|
1
|
-
"de-CH":
|
2
|
-
active_admin:
|
3
|
-
dashboard: Übersicht
|
4
|
-
view: "Anzeigen"
|
5
|
-
edit: "Bearbeiten"
|
6
|
-
delete: "Löschen"
|
7
|
-
delete_confirmation: "Wollen Sie dieses Element wirklich löschen?"
|
8
|
-
new_model: "%{model} erstellen"
|
9
|
-
edit_model: "%{model} bearbeiten"
|
10
|
-
delete_model: "%{model} löschen"
|
11
|
-
details: "%{model} Details"
|
12
|
-
cancel: "Abbrechen"
|
13
|
-
empty: "Leer"
|
14
|
-
previous: "Zurück"
|
15
|
-
next: "Weiter"
|
16
|
-
download: "Herunterladen:"
|
17
|
-
has_many_new: "%{model} hinzufügen"
|
18
|
-
has_many_delete: "Löschen"
|
19
|
-
has_many_remove: "Entfernen"
|
20
|
-
filters:
|
21
|
-
buttons:
|
22
|
-
filter: "Filtern"
|
23
|
-
clear: "Filter entfernen"
|
24
|
-
status_tag:
|
25
|
-
"yes": "Ja"
|
26
|
-
"no": "Nicht"
|
27
|
-
"unset": "Nicht"
|
28
|
-
logout: "Abmelden"
|
29
|
-
powered_by: "Powered by %{active_admin} %{version}"
|
30
|
-
sidebars:
|
31
|
-
filters: "Filter"
|
32
|
-
pagination:
|
33
|
-
empty: "Keine %{model} gefunden"
|
34
|
-
one: "Zeige <b>1</b> %{model}"
|
35
|
-
one_page: "Zeige <b>alle %{n}</b> %{model}"
|
36
|
-
multiple: "Zeige %{model} <b>%{from} – %{to}</b> von <b>%{total}</b>"
|
37
|
-
multiple_without_total: "Zeige %{model} <b>%{from} – %{to}</b>"
|
38
|
-
entry:
|
39
|
-
one: "Eintrag"
|
40
|
-
other: "Einträge"
|
41
|
-
any: "Alle"
|
42
|
-
blank_slate:
|
43
|
-
content: "Es gibt noch keine %{resource_name}."
|
44
|
-
link: "Erstellen"
|
45
|
-
batch_actions:
|
46
|
-
button_label: "Stapelverarbeitung"
|
47
|
-
default_confirmation: "Bist du sicher, dass Sie dies tun wollen?"
|
48
|
-
delete_confirmation: "Sind Sie sicher dass sie diese %{plural_model} löschen wollen?"
|
49
|
-
succesfully_destroyed:
|
50
|
-
one: "Erfolgreich 1 %{model} gelöscht"
|
51
|
-
other: "Erfolgreich %{count} %{plural_model} gelöscht"
|
52
|
-
selection_toggle_explanation: "(Auswahl umschalten)"
|
53
|
-
action_label: "%{title} ausgewählte"
|
54
|
-
labels:
|
55
|
-
destroy: "Lösche"
|
56
|
-
comments:
|
57
|
-
body: "Inhalt"
|
58
|
-
author: "Autor"
|
59
|
-
resource: "Resource"
|
60
|
-
add: "Kommentar hinzufügen"
|
61
|
-
delete: "Löschen"
|
62
|
-
delete_confirmation: "Sind Sie sicher dass sie diesen Kommentar löschen wollen?"
|
63
|
-
no_comments_yet: "Es gibt noch keine Kommentare."
|
64
|
-
title_content: "Kommentare (%{count})"
|
65
|
-
errors:
|
66
|
-
empty_text: "Der Kommentar wurde nicht gespeichert, da der Text fehlt."
|
67
|
-
devise:
|
68
|
-
login:
|
69
|
-
title: "Login"
|
70
|
-
remember_me: "erinnere dich an mich"
|
71
|
-
submit: "Login"
|
72
|
-
reset_password:
|
73
|
-
title: "Passwort vergessen?"
|
74
|
-
submit: "Mein Passwort zurücksetzen"
|
75
|
-
change_password:
|
76
|
-
title: "Ändern Sie Ihr Passwort"
|
77
|
-
submit: "Mein Passwort ändern"
|
78
|
-
links:
|
79
|
-
sign_up: "Registrieren"
|
80
|
-
sign_in: "Anmeldung"
|
81
|
-
forgot_your_password: "Passwort vergessen?"
|
82
|
-
sign_in_with_omniauth_provider: "Anmeldung mit %{provider}"
|
83
|
-
resend_unlock_instructions: "Entsperrungsanweisung erneut senden"
|
84
|
-
resend_confirmation_instructions: "Bestätigungsanweisung erneut senden"
|