From 330549d850d4717fd4722e541f73b23b65ee1537 Mon Sep 17 00:00:00 2001 From: Julia Radzhabova Date: Mon, 5 Sep 2022 21:52:13 +0300 Subject: [PATCH] Refactoring sign settings dialog, set default values --- .../main/lib/view/SignSettingsDialog.js | 20 +++++++++---------- apps/documenteditor/main/locale/en.json | 11 +++++----- apps/presentationeditor/main/locale/en.json | 11 +++++----- apps/spreadsheeteditor/main/locale/en.json | 11 +++++----- 4 files changed, 28 insertions(+), 25 deletions(-) diff --git a/apps/common/main/lib/view/SignSettingsDialog.js b/apps/common/main/lib/view/SignSettingsDialog.js index 47347c24e..a23fec07e 100644 --- a/apps/common/main/lib/view/SignSettingsDialog.js +++ b/apps/common/main/lib/view/SignSettingsDialog.js @@ -63,10 +63,7 @@ define([ }, options || {}); this.template = [ - '
', - '
', - '', - '
', + '
', '
', '', '
', @@ -125,6 +122,7 @@ define([ }); me.textareaInstructions = this.$window.find('textarea'); + me.textareaInstructions.val(this.textDefInstruction); me.textareaInstructions.keydown(function (event) { if (event.keyCode == Common.UI.Keys.RETURN) { event.stopPropagation(); @@ -136,7 +134,8 @@ define([ this.chDate = new Common.UI.CheckBox({ el: $('#id-dlg-sign-settings-date'), labelText: this.textShowDate, - disabled: this.type=='view' + disabled: this.type=='view', + value: 'checked' }); $window.find('.dlg-btn').on('click', _.bind(this.onBtnClick, this)); @@ -198,13 +197,14 @@ define([ }, textInfo: 'Signer Info', - textInfoName: 'Name', - textInfoTitle: 'Signer Title', - textInfoEmail: 'E-mail', - textInstructions: 'Instructions for Signer', + textInfoName: 'Suggested signer', + textInfoTitle: 'Suggested signer\'s title', + textInfoEmail: 'Suggested signer\'s e-mail', + textInstructions: 'Instructions for signer', txtEmpty: 'This field is required', textAllowComment: 'Allow signer to add comment in the signature dialog', textShowDate: 'Show sign date in signature line', - textTitle: 'Signature Setup' + textTitle: 'Signature Setup', + textDefInstruction: 'Before signing this document, verify that the content you are signing is correct.' }, Common.Views.SignSettingsDialog || {})) }); \ No newline at end of file diff --git a/apps/documenteditor/main/locale/en.json b/apps/documenteditor/main/locale/en.json index 35f727803..93d4c3fa5 100644 --- a/apps/documenteditor/main/locale/en.json +++ b/apps/documenteditor/main/locale/en.json @@ -506,14 +506,15 @@ "Common.Views.SignDialog.tipFontName": "Font Name", "Common.Views.SignDialog.tipFontSize": "Font Size", "Common.Views.SignSettingsDialog.textAllowComment": "Allow signer to add comment in the signature dialog", - "Common.Views.SignSettingsDialog.textInfo": "Signer Info", - "Common.Views.SignSettingsDialog.textInfoEmail": "E-mail", - "Common.Views.SignSettingsDialog.textInfoName": "Name", - "Common.Views.SignSettingsDialog.textInfoTitle": "Signer Title", - "Common.Views.SignSettingsDialog.textInstructions": "Instructions for Signer", + "del_Common.Views.SignSettingsDialog.textInfo": "Signer Info", + "Common.Views.SignSettingsDialog.textInfoEmail": "Suggested signer's e-mail", + "Common.Views.SignSettingsDialog.textInfoName": "Suggested signer", + "Common.Views.SignSettingsDialog.textInfoTitle": "Suggested signer's title", + "Common.Views.SignSettingsDialog.textInstructions": "Instructions for signer", "Common.Views.SignSettingsDialog.textShowDate": "Show sign date in signature line", "Common.Views.SignSettingsDialog.textTitle": "Signature Setup", "Common.Views.SignSettingsDialog.txtEmpty": "This field is required", + "Common.Views.SignSettingsDialog.textDefInstruction": "Before signing this document, verify that the content you are signing is correct.", "Common.Views.SymbolTableDialog.textCharacter": "Character", "Common.Views.SymbolTableDialog.textCode": "Unicode HEX value", "Common.Views.SymbolTableDialog.textCopyright": "Copyright Sign", diff --git a/apps/presentationeditor/main/locale/en.json b/apps/presentationeditor/main/locale/en.json index 70e423a64..9ca95866e 100644 --- a/apps/presentationeditor/main/locale/en.json +++ b/apps/presentationeditor/main/locale/en.json @@ -579,14 +579,15 @@ "Common.Views.SignDialog.tipFontName": "Font Name", "Common.Views.SignDialog.tipFontSize": "Font Size", "Common.Views.SignSettingsDialog.textAllowComment": "Allow signer to add comment in the signature dialog", - "Common.Views.SignSettingsDialog.textInfo": "Signer Info", - "Common.Views.SignSettingsDialog.textInfoEmail": "E-mail", - "Common.Views.SignSettingsDialog.textInfoName": "Name", - "Common.Views.SignSettingsDialog.textInfoTitle": "Signer Title", - "Common.Views.SignSettingsDialog.textInstructions": "Instructions for Signer", + "del_Common.Views.SignSettingsDialog.textInfo": "Signer Info", + "Common.Views.SignSettingsDialog.textInfoEmail": "Suggested signer's e-mail", + "Common.Views.SignSettingsDialog.textInfoName": "Suggested signer", + "Common.Views.SignSettingsDialog.textInfoTitle": "Suggested signer's title", + "Common.Views.SignSettingsDialog.textInstructions": "Instructions for signer", "Common.Views.SignSettingsDialog.textShowDate": "Show sign date in signature line", "Common.Views.SignSettingsDialog.textTitle": "Signature Setup", "Common.Views.SignSettingsDialog.txtEmpty": "This field is required", + "Common.Views.SignSettingsDialog.textDefInstruction": "Before signing this document, verify that the content you are signing is correct.", "Common.Views.SymbolTableDialog.textCharacter": "Character", "Common.Views.SymbolTableDialog.textCode": "Unicode HEX value", "Common.Views.SymbolTableDialog.textCopyright": "Copyright Sign", diff --git a/apps/spreadsheeteditor/main/locale/en.json b/apps/spreadsheeteditor/main/locale/en.json index bfda66b47..ba046f651 100644 --- a/apps/spreadsheeteditor/main/locale/en.json +++ b/apps/spreadsheeteditor/main/locale/en.json @@ -442,14 +442,15 @@ "Common.Views.SignDialog.tipFontName": "Font Name", "Common.Views.SignDialog.tipFontSize": "Font Size", "Common.Views.SignSettingsDialog.textAllowComment": "Allow signer to add comment in the signature dialog", - "Common.Views.SignSettingsDialog.textInfo": "Signer Info", - "Common.Views.SignSettingsDialog.textInfoEmail": "E-mail", - "Common.Views.SignSettingsDialog.textInfoName": "Name", - "Common.Views.SignSettingsDialog.textInfoTitle": "Signer Title", - "Common.Views.SignSettingsDialog.textInstructions": "Instructions for Signer", + "del_Common.Views.SignSettingsDialog.textInfo": "Signer Info", + "Common.Views.SignSettingsDialog.textInfoEmail": "Suggested signer's e-mail", + "Common.Views.SignSettingsDialog.textInfoName": "Suggested signer", + "Common.Views.SignSettingsDialog.textInfoTitle": "Suggested signer's title", + "Common.Views.SignSettingsDialog.textInstructions": "Instructions for signer", "Common.Views.SignSettingsDialog.textShowDate": "Show sign date in signature line", "Common.Views.SignSettingsDialog.textTitle": "Signature Setup", "Common.Views.SignSettingsDialog.txtEmpty": "This field is required", + "Common.Views.SignSettingsDialog.textDefInstruction": "Before signing this document, verify that the content you are signing is correct.", "Common.Views.SymbolTableDialog.textCharacter": "Character", "Common.Views.SymbolTableDialog.textCode": "Unicode HEX value", "Common.Views.SymbolTableDialog.textCopyright": "Copyright Sign",