From 99310c56bbef6fe395e2a0ad39de556d21e47ce7 Mon Sep 17 00:00:00 2001 From: f Date: Mon, 27 May 2024 16:44:23 -0300 Subject: [PATCH] fix: el valor es obligatorio --- app/views/posts/attributes/_new_array.haml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/posts/attributes/_new_array.haml b/app/views/posts/attributes/_new_array.haml index 71c409a2..38ba4eb9 100644 --- a/app/views/posts/attributes/_new_array.haml +++ b/app/views/posts/attributes/_new_array.haml @@ -45,7 +45,7 @@ - content_for :"#{id}_footer" do .input-group.w-auto.flex-grow-1.my-0 - %input.form-control{ form: form_id, name: 'value', type: 'text', placeholder: t('.add_new') } + %input.form-control{ form: form_id, name: 'value', type: 'text', placeholder: t('.add_new'), required: true } .input-group-append = render 'bootstrap/btn', content: t('.add', layout: ''), form: form_id, type: 'submit', class: 'mb-0 mr-0' = render 'bootstrap/btn', content: t('.accept'), action: 'array#accept modal#hide', class: 'm-0 mr-1'