diff --git a/decidim-admin/app/views/decidim/admin/share_tokens/_form.html.erb b/decidim-admin/app/views/decidim/admin/share_tokens/_form.html.erb index afa6b7e0eff0f..822ec9d414670 100644 --- a/decidim-admin/app/views/decidim/admin/share_tokens/_form.html.erb +++ b/decidim-admin/app/views/decidim/admin/share_tokens/_form.html.erb @@ -4,20 +4,20 @@ <%= form.text_field :token, aria: { label: :token }, class: "form-input" %>
-
-
- <%= form.radio_button :no_expiration, true, id: "expires_never", checked: form.object.no_expiration %> - <%= form.label :no_expiration, "Never expire", for: "expires_never" %> + <%= t("share_tokens.form.expires_at", scope: "decidim.admin") %> +
+
+
+
+ <%= form.radio_button :no_expiration, t("share_tokens.form.never_expire", scope: "decidim.admin"), checked: form.object.no_expiration %>
+ + <%= form.radio_button :no_expiration, t("share_tokens.form.custom", scope: "decidim.admin"), checked: !form.object.no_expiration %> -
- <%= form.radio_button :no_expiration, false, id: "expires_custom", checked: !form.object.no_expiration %> - <%= form.label :no_expiration, "Custom", for: "expires_custom" %> +
mt-4 row column"> + <%= form.datetime_field :expires_at, label: t("share_tokens.form.custom_expiration", scope: "decidim.admin") %>
-
- -
mt-4"> - <%= form.datetime_field :expires_at, aria: { label: :expires_at } %> +
@@ -25,12 +25,11 @@