diff --git a/app/views/posts/_form.haml b/app/views/posts/_form.haml index 2276051..6e06ca9 100644 --- a/app/views/posts/_form.haml +++ b/app/views/posts/_form.haml @@ -16,6 +16,7 @@ - url = site_post_path(@site, @post, lang: @lang) - method = :patch = form_tag url, method: method, class: 'form', novalidate: true do + = hidden_field_tag 'template', params[:template] .form-group = submit_tag t('posts.save'), class: 'btn btn-success' .form-group