Use simple pdf export button for delegates.
Don't use drop down list with one entry only. Show agenda docx entry for managers only.
This commit is contained in:
parent
9e2c6a14fa
commit
04843294ac
@ -83,8 +83,8 @@
|
||||
<i class="fa fa-sort-numeric-asc"></i>
|
||||
<translate>Numbering</translate>
|
||||
</button>
|
||||
<!-- pdf -->
|
||||
<div class="pull-right" uib-dropdown>
|
||||
<!-- Export drop down list (for manager) -->
|
||||
<div os-perms="motions.can_manage" class="pull-right" uib-dropdown>
|
||||
<button type="button" class="btn btn-default btn-sm" id="dropdownExport" uib-dropdown-toggle>
|
||||
<i class="fa fa-upload"></i>
|
||||
<span ng-if="itemsFiltered.length == items.length" translate>
|
||||
@ -111,6 +111,7 @@
|
||||
CSV
|
||||
</a>
|
||||
</li>
|
||||
<!-- DOCX export -->
|
||||
<li>
|
||||
<a href="" ng-click="docxExport()">
|
||||
<i class="fa fa-file-word-o"></i>
|
||||
@ -119,6 +120,17 @@
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<!-- Export button (for normal users) -->
|
||||
<button type="button" class="btn btn-default btn-sm pull-right"
|
||||
os-perms="!motions.can_manage" ng-click="pdfExport()">
|
||||
<i class="fa fa-file-pdf-o"></i>
|
||||
<span ng-if="itemsFiltered.length == items.length" translate>
|
||||
Export all
|
||||
</span>
|
||||
<span ng-if="itemsFiltered.length != items.length" translate>
|
||||
Export filtered
|
||||
</span>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
<div uib-collapse="!isSelectMode" class="row spacer">
|
||||
|
@ -24,28 +24,16 @@
|
||||
<i class="fa fa-check-square-o"></i>
|
||||
<translate>Select ...</translate>
|
||||
</button>
|
||||
<!-- export dropdown -->
|
||||
<div class="dropdown pull-right" uib-dropdown>
|
||||
<button type="button" class="btn btn-default btn-sm" id="dropdownExport" uib-dropdown-toggle>
|
||||
<i class="fa fa-upload"></i>
|
||||
<span ng-if="assignmentsFiltered.length == assignments.length" translate>
|
||||
Export all
|
||||
</span>
|
||||
<span ng-if="assignmentsFiltered.length != assignments.length" translate>
|
||||
Export filtered
|
||||
</span>
|
||||
<span class="caret"></span>
|
||||
</button>
|
||||
<ul class="dropdown-menu dropdown-menu-right" aria-labelledby="dropdownExport">
|
||||
<!-- PDF export -->
|
||||
<li>
|
||||
<a href="" ng-click="pdfExport()">
|
||||
<i class="fa fa-file-pdf-o"></i>
|
||||
<translate>PDF</translate>
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<!-- export button -->
|
||||
<button type="button" class="btn btn-default btn-sm pull-right" ng-click="pdfExport()">
|
||||
<i class="fa fa-file-pdf-o"></i>
|
||||
<span ng-if="assignmentsFiltered.length == assignments.length" translate>
|
||||
Export all
|
||||
</span>
|
||||
<span ng-if="assignmentsFiltered.length != assignments.length" translate>
|
||||
Export filtered
|
||||
</span>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
<div uib-collapse="!isFilterOpen" class="row">
|
||||
|
Loading…
Reference in New Issue
Block a user