diff --git a/app/views/posts/modal.haml b/app/views/posts/modal.haml index 6875cea8..e589dfa8 100644 --- a/app/views/posts/modal.haml +++ b/app/views/posts/modal.haml @@ -59,7 +59,8 @@ = render 'posts/attributes', site: site, post: post, dir: dir, base: base, locale: locale, except: except -# @todo Volver obligatorios? - except.each do |attr| - %input{ type: 'hidden', name: "#{base}[#{attr}]", value: pluck_param(attr, optional: true) } + - if (value = pluck_param(attr, optional: true)) + = hidden_field_tag "#{base}[#{attr}]", value - content_for :"#{modal_id}_footer" do -# = render 'posts/validation', site: site, invalid: { id: invalid_id }, submitting: { id: submitting_id }