OpenProject is the leading open source project management software.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
openproject/frontend/app/components/wp-buttons/wp-create-button/wp-create-button.directive....

29 lines
1.0 KiB

<div class="wp-create-button">
<button class="button -alt-highlight add-work-package"
ng-if="$ctrl.projectIdentifier"
has-dropdown-menu
target="TypesContextMenu"
ng-init="projectIdentifier = $ctrl.projectIdentifier; stateName = $ctrl.stateName"
locals="projectIdentifier, stateName"
ng-disabled="$ctrl.isDisabled()"
aria-label="{{ ::$ctrl.text.create }}">
<i class="button--icon icon-add"></i>
<span class="button--text"
ng-bind="::$ctrl.text.button"
aria-hidden="true"></span>
<i class="button--icon icon-pulldown"></i>
</button>
<button class="button -alt-highlight add-work-package"
ng-if="!$ctrl.projectIdentifier"
ng-disabled="$ctrl.isDisabled()"
aria-label="{{ ::$ctrl.text.create }}">
<i class="button--icon icon-add"></i>
<span class="button--text"
ng-bind="::$ctrl.text.button"
aria-hidden="true"></span>
<i class="button--icon icon-pulldown"></i>
</button>
</div>