Common creating component
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
14
src/app/pages/send-form/send-form.component.html
Normal file
14
src/app/pages/send-form/send-form.component.html
Normal 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>
|
Reference in New Issue
Block a user