66 lines
4.0 KiB
HTML
66 lines
4.0 KiB
HTML
<div role="region" tabindex="0" aria-label="{{'ticket.region.documents' | i18n}}">
|
|
<div class="ticket__plans" ng-hide="editMode">
|
|
<div class="assignment__edit-button" ng-if="editModeAllowed && !isChild" ng-click="editPlans()"
|
|
ng-enter="editPlans()"
|
|
role="link" tabindex="0" aria-label="{{'common.aria.label.edit.document' | i18n}}">
|
|
<i class="icon icon-pencil icon-edit_sml"></i> {{'controls.action.edit' | i18n}}
|
|
</div>
|
|
<div class="ticket__label-big" ng-if="!changeRequest.plans || changeRequest.plans.length == 0" tabindex="0">
|
|
{{'change.details.noPlans.label' | i18n}}
|
|
</div>
|
|
<ul class="ticket__plans_list clearfix">
|
|
<li ng-repeat="plan in changeRequest.plans"
|
|
ng-click="showDocumentViewer(plan)"
|
|
ng-enter="showDocumentViewer(plan)" role="link" tabindex="0" class="relative-position clearfix">
|
|
<div class="ticket__plan_info">
|
|
<h4 class="ticket__plan_name nowrap-line">
|
|
{{ plan.workNote.documentType.label }}
|
|
</h4>
|
|
<span class="ticket__plan_counter" ng-if="plan.typeIndex">{{plan.typeIndex}}</span>
|
|
<p class="ticket__plan_file-type nowrap-line">
|
|
<span ng-if="plan.workNote.notes && plan.workNote.notes !== 'undefined' && plan.workNote.attachmentCount">{{'attachment.type.textDocument' | i18n}}</span>
|
|
<span ng-if="plan.workNote.notes && plan.workNote.notes !== 'undefined' && !plan.workNote.attachmentCount">{{'attachment.type.text' | i18n}}</span>
|
|
<span ng-if="( !plan.workNote.notes || plan.workNote.notes === 'undefined' ) && plan.workNote.attachmentCount">{{'attachment.type.document' | i18n}}</span>
|
|
</p>
|
|
</div>
|
|
|
|
<!--<div class="ticket__plan_thumbnail">
|
|
<!–
|
|
TODO: add the correct thumbnail here
|
|
<img src="http://placehold.it/30x30" alt="Thumbnail">
|
|
–>
|
|
</div>-->
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
|
|
<div class="ticket__plans-edit editable-content-section_edit-mode-active" ng-if="editMode">
|
|
<div loading-spinner if="state.processing" centered="true" overlay="true"></div>
|
|
<div class="ticket__plans-edit_control clearfix" role="region" aria-label="{{'common.region.action' | i18n}}">
|
|
<div ng-if = "!fromCopyChange" class="action-blade__button-container">
|
|
<button ng-if="!state.hideControlButtons" type="submit" class="btn_primary"
|
|
ng-disabled="!changeRequest.documents || (changeRequest.documents && changeRequest.documents.length < 1) || state.processing || documents.$invalid"
|
|
ng-click="updatePlans()"
|
|
ng-enter="updatePlans()"
|
|
role="link" tabindex="0">{{'common.button.save' | i18n}}
|
|
</button>
|
|
<button ng-if="showSave && state.hideControlButtons" type="submit" class="btn_primary"
|
|
ng-click="updatePlans()"
|
|
ng-enter="updatePlans()"
|
|
role="link" tabindex="0">{{'common.button.save' | i18n}}
|
|
</button>
|
|
<button type="button" class="btn_secondary" ng-disabled="state.processing" ng-click="cancelEdit()">
|
|
{{'common.button.cancel' | i18n}}
|
|
</button>
|
|
</div>
|
|
<div ng-if = "fromCopyChange" class="action-blade__button-container">
|
|
<button type="button" class="btn_secondary" ng-disabled="state.processing" ng-click="cancelEdit()">
|
|
{{'common.button.cancel' | i18n}}
|
|
</button>
|
|
</div>
|
|
</div>
|
|
<div>
|
|
<documents-tab edit-mode="true" context="changeRequest" doc-types="types"></documents-tab>
|
|
</div>
|
|
</div>
|
|
</div> |