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:
Emanuel Schütze 2018-04-10 15:09:38 +02:00
parent 9e2c6a14fa
commit 04843294ac
2 changed files with 24 additions and 24 deletions

View File

@ -83,8 +83,8 @@
<i class="fa fa-sort-numeric-asc"></i> <i class="fa fa-sort-numeric-asc"></i>
<translate>Numbering</translate> <translate>Numbering</translate>
</button> </button>
<!-- pdf --> <!-- Export drop down list (for manager) -->
<div class="pull-right" uib-dropdown> <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> <button type="button" class="btn btn-default btn-sm" id="dropdownExport" uib-dropdown-toggle>
<i class="fa fa-upload"></i> <i class="fa fa-upload"></i>
<span ng-if="itemsFiltered.length == items.length" translate> <span ng-if="itemsFiltered.length == items.length" translate>
@ -111,6 +111,7 @@
CSV CSV
</a> </a>
</li> </li>
<!-- DOCX export -->
<li> <li>
<a href="" ng-click="docxExport()"> <a href="" ng-click="docxExport()">
<i class="fa fa-file-word-o"></i> <i class="fa fa-file-word-o"></i>
@ -119,6 +120,17 @@
</li> </li>
</ul> </ul>
</div> </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> </div>
<div uib-collapse="!isSelectMode" class="row spacer"> <div uib-collapse="!isSelectMode" class="row spacer">

View File

@ -24,28 +24,16 @@
<i class="fa fa-check-square-o"></i> <i class="fa fa-check-square-o"></i>
<translate>Select ...</translate> <translate>Select ...</translate>
</button> </button>
<!-- export dropdown --> <!-- export button -->
<div class="dropdown pull-right" uib-dropdown> <button type="button" class="btn btn-default btn-sm pull-right" ng-click="pdfExport()">
<button type="button" class="btn btn-default btn-sm" id="dropdownExport" uib-dropdown-toggle> <i class="fa fa-file-pdf-o"></i>
<i class="fa fa-upload"></i> <span ng-if="assignmentsFiltered.length == assignments.length" translate>
<span ng-if="assignmentsFiltered.length == assignments.length" translate> Export all
Export all </span>
</span> <span ng-if="assignmentsFiltered.length != assignments.length" translate>
<span ng-if="assignmentsFiltered.length != assignments.length" translate> Export filtered
Export filtered </span>
</span> </button>
<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>
</div> </div>
</div> </div>
<div uib-collapse="!isFilterOpen" class="row"> <div uib-collapse="!isFilterOpen" class="row">