|
|
|
@ -9,7 +9,7 @@ |
|
|
|
|
<button class="button_highlight" |
|
|
|
|
with-dropdown |
|
|
|
|
dropdown-id="tasksDropdown" |
|
|
|
|
ng-disabled="disableNewWorkPackage"> |
|
|
|
|
ng-disabled="AuthorisationService.cannot('work_package', 'create')"> |
|
|
|
|
<i class="icon-add icon4"></i> |
|
|
|
|
{{ I18n.t('js.toolbar.unselected_title') }} |
|
|
|
|
<i class="icon-pulldown-arrow1 icon-dropdown"></i> |
|
|
|
@ -64,22 +64,22 @@ |
|
|
|
|
<li><a href ng-click="toggleDisplaySums()"><i ng-if="query.displaySums" class="icon-action-menu icon-yes"></i><i ng-if="!query.displaySums" class="icon-action-menu no-icon"></i>{{ I18n.t('js.toolbar.settings.display_sums') }}</a></li> |
|
|
|
|
<li class="dropdown-divider"></li> |
|
|
|
|
<li><a href ng-click="saveQuery($event)" |
|
|
|
|
ng-class="{'inactive': (!query.isNew() && cannot(query, 'update')) || (query.isNew() && cannot(query, 'create'))}"> |
|
|
|
|
ng-class="{'inactive': (!query.isNew() && cannot('query', 'update')) || (query.isNew() && cannot('query', 'create'))}"> |
|
|
|
|
<i class="icon-action-menu icon-save1"></i>{{ I18n.t('js.toolbar.settings.save') }}</a> |
|
|
|
|
</li> |
|
|
|
|
<li><a href ng-click="showSaveAsModal($event)" ng-class="{'inactive': query.isNew() || cannot(query, 'create')}"> |
|
|
|
|
<li><a href ng-click="showSaveAsModal($event)" ng-class="{'inactive': query.isNew() || cannot('query', 'create')}"> |
|
|
|
|
<i class="icon-action-menu icon-save1"></i>{{ I18n.t('js.toolbar.settings.save_as') }}</a> |
|
|
|
|
</li> |
|
|
|
|
<li><a href ng-click="deleteQuery($event)" ng-class="{'inactive': query.isNew() || cannot(query, 'delete')}"> |
|
|
|
|
<li><a href ng-click="deleteQuery($event)" ng-class="{'inactive': query.isNew() || cannot('query', 'delete')}"> |
|
|
|
|
<i class="icon-action-menu icon-delete"></i>{{ I18n.t('js.toolbar.settings.delete') }}</a> |
|
|
|
|
</li> |
|
|
|
|
<li><a href ng-click="showExportModal()"> |
|
|
|
|
<li><a href ng-click="showExportModal()" ng-class="{'incative': cannot('work_package', 'export')}"> |
|
|
|
|
<i class="icon-action-menu icon-export"></i>{{ I18n.t('js.toolbar.settings.export') }}</a> |
|
|
|
|
</li> |
|
|
|
|
<li><a href ng-click="showShareModal($event)" ng-class="{'inactive': query.isNew()}"> |
|
|
|
|
<i class="icon-action-menu icon-publish"></i>{{ I18n.t('js.toolbar.settings.share') }}</a> |
|
|
|
|
</li> |
|
|
|
|
<li><a href ng-click="showSettingsModal($event)" ng-class="{'inactive': query.isNew() || cannot(query, 'update')}"> |
|
|
|
|
<li><a href ng-click="showSettingsModal($event)" ng-class="{'inactive': query.isNew() || cannot('query', 'update')}"> |
|
|
|
|
<i class="icon-action-menu icon-settings"></i>{{ I18n.t('js.toolbar.settings.page_settings') }}</a> |
|
|
|
|
</li> |
|
|
|
|
</ul> |
|
|
|
|