Add more menu

pull/1782/head
Hagen Schink 10 years ago
parent 14d0d30858
commit 02cb03f17e
  1. 1
      app/assets/javascripts/angular/work_packages/controllers/work-package-details-controller.js
  2. 35
      public/templates/work_packages.list.details.html

@ -78,6 +78,7 @@ angular.module('openproject.workPackages.controllers')
setWorkPackageScopeProperties(workPackage);
$scope.I18n = I18n;
$scope.PathHelper = PathHelper;
$scope.$parent.preselectedWorkPackageId = $scope.workPackage.props.id;
$scope.maxDescriptionLength = 800;

@ -48,4 +48,39 @@
<div class="work-packages--details-toolbar">
<button class="button" ng-click="editWorkPackage()"><i class="icon-left icon-edit"></i>{{ I18n.t('js.button_edit') }}</button>
<button class="button"
with-dropdown
dropdown-id="moreDropdown">
{{ I18n.t('js.button_more') }}
<i class="icon-pulldown-arrow3 icon-edit"></i>
</button>
<div>
<div class="dropdown dropdown-relative dropdown-anchor-right dropdown-up" id="moreDropdown">
<ul class="dropdown-menu">
<li>
<a href="{{ PathHelper.timeEntryNewPath(workPackage.props.id) }}">
<i class="icon-time"></i>
Log time
</a>
</li>
<li>
<a href="{{ PathHelper.workPackageDuplicatePath(workPackage.props.projectId, workPackage.props.id) }}">
<i class="icon-duplicate"></i>
Duplicate
</a>
</li>
<li>
<a href="{{ PathHelper.workPackageMovePath(workPackage.props.id) }}">
<i class="icon-move"></i>
Move
</a>
</li>
<li>
<a href ng-click="">
<i class="icon-delete"></i>
Delete
</a>
</li>
</ul>
</div>

Loading…
Cancel
Save