kanbanworkflowstimelinescrumrubyroadmapproject-planningproject-managementopenprojectangularissue-trackerifcgantt-chartganttbug-trackerboardsbcf
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.
42 lines
2.2 KiB
42 lines
2.2 KiB
8 years ago
|
<div class="relation-row" ng-mouseover="$ctrl.showRelationControls = true" ng-mouseleave="$ctrl.showRelationControls = false">
|
||
|
<div class="grid-block v-align hierarchy-item" ng-if="!$ctrl.showEditForm && $ctrl.relatedType !== 'parent' && $ctrl.relatedWorkPackage">
|
||
|
<div class="grid-content medium-6 collapse" wp-single-relation>
|
||
|
<span ng-style="{'padding-left': $ctrl.indentBy + 'px'}">
|
||
|
<a href="{{$singleRelation.workPackagePath($ctrl.relatedWorkPackage.id)}}">
|
||
|
{{$singleRelation.getFullIdentifier($ctrl.relatedWorkPackage)}}
|
||
|
</a>
|
||
|
</span>
|
||
|
</div>
|
||
|
<div class="grid-content medium-4 collapse wp-relations-status-field">
|
||
|
<div wp-edit-form="$ctrl.relatedWorkPackage" ng-if="$ctrl.relatedWorkPackage">
|
||
|
<div wp-edit-field="'status'">
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
<div class="grid-content medium-2 collapse wp-relations-controls-section">
|
||
|
<div ng-hide="!$ctrl.showRelationControls">
|
||
|
<accessible-by-keyboard ng-hide="$ctrl.relationType !== 'parent'"
|
||
|
execute="$ctrl.showEditForm = true">
|
||
|
<icon-wrapper icon-name="edit"
|
||
|
icon-title="{{::$ctrl.I18n.t('js.relation_buttons.change_parent')}}">
|
||
|
</icon-wrapper>
|
||
|
</accessible-by-keyboard>
|
||
|
|
||
|
<accessible-by-keyboard ng-hide="!$ctrl.relationType"
|
||
|
execute="$ctrl.removeRelation()">
|
||
|
<icon-wrapper icon-name="remove"
|
||
|
icon-title="{{::$ctrl.I18n.t('js.relation_buttons.remove')}}">
|
||
|
</icon-wrapper>
|
||
|
</accessible-by-keyboard>
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
|
||
|
<div ng-if="($ctrl.relationType === 'parent' && !$ctrl.relatedWorkPackage) || $ctrl.showEditForm">
|
||
|
<wp-relations-create template="empty-parents"
|
||
|
fixed-relation-type="parent"
|
||
|
external-form-toggle="$ctrl.showEditForm"
|
||
|
work-package="$ctrl.workPackage"></wp-relations-create>
|
||
|
</div>
|
||
|
</div>
|