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.
88 lines
4.6 KiB
88 lines
4.6 KiB
<div class="relation-row"
|
|
ng-class="['relation-row-{{ $ctrl.relatedWorkPackage.id }}']"
|
|
ng-mouseover="$ctrl.showRelationControls = true"
|
|
ng-mouseleave="$ctrl.showRelationControls = false">
|
|
<div class="grid-block hierarchy-item">
|
|
|
|
<div class="grid-content medium-3 collapse" aria-hidden="true">
|
|
<span class="relation-row--type"
|
|
ng-click="$ctrl.userInputs.showRelationTypesForm = true"
|
|
ng-if="!$ctrl.userInputs.showRelationTypesForm">
|
|
{{ $ctrl.normalizedRelationType }}
|
|
</span>
|
|
<div class="wp-edit-field inplace-edit" ng-if="$ctrl.userInputs.showRelationTypesForm">
|
|
<select class="wp-inline-edit--field form--select"
|
|
ng-model="$ctrl.selectedRelationType"
|
|
ng-options="relationType.name for relationType in $ctrl.availableRelationTypes"
|
|
ng-change="$ctrl.saveRelationType()"></select>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="grid-content medium-5 collapse" wp-single-relation
|
|
ng-if="$ctrl.relatedWorkPackage">
|
|
<a href="{{ singleRelationCtrl.workPackagePath($ctrl.relatedWorkPackage.id) }}"
|
|
class="wp-relations--subject-field"
|
|
aria-label="{{ $ctrl.normalizedRelationType + ' ' + singleRelationCtrl.getFullIdentifier($ctrl.relatedWorkPackage, true) }}">
|
|
{{ singleRelationCtrl.getFullIdentifier($ctrl.relatedWorkPackage, true) }}
|
|
</a>
|
|
</div>
|
|
|
|
<div class="grid-content medium-2 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">
|
|
<accessible-by-keyboard ng-show="$ctrl.showRelationControls"
|
|
execute="$ctrl.userInputs.showRelationInfo = !$ctrl.userInputs.showRelationInfo">
|
|
<icon-wrapper icon-name="info1"
|
|
icon-title="Info for related workpackage">
|
|
</icon-wrapper>
|
|
</accessible-by-keyboard>
|
|
<accessible-by-keyboard ng-show="$ctrl.showRelationControls"
|
|
ng-if="$ctrl.relation.delete"
|
|
execute="$ctrl.removeRelation($ctrl.relation)"
|
|
aria-hidden="false"
|
|
link-class="relation-row--remove-btn"
|
|
class="-shown-in-accessibility-mode">
|
|
<icon-wrapper icon-name="remove"
|
|
icon-title="{{ ::$ctrl.text.removeButton }}">
|
|
</icon-wrapper>
|
|
</accessible-by-keyboard>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="grid-block hierarchy-item description-container" ng-show="$ctrl.userInputs.showRelationInfo" ng-init="editDescription = false">
|
|
<div class="grid-content medium-10 collapse">
|
|
<div ng-hide="$ctrl.userInputs.showDescriptionEditForm">
|
|
{{$ctrl.relation.description || 'no description set'}}
|
|
</div>
|
|
<div ng-show="$ctrl.userInputs.showDescriptionEditForm">
|
|
<div class="wp-edit-field inplace-edit">
|
|
<input class="wp-inline-edit--field" type="text" ng-model="$ctrl.relation.description" />
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="grid-content medium-2 collapse wp-relations-controls-section" ng-hide="$ctrl.userInputs.showDescriptionEditForm">
|
|
<accessible-by-keyboard execute="$ctrl.userInputs.showDescriptionEditForm = true">
|
|
<icon-wrapper icon-name="edit"
|
|
icon-title="edit description">
|
|
</icon-wrapper>
|
|
</accessible-by-keyboard>
|
|
</div>
|
|
<div class="grid-content medium-2 collapse wp-relations-controls-section" ng-show="$ctrl.userInputs.showDescriptionEditForm">
|
|
<accessible-by-keyboard execute="$ctrl.saveDescription()">
|
|
<icon-wrapper icon-name="checkmark"
|
|
icon-title="save description'">
|
|
</icon-wrapper>
|
|
</accessible-by-keyboard>
|
|
<accessible-by-keyboard execute="$ctrl.userInputs.showDescriptionEditForm = false">
|
|
<icon-wrapper icon-name="remove"
|
|
icon-title="cancel editing'">
|
|
</icon-wrapper>
|
|
</accessible-by-keyboard>
|
|
</div>
|
|
|
|
</div>
|
|
</div>
|
|
|