Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 | 3x | @if (quote$ | async; as quote) {
@if (state$ | async; as state) {
@if (quote.items?.length) {
<div class="clearfix">
@if (state === 'New') {
<button
class="btn btn-primary float-end"
data-testing-id="submit-quote-request"
type="submit"
(click)="submit()"
>
{{ 'quote.edit.button.submit.label' | translate }}
</button>
}
@if (state === 'Responded' && (isQuoteValid$ | async)) {
<button class="btn btn-primary float-end" name="add2cart" type="submit" (click)="addToBasket()">
{{ 'quote.edit.button.add_quote_to_cart.label' | translate }}
</button>
}
@if (quote.type === 'Quote' || state === 'Submitted') {
<button
class="btn btn-secondary"
data-testing-id="copy-quote-request"
name="copy"
type="submit"
(click)="copy()"
>
{{ 'quote.edit.button.create_new_from_quote.label' | translate }}
</button>
}
@if (state === 'Responded') {
<button class="btn btn-secondary float-end" id="button-reject" name="refuse" type="submit" (click)="reject()">
{{ 'quote.edit.reject.button.reject.label' | translate }}
</button>
}
</div>
}
}
}
|