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/wp-relations-create/empty-parents.template.html

50 lines
2.4 KiB

<div class="wp-relations-create">
<div class="wp-relations-create-button -full-width"
ng-if="!$ctrl.showRelationsCreateForm">
<div class="grid-block">
<div class="grid-content collapse wp-inline-create-button">
<a class="wp-inline-create--add-link relation-create -focus-after-save"
ng-click="$ctrl.toggleRelationsCreateForm()"
href
id="hierarchy--add-parent">
<i class="icon icon-add"></i>
<span>{{ ::$ctrl.text.addParent }}</span>
</a>
</div>
</div>
</div>
<div cg-busy="{promise: $ctrl.loadingPromise, wrapperClass: 'cg-busy-inline', message: ''}">
<div class="grid-block v-align wp-relations--parent-form"
ng-if="$ctrl.showRelationsCreateForm || $ctrl.externalFormToggle">
<div class="grid-content medium-10 collapse">
<wp-relations-autocomplete
work-package="$ctrl.workPackage"
loading-promise="$ctrl.loadingPromise"
selected-wp-id="$ctrl.selectedWpId"
selected-relation-type="$ctrl.selectedRelationType"
filter-candidates-for="parent"
focus>
</wp-relations-autocomplete>
</div>
<div class="grid-content medium-2 collapse wp-relations-controls-section relation-row">
<accessible-by-keyboard
link-class="wp-create-relation--save"
execute="$ctrl.createRelation()"
class="wp-relations--save"
aria-hidden="false">
<icon-wrapper icon-name="checkmark"
icon-title="{{ ::$ctrl.text.save }}">
</icon-wrapper>
</accessible-by-keyboard>
<accessible-by-keyboard
link-class="wp-create-relation--cancel"
execute="$ctrl.toggleRelationsCreateForm()"
aria-hidden="false">
<icon-wrapper icon-name="remove"
icon-title="{{ ::$ctrl.text.abort }}">
</icon-wrapper>
</accessible-by-keyboard>
</div>
</div>
</div>
</div>