From b3518aa6dba24a48a233a68be19171d58570b19f Mon Sep 17 00:00:00 2001 From: f Date: Mon, 23 Jul 2018 17:15:01 -0300 Subject: [PATCH] nombrar el grupo --- app/views/posts/template_field/_table.haml | 6 +++--- config/locales/en.yml | 6 +++--- config/locales/es.yml | 6 +++--- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/app/views/posts/template_field/_table.haml b/app/views/posts/template_field/_table.haml index bd229fb2..7d7b89ae 100644 --- a/app/views/posts/template_field/_table.haml +++ b/app/views/posts/template_field/_table.haml @@ -24,8 +24,8 @@ - if template.array? .clearfix %button.btn.btn-warning.btn-sm.pull-right.remove-group - = fa_icon 'close', title: t('posts.row.del') - = t('posts.row.del') + = fa_icon 'close', title: t('posts.row.del', group: template.key.humanize) + = t('posts.row.del', group: template.key.humanize) -# Separar los campos en dos columnas - template.nested_fields.each_slice(2).to_a.each do |col| .form-row @@ -51,4 +51,4 @@ .extra-groups - if template.array? .clearfix - %button.btn.btn-success.btn-block.add-group= t('posts.row.add') + %button.btn.btn-success.btn-block.add-group= t('posts.row.add', group: template.key.humanize) diff --git a/config/locales/en.yml b/config/locales/en.yml index ff9d00bc..128bc582 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -211,10 +211,10 @@ en: max: 'You can select up to %{max} options' text_area: max: 'Up to %{max} characters' - table: 'This field is a group of fields, you can add more groups with the "Add group" button or remove them with the "Remove group" button.' + table: 'This field is a group of fields, you can add more groups with the "Add" button or remove them with the "Remove" button.' row: - add: 'Add group' - del: 'Remove group' + add: 'Add %{group}' + del: 'Remove %{group}' checkbox: 'Yes' anchor: 'Copy this link to come back here' number: diff --git a/config/locales/es.yml b/config/locales/es.yml index 2dca15e1..d6b1af18 100644 --- a/config/locales/es.yml +++ b/config/locales/es.yml @@ -207,10 +207,10 @@ es: max: 'Puedes seleccionar hasta %{max} opciones' text_area: max: 'Hasta %{max} caracteres' - table: 'Este campo es un grupo de campos, puede agregar los que necesites con el botón "Agregar otro" o eliminar los que no con "Eliminar grupo"' + table: 'Este campo es un grupo de campos, puede agregar los que necesites con el botón "Agregar" o eliminar los que no con "Eliminar"' row: - add: 'Agregar otro' - del: 'Eliminar grupo' + add: 'Agregar %{group}' + del: 'Eliminar %{group}' checkbox: 'Sí' anchor: 'Copia este vínculo para volver aquí más tarde' number: