From e60dcf70fed247f182b5275d799f52b95714679b Mon Sep 17 00:00:00 2001 From: void Date: Fri, 12 Feb 2021 23:04:01 +0000 Subject: [PATCH] WIP: propiedades --- app/views/posts/attributes/_content.haml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/app/views/posts/attributes/_content.haml b/app/views/posts/attributes/_content.haml index 7efba92..c6faf7e 100644 --- a/app/views/posts/attributes/_content.haml +++ b/app/views/posts/attributes/_content.haml @@ -34,17 +34,17 @@ %button.btn{ data: { editor: { button: 'parentBlock-left' } } }= t('editor.left') %button.btn{ data: { editor: { button: 'parentBlock-center' } } }= t('editor.center') %button.btn{ data: { editor: { button: 'parentBlock-right' } } }= t('editor.right') - //%button.btn{ data: { editor: { button: 'multimedia' } } }= t('editor.multimedia') + -#%button.btn{ data: { editor: { button: 'multimedia' } } }= t('editor.multimedia') -# HAML cringe TODO: generar IDs para labels - .editor-auxiliary-toolbar.mt-1.scrollbar-black{ data: { editor: { auxiliary: { toolbar: '' } } } } - .form-group{ data: { editor: { auxiliary: 'mark' } } } + .editor-auxiliary-toolbar.mt-1.scrollbar-black{ data: { 'editor_auxiliary_toolbar': '' } } + %form.form-group{ data: { editor: { auxiliary: 'mark' } } } %label{ for: 'mark-color' }= t('editor.color') %input.form-control{ type: 'color', data: { prop: 'mark-color' } }/ - %div{ data: { editor: { auxiliary: 'multimedia' } } } + %form{ data: { editor: { auxiliary: 'multimedia' } } } .row .col-12.col-lg.form-group.d-flex.align-items-end .custom-file @@ -55,7 +55,7 @@ %label{ for: 'multimedia-alt' }= t('editor.description') %input.form-control{ type: 'text', data: { prop: 'multimedia-alt' } }/ - .form-group{ data: { editor: { auxiliary: 'a' } } } + %form.form-group{ data: { editor: { auxiliary: 'link' } } } %label{ for: 'a-href' }= t('editor.url') %input.form-control{ type: 'url', data: { prop: 'a-href' } }/