All files / src/app/extensions/quoting/shared/quote-edit quote-edit.component.html

100% Statements 1/1
100% Branches 0/0
100% Functions 0/0
100% Lines 1/1

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 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 573x                                                                                                                
<ng-container *ngIf="quote$ | async as quote">
  <form [formGroup]="form" class="form-horizontal">
    <div class="row">
      <div class="col-4 col-md-3 col-xl-2 col-form-label">
        {{ 'quote.edit.unsubmitted.quote_no.label' | translate }}
      </div>
      <div class="col-8 col-md-9 col-xl-10">
        <p class="form-control-plaintext">{{ quote.number }}</p>
      </div>
    </div>
    <div class="row">
      <div class="col-4 col-md-3 col-xl-2 col-form-label">{{ 'quote.edit.unsubmitted.status.label' | translate }}</div>
      <div class="col-8 col-md-9 col-xl-10">
        <p class="form-control-plaintext"><ish-quote-state [quoteId]="quote.id" /></p>
      </div>
    </div>
 
    <div class="section">
      <!-- displayName -->
      <div class="row">
        <label for="quote-displayname" class="col-4 col-md-3 col-xl-2 col-form-label">{{
          'quote.edit.unsubmitted.name.label' | translate
        }}</label>
        <div class="col-8 col-md-9 col-xl-10">
          <ish-in-place-edit (edited)="update()" (aborted)="reset()">
            <p class="form-control-plaintext w-auto" [ngClass]="{ 'font-italic': !form.get('displayName').value }">
              {{ form.get('displayName').value || 'quote.edit.unsubmitted.enter_an_optional_name.text' | translate }}
            </p>
            <input type="text" formControlName="displayName" class="form-control" id="quote-displayname" />
          </ish-in-place-edit>
        </div>
      </div>
 
      <!-- Comment -->
      <div class="row">
        <label for="quote-description" class="col-4 col-md-3 col-xl-2 col-form-label">{{
          'quote.edit.unsubmitted.comment.label' | translate
        }}</label>
        <div class="col-8 col-md-9 col-xl-10">
          <ish-in-place-edit (edited)="update()" (aborted)="reset()">
            <p class="form-control-plaintext w-auto" [ngClass]="{ 'font-italic': !form.get('description').value }">
              {{ form.get('description').value || 'quote.edit.unsubmitted.provide_comment.text' | translate }}
            </p>
            <textarea formControlName="description" class="form-control" id="quote-description"> </textarea>
          </ish-in-place-edit>
        </div>
      </div>
    </div>
 
    <!-- Quote Item List -->
    <div class="section">
      <h3>{{ 'quote.items.table.heading' | translate }}</h3>
      <ish-quote-line-item-list *ngIf="quote.items" />
    </div>
  </form>
</ng-container>