34 lines
1.1 KiB
HTML
34 lines
1.1 KiB
HTML
<div class="translate-texts">
|
|
|
|
<div class="columns">
|
|
<div class="column">
|
|
|
|
<div id="fromText">
|
|
|
|
<!-- delete button from_text-->
|
|
@if (fromText.length > 0) {
|
|
<button (click)="emptyText('fromText')" class="delete-button button">x</button>
|
|
}
|
|
<textarea [(ngModel)]="fromText" cols="30" id="from_text" name="from_text"
|
|
placeholder=""
|
|
rows="10"></textarea>
|
|
<button (click)="clickFileUpload(fileUpload)" class=" click-file-upload is-outlined">
|
|
<i class="ri-upload-cloud-2-line"></i>
|
|
<span class="label">
|
|
Upload .csv file
|
|
</span>
|
|
</button>
|
|
<input #fileUpload (change)="onFileSelected($event)" class="is-outlined" id="fileUploadTranslator" type="file">
|
|
</div>
|
|
</div>
|
|
<div class="column">
|
|
|
|
<div id="toText">
|
|
@if (toText.length > 0) {
|
|
<button (click)="emptyText('toText')" class="delete-button button">x</button>
|
|
}
|
|
<textarea [(ngModel)]="toText" cols="30" id="to_text" name="to_text" rows="10"></textarea>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|