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-relations/add-wp-relation/add-wp-relation.directive.html

31 lines
1.0 KiB

<form name="add_relation_form" class="form">
<div class="choice">
<div class="choice--select">
<ui-select
id="relation_to_id-{{ $ctrl.relationGroup.id }}"
name="relation[to_id][{{ $ctrl.relationGroup.id }}]"
ng-model="$ctrl.wpToAddId"
title="{{ text.uiSelectTitle }}"
required
theme="select2"
tabindex="0">
<ui-select-match tabindex="-1">{{$select.selected.to_s}}</ui-select-match>
<ui-select-choices
refresh-delay="250"
refresh="autocompleteWorkPackages($select.search)"
repeat="item.id as item in options">
<div ng-bind="item.to_s"></div>
</ui-select-choices>
</ui-select>
</div>
<div class="choice--button">
<button class="button"
title="{{ $ctrl.btnTitle }}"
ng-bind-html="$ctrl.btnIcon + ' ' + $ctrl.btnTitle"
ng-click="$ctrl.addRelation()"
ng-disabled="add_relation_form.$invalid">
</button>
</div>
</div>
</form>