diff --git a/app/views/admin/communication/blocks/components/string/_edit.html.erb b/app/views/admin/communication/blocks/components/string/_edit.html.erb index 40d8d0c09a8d6bcb6dc3b60e4637c078eab41a6f..9175fe2c8285bc98efc2445554f5d8ad16d75f41 100644 --- a/app/views/admin/communication/blocks/components/string/_edit.html.erb +++ b/app/views/admin/communication/blocks/components/string/_edit.html.erb @@ -1,10 +1,15 @@ -<label class="form-label" - aria-label="<%= label %>" - :for="<%= dom_id.html_safe %>"> - <%= label%> -</label> -<input :id="<%= dom_id.html_safe %>" - class="form-control mb-3" - v-model="<%= model %>.<%= property %>" - placeholder="<%= placeholder %>" - type="text" /> +<div class="mb-3"> + <label class="form-label" + aria-label="<%= label %>" + :for="<%= dom_id.html_safe %>"> + <%= label%> + </label> + <input :id="<%= dom_id.html_safe %>" + class="form-control" + v-model="<%= model %>.<%= property %>" + placeholder="<%= placeholder %>" + type="text" /> + <% if hint %> + <div class="form-text"><%= hint %></div> + <% end %> +</div> \ No newline at end of file diff --git a/config/locales/communication/en.yml b/config/locales/communication/en.yml index 9f445beb233dea175f9314db27980de0045ca123..43f86bae1fca1f2a794e6a55bc662262e88e97e2 100644 --- a/config/locales/communication/en.yml +++ b/config/locales/communication/en.yml @@ -459,6 +459,10 @@ en: url: label: Video url placeholder: Enter video's url + hint: > + Ex: + https://vimeo.com/732180675, + https://www.youtube.com/watch?v=lAYhfCPelO0 video_title: label: Video title placeholder: Enter video title diff --git a/config/locales/communication/fr.yml b/config/locales/communication/fr.yml index 3b20932c1a839f011645aab64cb76064cacbfca0..29a758f331e22bbcec281fbe53fa58dc4aebabb2 100644 --- a/config/locales/communication/fr.yml +++ b/config/locales/communication/fr.yml @@ -463,6 +463,10 @@ fr: url: label: Url de la vidéo placeholder: Entrer l'url de la vidéo + hint: > + Ex: + https://vimeo.com/732180675, + https://www.youtube.com/watch?v=lAYhfCPelO0 video_title: label: Titre de la vidéo placeholder: Entrer le titre de la vidéo