From 16739684bb7ca55d71c22cbd103ca8c058c33ecc Mon Sep 17 00:00:00 2001 From: Miquel Sabaté Solà Date: Fri, 15 Mar 2024 11:15:53 +0100 Subject: things: provide a simple way to follow links MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Miquel Sabaté Solà --- app/views/things/_form.html.erb | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'app/views/things') diff --git a/app/views/things/_form.html.erb b/app/views/things/_form.html.erb index 62058a9..4aa3dc7 100644 --- a/app/views/things/_form.html.erb +++ b/app/views/things/_form.html.erb @@ -39,9 +39,12 @@ <%= form.text_field :address, autocapitalize: 'on' %> -
- <%= form.label :url %> - <%= form.text_field :url %> +
+ <%= form.label :url do %> + <%= I18n.t('activerecord.attributes.thing.url') %> + + <% end %> + <%= form.text_field :url, "data-action": "thing#updateLink" %>
-- cgit v1.2.3