Common creating component
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2022-12-13 18:21:56 +05:00
parent 2b26ea87b6
commit b857c1b573
21 changed files with 138 additions and 209 deletions

View File

@@ -0,0 +1,14 @@
<h3 *ngIf="!showForm" (click)="showForm = !showForm">Открыть новую форму постинга</h3>
<h3 *ngIf="showForm" (click)="showForm = !showForm" style="align-content: center">Скрыть новую форму постинга</h3>
<div *ngIf="showForm" class="posting_form">
<h4>Создай то, о чем будут говорить многие в /{{board}}/.</h4>
<br>
<textarea type="text" rows="8" cols="45" placeholder="Печатать сюда" #textForm></textarea>
<p>
<button (click)="create(textForm.value) ; textForm.value=''" >Отправить</button>
</p>
<h1>Загрузить картинку:</h1>
<input type="file" #file placeholder="Загрузить картинку" (change)="sendPic($event)" style="display:none;">
<button type="button" class="btn btn-success" (click)="file.click()">Загрузить картинку</button>
<div *ngFor="let singlePic of inputImages" >Картинка: {{singlePic}}</div>
</div>