text usage
This commit is contained in:
@@ -206,7 +206,7 @@ define('crm:views/record/panels/activities',
|
||||
|
||||
let o = {
|
||||
action: 'createActivity',
|
||||
html: this.translate(label, 'labels', scope),
|
||||
text: this.translate(label, 'labels', scope),
|
||||
data: {},
|
||||
acl: 'create',
|
||||
aclScope: scope,
|
||||
@@ -278,9 +278,15 @@ define('crm:views/record/panels/activities',
|
||||
|
||||
let o = {
|
||||
action: 'viewRelatedList',
|
||||
html: this.translate('View List') + ' · ' + this.translate(scope, 'scopeNamesPlural') + '',
|
||||
html: $('<span>')
|
||||
.append(
|
||||
$('<span>').text(this.translate('View List')),
|
||||
' · ',
|
||||
$('<span>').text(this.translate(scope, 'scopeNamesPlural')),
|
||||
)
|
||||
.get(0).innerHTML,
|
||||
data: {
|
||||
scope: scope
|
||||
scope: scope,
|
||||
},
|
||||
acl: 'read',
|
||||
aclScope: scope,
|
||||
|
||||
@@ -26,7 +26,7 @@
|
||||
* these Appropriate Legal Notices must retain the display of the "EspoCRM" word.
|
||||
************************************************************************/
|
||||
|
||||
define('crm:views/record/row-actions/activities', 'views/record/row-actions/relationship', function (Dep) {
|
||||
define('crm:views/record/row-actions/activities', ['views/record/row-actions/relationship'], function (Dep) {
|
||||
|
||||
return Dep.extend({
|
||||
|
||||
@@ -35,9 +35,9 @@ define('crm:views/record/row-actions/activities', 'views/record/row-actions/rela
|
||||
action: 'quickView',
|
||||
label: 'View',
|
||||
data: {
|
||||
id: this.model.id
|
||||
id: this.model.id,
|
||||
},
|
||||
link: '#' + this.model.name + '/view/' + this.model.id
|
||||
link: '#' + this.model.name + '/view/' + this.model.id,
|
||||
}];
|
||||
|
||||
if (this.options.acl.edit) {
|
||||
@@ -45,26 +45,26 @@ define('crm:views/record/row-actions/activities', 'views/record/row-actions/rela
|
||||
action: 'quickEdit',
|
||||
label: 'Edit',
|
||||
data: {
|
||||
id: this.model.id
|
||||
id: this.model.id,
|
||||
},
|
||||
link: '#' + this.model.name + '/edit/' + this.model.id
|
||||
link: '#' + this.model.name + '/edit/' + this.model.id,
|
||||
});
|
||||
|
||||
if (this.model.name == 'Meeting' || this.model.name == 'Call') {
|
||||
if (this.model.entityType === 'Meeting' || this.model.entityType === 'Call') {
|
||||
list.push({
|
||||
action: 'setHeld',
|
||||
html: this.translate('Set Held', 'labels', 'Meeting'),
|
||||
text: this.translate('Set Held', 'labels', 'Meeting'),
|
||||
data: {
|
||||
id: this.model.id
|
||||
}
|
||||
id: this.model.id,
|
||||
},
|
||||
});
|
||||
|
||||
list.push({
|
||||
action: 'setNotHeld',
|
||||
html: this.translate('Set Not Held', 'labels', 'Meeting'),
|
||||
text: this.translate('Set Not Held', 'labels', 'Meeting'),
|
||||
data: {
|
||||
id: this.model.id
|
||||
}
|
||||
id: this.model.id,
|
||||
},
|
||||
});
|
||||
}
|
||||
}
|
||||
@@ -74,13 +74,12 @@ define('crm:views/record/row-actions/activities', 'views/record/row-actions/rela
|
||||
action: 'removeRelated',
|
||||
label: 'Remove',
|
||||
data: {
|
||||
id: this.model.id
|
||||
id: this.model.id,
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
return list;
|
||||
},
|
||||
|
||||
});
|
||||
});
|
||||
|
||||
@@ -40,10 +40,10 @@ define('crm:views/record/row-actions/history', 'views/record/row-actions/relatio
|
||||
link: '#' + this.model.name + '/view/' + this.model.id
|
||||
}];
|
||||
|
||||
if (this.model.name == 'Email') {
|
||||
if (this.model.entityType === 'Email') {
|
||||
list.push({
|
||||
action: 'reply',
|
||||
html: this.translate('Reply', 'labels', 'Email'),
|
||||
text: this.translate('Reply', 'labels', 'Email'),
|
||||
data: {
|
||||
id: this.model.id
|
||||
}
|
||||
|
||||
@@ -26,7 +26,7 @@
|
||||
* these Appropriate Legal Notices must retain the display of the "EspoCRM" word.
|
||||
************************************************************************/
|
||||
|
||||
define('crm:views/record/row-actions/relationship-target', 'views/record/row-actions/relationship-unlink-only', function (Dep) {
|
||||
define('crm:views/record/row-actions/relationship-target', ['views/record/row-actions/relationship-unlink-only'], function (Dep) {
|
||||
|
||||
return Dep.extend({
|
||||
|
||||
@@ -37,7 +37,7 @@ define('crm:views/record/row-actions/relationship-target', 'views/record/row-act
|
||||
if (this.model.get('isOptedOut')) {
|
||||
list.push({
|
||||
action: 'cancelOptOut',
|
||||
html: this.translate('Cancel Opt-Out', 'labels', 'TargetList'),
|
||||
text: this.translate('Cancel Opt-Out', 'labels', 'TargetList'),
|
||||
data: {
|
||||
id: this.model.id
|
||||
}
|
||||
@@ -45,7 +45,7 @@ define('crm:views/record/row-actions/relationship-target', 'views/record/row-act
|
||||
} else {
|
||||
list.push({
|
||||
action: 'optOut',
|
||||
html: this.translate('Opt-Out', 'labels', 'TargetList'),
|
||||
text: this.translate('Opt-Out', 'labels', 'TargetList'),
|
||||
data: {
|
||||
id: this.model.id
|
||||
}
|
||||
@@ -55,6 +55,5 @@ define('crm:views/record/row-actions/relationship-target', 'views/record/row-act
|
||||
|
||||
return list;
|
||||
},
|
||||
|
||||
});
|
||||
});
|
||||
|
||||
@@ -26,7 +26,7 @@
|
||||
* these Appropriate Legal Notices must retain the display of the "EspoCRM" word.
|
||||
************************************************************************/
|
||||
|
||||
define('crm:views/record/row-actions/tasks', 'views/record/row-actions/relationship-no-unlink', function (Dep) {
|
||||
define('crm:views/record/row-actions/tasks', ['views/record/row-actions/relationship-no-unlink'], function (Dep) {
|
||||
|
||||
return Dep.extend({
|
||||
|
||||
@@ -53,7 +53,7 @@ define('crm:views/record/row-actions/tasks', 'views/record/row-actions/relations
|
||||
if (!~['Completed', 'Canceled'].indexOf(this.model.get('status'))) {
|
||||
list.push({
|
||||
action: 'Complete',
|
||||
html: this.translate('Complete', 'labels', 'Task'),
|
||||
text: this.translate('Complete', 'labels', 'Task'),
|
||||
data: {
|
||||
id: this.model.id
|
||||
}
|
||||
@@ -73,6 +73,5 @@ define('crm:views/record/row-actions/tasks', 'views/record/row-actions/relations
|
||||
|
||||
return list;
|
||||
},
|
||||
|
||||
});
|
||||
});
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
{{#each data}}
|
||||
data-{{@key}}="{{./this}}"
|
||||
{{/each}}
|
||||
>{{#if html}}{{{html}}}{{else}}{{translate label scope=../scope}}{{/if}}
|
||||
>{{#if html}}{{{html}}}{{else}}{{#if text}}{{text}}{{else}}{{translate label scope=../scope}}{{/if}}{{/if}}
|
||||
</a>
|
||||
</li>
|
||||
{{/each}}
|
||||
|
||||
Reference in New Issue
Block a user