dashlet action url

This commit is contained in:
yuri
2016-08-04 12:52:37 +03:00
parent 5df26c324f
commit eb92e648a0
4 changed files with 9 additions and 5 deletions
@@ -86,14 +86,16 @@ Espo.define('crm:views/dashlets/activities', ['views/dashlets/abstract/base', 'm
this.actionList.unshift({
name: 'createCall',
html: this.translate('Create Call', 'labels', 'Call'),
iconHtml: '<span class="glyphicon glyphicon-plus"></span>'
iconHtml: '<span class="glyphicon glyphicon-plus"></span>',
url: '#Call/create'
});
}
if (this.getAcl().checkScope('Meeting', 'create')) {
this.actionList.unshift({
name: 'createMeeting',
html: this.translate('Create Meeting', 'labels', 'Meeting'),
iconHtml: '<span class="glyphicon glyphicon-plus"></span>'
iconHtml: '<span class="glyphicon glyphicon-plus"></span>',
url: '#Meeting/create'
});
}
},
+1 -1
View File
@@ -4,7 +4,7 @@
<button class="dropdown-toggle btn btn-link btn-sm menu-button" data-toggle="dropdown"><span class="caret"></span></button>
<ul class="dropdown-menu" role="menu">
{{#each actionList}}
<li><a data-action="{{name}}" class="action" href="javascript:">{{#if iconHtml}}{{{iconHtml}}} {{/if}}{{#if html}}{{{html}}}{{else}}{{translate label}}{{/if}}</a></li>
<li><a data-action="{{name}}" class="action" href="{{#if url}}{{url}}{{else}}javascript:{{/if}}">{{#if iconHtml}}{{{iconHtml}}} {{/if}}{{#if html}}{{{html}}}{{else}}{{translate label}}{{/if}}</a></li>
{{/each}}
</ul>
</div>
@@ -106,7 +106,8 @@ Espo.define('views/dashlets/abstract/record-list', ['views/dashlets/abstract/bas
this.actionList.unshift({
name: 'create',
html: this.translate('Create ' + this.scope, 'labels', this.scope),
iconHtml: '<span class="glyphicon glyphicon-plus"></span>'
iconHtml: '<span class="glyphicon glyphicon-plus"></span>',
url: '#'+this.scope+'/create'
});
}
},
+2 -1
View File
@@ -64,7 +64,8 @@ Espo.define('views/dashlets/stream', 'views/dashlets/abstract/base', function (D
this.actionList.unshift({
name: 'viewList',
html: this.translate('View List'),
iconHtml: '<span class="glyphicon glyphicon glyphicon-th-list"></span>'
iconHtml: '<span class="glyphicon glyphicon glyphicon-th-list"></span>',
url: '#Stream'
});
this.actionList.unshift({
name: 'create',