You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
RTL/src/app/cln/transactions/offers/create-offer-modal/create-offer.component.html

35 lines
2.0 KiB
HTML

<div fxLayout="row">
<div fxFlex="100">
<mat-card-header fxLayout="row" fxLayoutAlign="space-between center" class="modal-info-header">
<div fxFlex="95" fxLayoutAlign="start start">
<span class="page-title">Create Offer</span>
</div>
<button tabindex="6" fxFlex="5" fxLayoutAlign="center" class="btn-close-x p-0" default mat-button [mat-dialog-close]="false">X</button>
</mat-card-header>
<mat-card-content class="padding-gap-x-large">
<form #addOfferForm="ngForm" fxLayout="row wrap" fxLayoutAlign="start space-between" fxFlex="100">
<mat-form-field fxFlex="100" fxLayoutAlign="start end">
<input matInput autoFocus placeholder="Description" tabindex="1" name="description" [(ngModel)]="description">
</mat-form-field>
<div fxLayout="row" fxLayoutAlign="space-between start" fxFlex="100">
<mat-form-field fxFlex="40">
<input matInput placeholder="Amount" type="number" tabindex="2" name="offerValue" [step]="100" [min]="1" [(ngModel)]="offerValue" (keyup)="onOfferValueChange()">
<span matSuffix> Sats </span>
<mat-hint>{{offerValueHint}}</mat-hint>
</mat-form-field>
<mat-form-field fxFlex="58" fxLayoutAlign="start end">
<input matInput placeholder="Vendor" tabindex="3" name="vendor" [(ngModel)]="vendor">
</mat-form-field>
</div>
<div *ngIf="offerError !== ''" fxFlex="100" class="alert alert-danger mt-1">
<fa-icon class="mr-1 alert-icon" [icon]="faExclamationTriangle"></fa-icon>
<span *ngIf="offerError !== ''">{{offerError}}</span>
</div>
<div fxLayout="row" fxFlex="100" class="mt-1" fxLayoutAlign="end center">
<button class="mr-1" mat-button color="primary" tabindex="4" type="reset" (click)="resetData()">Clear Field</button>
<button mat-button color="primary" tabindex="5" (click)="onAddOffer()">Create Offer</button>
</div>
</form>
</mat-card-content>
</div>
</div>