From bbffce5e03ea52cfd9e2b24f7c5f7d4708527575 Mon Sep 17 00:00:00 2001 From: G-Chubinidze <112488503+G-Chubinidze@users.noreply.github.com> Date: Mon, 28 Aug 2023 12:36:40 +0400 Subject: [PATCH] Placeholder text (titles, description field) [SCI-9081] (#6087) * Placeholder text (titles, description field) [SCI-9081] * removed serializer code * Update table.vue --- app/javascript/vue/shared/content/checklist.vue | 2 +- app/javascript/vue/shared/content/table.vue | 2 +- config/locales/en.yml | 8 +++++--- 3 files changed, 7 insertions(+), 5 deletions(-) diff --git a/app/javascript/vue/shared/content/checklist.vue b/app/javascript/vue/shared/content/checklist.vue index b53290a1b..615b96ec1 100644 --- a/app/javascript/vue/shared/content/checklist.vue +++ b/app/javascript/vue/shared/content/checklist.vue @@ -12,7 +12,7 @@ :value="element.attributes.orderable.name" :sa_value="element.attributes.orderable.sa_name" :characterLimit="10000" - :placeholder="''" + :placeholder="i18n.t('protocols.steps.checklist.checklist_name')" :allowBlank="false" :autofocus="editingName" :smartAnnotation="true" diff --git a/app/javascript/vue/shared/content/table.vue b/app/javascript/vue/shared/content/table.vue index 4db39ad43..60429de74 100644 --- a/app/javascript/vue/shared/content/table.vue +++ b/app/javascript/vue/shared/content/table.vue @@ -12,7 +12,7 @@   Name Z to A" steps: - placeholder: 'Enter step name' + placeholder: 'Step name' default_name: 'Untitled step' completed: 'Completed' uncompleted: 'Uncompleted' @@ -3090,8 +3090,10 @@ en: description: 'Tables have become content blocks and require a name. To be able to edit the table, please add the name now:' save: 'Save table title' error: "Table name can't be empty" + table_name: "Table name" checklist: default_name: 'Checklist %{position}' + checklist_name: "Checklist name" empty_checklist: 'Doesn’t contain any checklist items' text: placeholder: 'Enter step text'