diff --git a/app/views/checks/_form.html.erb b/app/views/checks/_form.html.erb
index 138b09d..378dce9 100644
--- a/app/views/checks/_form.html.erb
+++ b/app/views/checks/_form.html.erb
@@ -20,14 +20,13 @@
<%= f.input :domain_expires_at,
required: true,
input_html: {
- type: :string,
+ type: :date,
value: check.domain_expires_at&.to_date,
- # min: Date.yesterday,
- # max: 10.years.from_now.end_of_year.to_date
+ min: Date.yesterday,
+ max: 10.years.from_now.end_of_year.to_date
},
as: :string,
- placeholder: t(".domain_expires_at_placeholder"),
- hint: t(".domain_expires_at_hint")
+ placeholder: t(".domain_expires_at_placeholder")
%>
diff --git a/config/locales/en.yml b/config/locales/en.yml
index 423d7a3..58c4495 100644
--- a/config/locales/en.yml
+++ b/config/locales/en.yml
@@ -122,8 +122,6 @@ en:
unsupported: |
This top-level domain isn't currently automatically supported.
You'll have to fill and maintain yourself the expiry date.
- domain_expires_at_hint: |
- Fill the expiry date in YYYY-MM-DD format.
domain_expires_at_placeholder: YYYY-MM-DD.
ssl:
domain: Hostname
diff --git a/config/locales/fr.yml b/config/locales/fr.yml
index 56befae..e48ca32 100644
--- a/config/locales/fr.yml
+++ b/config/locales/fr.yml
@@ -155,8 +155,6 @@ fr:
unsupported: |
Cette extension n'est pas supportée automatiquement actuellement.
Vous devrez saisir et maintenir vous-même sa date d'expiration.
- domain_expires_at_hint: |
- Renseignez la date d'expiration au format AAAA-MM-JJ.
domain_expires_at_placeholder: AAAA-MM-JJ
ssl:
domain: Nom d'hôte