Refactoring sign settings dialog, set default values
This commit is contained in:
parent
9debf2511e
commit
330549d850
|
@ -63,10 +63,7 @@ define([
|
||||||
}, options || {});
|
}, options || {});
|
||||||
|
|
||||||
this.template = [
|
this.template = [
|
||||||
'<div class="box" style="height: 260px;">',
|
'<div class="box" style="height: 250px;">',
|
||||||
'<div class="input-row">',
|
|
||||||
'<label>' + this.textInfo + '</label>',
|
|
||||||
'</div>',
|
|
||||||
'<div class="input-row">',
|
'<div class="input-row">',
|
||||||
'<label>' + this.textInfoName + '</label>',
|
'<label>' + this.textInfoName + '</label>',
|
||||||
'</div>',
|
'</div>',
|
||||||
|
@ -125,6 +122,7 @@ define([
|
||||||
});
|
});
|
||||||
|
|
||||||
me.textareaInstructions = this.$window.find('textarea');
|
me.textareaInstructions = this.$window.find('textarea');
|
||||||
|
me.textareaInstructions.val(this.textDefInstruction);
|
||||||
me.textareaInstructions.keydown(function (event) {
|
me.textareaInstructions.keydown(function (event) {
|
||||||
if (event.keyCode == Common.UI.Keys.RETURN) {
|
if (event.keyCode == Common.UI.Keys.RETURN) {
|
||||||
event.stopPropagation();
|
event.stopPropagation();
|
||||||
|
@ -136,7 +134,8 @@ define([
|
||||||
this.chDate = new Common.UI.CheckBox({
|
this.chDate = new Common.UI.CheckBox({
|
||||||
el: $('#id-dlg-sign-settings-date'),
|
el: $('#id-dlg-sign-settings-date'),
|
||||||
labelText: this.textShowDate,
|
labelText: this.textShowDate,
|
||||||
disabled: this.type=='view'
|
disabled: this.type=='view',
|
||||||
|
value: 'checked'
|
||||||
});
|
});
|
||||||
|
|
||||||
$window.find('.dlg-btn').on('click', _.bind(this.onBtnClick, this));
|
$window.find('.dlg-btn').on('click', _.bind(this.onBtnClick, this));
|
||||||
|
@ -198,13 +197,14 @@ define([
|
||||||
},
|
},
|
||||||
|
|
||||||
textInfo: 'Signer Info',
|
textInfo: 'Signer Info',
|
||||||
textInfoName: 'Name',
|
textInfoName: 'Suggested signer',
|
||||||
textInfoTitle: 'Signer Title',
|
textInfoTitle: 'Suggested signer\'s title',
|
||||||
textInfoEmail: 'E-mail',
|
textInfoEmail: 'Suggested signer\'s e-mail',
|
||||||
textInstructions: 'Instructions for Signer',
|
textInstructions: 'Instructions for signer',
|
||||||
txtEmpty: 'This field is required',
|
txtEmpty: 'This field is required',
|
||||||
textAllowComment: 'Allow signer to add comment in the signature dialog',
|
textAllowComment: 'Allow signer to add comment in the signature dialog',
|
||||||
textShowDate: 'Show sign date in signature line',
|
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 || {}))
|
}, Common.Views.SignSettingsDialog || {}))
|
||||||
});
|
});
|
|
@ -506,14 +506,15 @@
|
||||||
"Common.Views.SignDialog.tipFontName": "Font Name",
|
"Common.Views.SignDialog.tipFontName": "Font Name",
|
||||||
"Common.Views.SignDialog.tipFontSize": "Font Size",
|
"Common.Views.SignDialog.tipFontSize": "Font Size",
|
||||||
"Common.Views.SignSettingsDialog.textAllowComment": "Allow signer to add comment in the signature dialog",
|
"Common.Views.SignSettingsDialog.textAllowComment": "Allow signer to add comment in the signature dialog",
|
||||||
"Common.Views.SignSettingsDialog.textInfo": "Signer Info",
|
"del_Common.Views.SignSettingsDialog.textInfo": "Signer Info",
|
||||||
"Common.Views.SignSettingsDialog.textInfoEmail": "E-mail",
|
"Common.Views.SignSettingsDialog.textInfoEmail": "Suggested signer's e-mail",
|
||||||
"Common.Views.SignSettingsDialog.textInfoName": "Name",
|
"Common.Views.SignSettingsDialog.textInfoName": "Suggested signer",
|
||||||
"Common.Views.SignSettingsDialog.textInfoTitle": "Signer Title",
|
"Common.Views.SignSettingsDialog.textInfoTitle": "Suggested signer's title",
|
||||||
"Common.Views.SignSettingsDialog.textInstructions": "Instructions for Signer",
|
"Common.Views.SignSettingsDialog.textInstructions": "Instructions for signer",
|
||||||
"Common.Views.SignSettingsDialog.textShowDate": "Show sign date in signature line",
|
"Common.Views.SignSettingsDialog.textShowDate": "Show sign date in signature line",
|
||||||
"Common.Views.SignSettingsDialog.textTitle": "Signature Setup",
|
"Common.Views.SignSettingsDialog.textTitle": "Signature Setup",
|
||||||
"Common.Views.SignSettingsDialog.txtEmpty": "This field is required",
|
"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.textCharacter": "Character",
|
||||||
"Common.Views.SymbolTableDialog.textCode": "Unicode HEX value",
|
"Common.Views.SymbolTableDialog.textCode": "Unicode HEX value",
|
||||||
"Common.Views.SymbolTableDialog.textCopyright": "Copyright Sign",
|
"Common.Views.SymbolTableDialog.textCopyright": "Copyright Sign",
|
||||||
|
|
|
@ -579,14 +579,15 @@
|
||||||
"Common.Views.SignDialog.tipFontName": "Font Name",
|
"Common.Views.SignDialog.tipFontName": "Font Name",
|
||||||
"Common.Views.SignDialog.tipFontSize": "Font Size",
|
"Common.Views.SignDialog.tipFontSize": "Font Size",
|
||||||
"Common.Views.SignSettingsDialog.textAllowComment": "Allow signer to add comment in the signature dialog",
|
"Common.Views.SignSettingsDialog.textAllowComment": "Allow signer to add comment in the signature dialog",
|
||||||
"Common.Views.SignSettingsDialog.textInfo": "Signer Info",
|
"del_Common.Views.SignSettingsDialog.textInfo": "Signer Info",
|
||||||
"Common.Views.SignSettingsDialog.textInfoEmail": "E-mail",
|
"Common.Views.SignSettingsDialog.textInfoEmail": "Suggested signer's e-mail",
|
||||||
"Common.Views.SignSettingsDialog.textInfoName": "Name",
|
"Common.Views.SignSettingsDialog.textInfoName": "Suggested signer",
|
||||||
"Common.Views.SignSettingsDialog.textInfoTitle": "Signer Title",
|
"Common.Views.SignSettingsDialog.textInfoTitle": "Suggested signer's title",
|
||||||
"Common.Views.SignSettingsDialog.textInstructions": "Instructions for Signer",
|
"Common.Views.SignSettingsDialog.textInstructions": "Instructions for signer",
|
||||||
"Common.Views.SignSettingsDialog.textShowDate": "Show sign date in signature line",
|
"Common.Views.SignSettingsDialog.textShowDate": "Show sign date in signature line",
|
||||||
"Common.Views.SignSettingsDialog.textTitle": "Signature Setup",
|
"Common.Views.SignSettingsDialog.textTitle": "Signature Setup",
|
||||||
"Common.Views.SignSettingsDialog.txtEmpty": "This field is required",
|
"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.textCharacter": "Character",
|
||||||
"Common.Views.SymbolTableDialog.textCode": "Unicode HEX value",
|
"Common.Views.SymbolTableDialog.textCode": "Unicode HEX value",
|
||||||
"Common.Views.SymbolTableDialog.textCopyright": "Copyright Sign",
|
"Common.Views.SymbolTableDialog.textCopyright": "Copyright Sign",
|
||||||
|
|
|
@ -442,14 +442,15 @@
|
||||||
"Common.Views.SignDialog.tipFontName": "Font Name",
|
"Common.Views.SignDialog.tipFontName": "Font Name",
|
||||||
"Common.Views.SignDialog.tipFontSize": "Font Size",
|
"Common.Views.SignDialog.tipFontSize": "Font Size",
|
||||||
"Common.Views.SignSettingsDialog.textAllowComment": "Allow signer to add comment in the signature dialog",
|
"Common.Views.SignSettingsDialog.textAllowComment": "Allow signer to add comment in the signature dialog",
|
||||||
"Common.Views.SignSettingsDialog.textInfo": "Signer Info",
|
"del_Common.Views.SignSettingsDialog.textInfo": "Signer Info",
|
||||||
"Common.Views.SignSettingsDialog.textInfoEmail": "E-mail",
|
"Common.Views.SignSettingsDialog.textInfoEmail": "Suggested signer's e-mail",
|
||||||
"Common.Views.SignSettingsDialog.textInfoName": "Name",
|
"Common.Views.SignSettingsDialog.textInfoName": "Suggested signer",
|
||||||
"Common.Views.SignSettingsDialog.textInfoTitle": "Signer Title",
|
"Common.Views.SignSettingsDialog.textInfoTitle": "Suggested signer's title",
|
||||||
"Common.Views.SignSettingsDialog.textInstructions": "Instructions for Signer",
|
"Common.Views.SignSettingsDialog.textInstructions": "Instructions for signer",
|
||||||
"Common.Views.SignSettingsDialog.textShowDate": "Show sign date in signature line",
|
"Common.Views.SignSettingsDialog.textShowDate": "Show sign date in signature line",
|
||||||
"Common.Views.SignSettingsDialog.textTitle": "Signature Setup",
|
"Common.Views.SignSettingsDialog.textTitle": "Signature Setup",
|
||||||
"Common.Views.SignSettingsDialog.txtEmpty": "This field is required",
|
"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.textCharacter": "Character",
|
||||||
"Common.Views.SymbolTableDialog.textCode": "Unicode HEX value",
|
"Common.Views.SymbolTableDialog.textCode": "Unicode HEX value",
|
||||||
"Common.Views.SymbolTableDialog.textCopyright": "Copyright Sign",
|
"Common.Views.SymbolTableDialog.textCopyright": "Copyright Sign",
|
||||||
|
|
Loading…
Reference in a new issue