5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-11-22 18:46:22 +00:00

feat: botón de guardar en el pie

This commit is contained in:
f 2024-05-23 17:47:21 -03:00
parent 1e13fc4621
commit d5d31a6d94
No known key found for this signature in database
4 changed files with 5 additions and 6 deletions

View file

@ -7,6 +7,7 @@
@param :dir [Symbol, String]
:ruby
options = {
id: base,
multipart: true,
class: 'form post ',
'hx-swap': params.require(:swap),
@ -29,13 +30,7 @@
%input{ type: 'hidden', name: 'name', value: params.require(:name) }
%input{ type: 'hidden', name: 'base', value: params.require(:base) }
-# Botones de guardado
= render 'posts/submit', site: site, post: post
= hidden_field_tag "#{base}[layout]", post.layout.name
-# Dibuja cada atributo
= render 'posts/attributes', site: site, post: post, dir: dir, base: base, locale: locale
-# Botones de guardado
= render 'posts/submit', site: site, post: post

View file

@ -90,3 +90,5 @@
= render 'bootstrap/modal', id: post_id, modal_content_attributes: { class: 'h-100' } do
- content_for :"#{post_id}_body" do
%div{ id: post_form_loaded_id }
- content_for :"#{post_id}_footer" do
= render 'bootstrap/btn', form: id, content: t('.save'), type: 'submit'

View file

@ -944,3 +944,4 @@ en:
cancel: "Cancel"
edit: "Edit"
filter: "Start typing to filter..."
save: "Save"

View file

@ -952,3 +952,4 @@ es:
cancel: "Cancelar"
edit: "Editar"
filter: "Empezá a escribir para filtrar..."
save: "Guardar"