tooltips
This commit is contained in:
@@ -19,6 +19,14 @@
|
||||
"replyToAddress": "Reply To Address",
|
||||
"replyFromName": "Reply From Name"
|
||||
},
|
||||
"tooltipls": {
|
||||
"reply": "Notify email senders that their emails has been received.",
|
||||
"createCase": "Automatically create case from incoming emails",
|
||||
"replyToAddress": "Specify email address of this mailbox to make response come here.",
|
||||
"caseDistribution": "How cases will be assigned to. Assigned directly to the user or among the team.",
|
||||
"assignToUser": "User emails/cases will be assigned to",
|
||||
"team": "Team emails/cases will be related to"
|
||||
},
|
||||
"links": {
|
||||
},
|
||||
"options": {
|
||||
|
||||
@@ -28,7 +28,7 @@
|
||||
"fields": ["replyEmailTemplate", "replyFromAddress", "replyFromName", "replyToAddress"]
|
||||
}, {
|
||||
"action": "setRequired",
|
||||
"fields": ["replyToAddress", "replyEmailTemplate"]
|
||||
"fields": ["replyEmailTemplate"]
|
||||
}
|
||||
]
|
||||
},
|
||||
@@ -38,7 +38,7 @@
|
||||
"fields": ["replyEmailTemplate", "replyFromAddress", "replyFromName", "replyToAddress"]
|
||||
}, {
|
||||
"action": "setNotRequired",
|
||||
"fields": ["replyToAddress", "replyEmailTemplate"]
|
||||
"fields": ["replyEmailTemplate"]
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
@@ -39,21 +39,26 @@
|
||||
"view": "Crm:InboundEmail.Fields.Folder"
|
||||
},
|
||||
"assignToUser": {
|
||||
"type": "link"
|
||||
"type": "link",
|
||||
"tooltip": true
|
||||
},
|
||||
"team": {
|
||||
"type": "link"
|
||||
"type": "link",
|
||||
"tooltip": true
|
||||
},
|
||||
"createCase": {
|
||||
"type": "bool"
|
||||
"type": "bool",
|
||||
"tooltip": true
|
||||
},
|
||||
"caseDistribution": {
|
||||
"type": "enum",
|
||||
"options": ["Direct-Assignment", "Round-Robin", "Least-Busy"],
|
||||
"default": "Direct-Assignment"
|
||||
"default": "Direct-Assignment",
|
||||
"tooltip": true
|
||||
},
|
||||
"reply": {
|
||||
"type": "bool"
|
||||
"type": "bool",
|
||||
"tooltip": true
|
||||
},
|
||||
"replyEmailTemplate": {
|
||||
"type": "link"
|
||||
@@ -62,7 +67,8 @@
|
||||
"type": "varchar"
|
||||
},
|
||||
"replyToAddress": {
|
||||
"type": "varchar"
|
||||
"type": "varchar",
|
||||
"tooltip": true
|
||||
},
|
||||
"replyFromName": {
|
||||
"type": "varchar"
|
||||
|
||||
@@ -6,6 +6,9 @@
|
||||
"links": {
|
||||
"users": "Users"
|
||||
},
|
||||
"tooltipls": {
|
||||
"roles": "All users from this team will get access settings from selected roles."
|
||||
},
|
||||
"labels": {
|
||||
"Create Team": "Create Team"
|
||||
}
|
||||
|
||||
@@ -23,6 +23,9 @@
|
||||
"Preferences": "Preferences",
|
||||
"Change Password": "Change Password"
|
||||
},
|
||||
"tooltipls": {
|
||||
"defaultTeam": "All records created by this user will be related to this team by default."
|
||||
},
|
||||
"messages": {
|
||||
"passwordWillBeSent": "Password will be sent to user's email address.",
|
||||
"accountInfoEmailSubject": "Account info",
|
||||
|
||||
@@ -1 +1 @@
|
||||
["users", "teams"]
|
||||
[]
|
||||
|
||||
@@ -5,7 +5,8 @@
|
||||
"maxLength": 100
|
||||
},
|
||||
"roles": {
|
||||
"type": "linkMultiple"
|
||||
"type": "linkMultiple",
|
||||
"tooltip": true
|
||||
}
|
||||
},
|
||||
"links": {
|
||||
|
||||
@@ -49,7 +49,8 @@
|
||||
"notStorable": true
|
||||
},
|
||||
"defaultTeam": {
|
||||
"type": "link"
|
||||
"type": "link",
|
||||
"tooltip": true
|
||||
},
|
||||
"teams": {
|
||||
"type": "linkMultiple"
|
||||
|
||||
@@ -1,7 +1,9 @@
|
||||
<div class="row">
|
||||
{{#each fields}}
|
||||
<div class="cell cell-{{./this}} form-group col-sm-6 col-md-12">
|
||||
<label class="control-label label-{{./this}}">{{translate this scope=../model.name category='fields'}}</label>
|
||||
<label class="control-label label-{{./this}}">
|
||||
{{translate this scope=../model.name category='fields'}}
|
||||
</label>
|
||||
<div class="field field-{{./this}}">
|
||||
{{{var this ../this}}}
|
||||
</div>
|
||||
|
||||
@@ -202,6 +202,23 @@ Espo.define('Views.Fields.Base', 'View', function (Dep) {
|
||||
this.getLabelElement().append(' *');
|
||||
}, this);
|
||||
}
|
||||
|
||||
if ((this.mode == 'detail' || this.mode == 'edit') && this.model.getFieldParam(this.name, 'tooltip')) {
|
||||
this.once('after:render', function () {
|
||||
var $a = $('<a href="javascript:"><span class="glyphicon glyphicon-info-sign"></span></a>');
|
||||
this.getLabelElement().append($a);
|
||||
$a.popover({
|
||||
placement: 'bottom',
|
||||
container: 'body',
|
||||
content: this.translate(this.name, 'tooltipls', this.model.name),
|
||||
trigger: 'click focus',
|
||||
}).on('shown.bs.popover', function () {
|
||||
$('body').one('click', function () {
|
||||
$a.popover('hide');
|
||||
});
|
||||
});
|
||||
}, this);
|
||||
}
|
||||
|
||||
if (this.mode == 'detail') {
|
||||
var self = this;
|
||||
|
||||
Reference in New Issue
Block a user