2019-03-06 05:37:58 +01:00
|
|
|
<form class="status-form" (ngSubmit)="onSubmit()">
|
|
|
|
<div class="status-form__sending" *ngIf="isSending">
|
|
|
|
<app-waiting-animation class="waiting-icon status-form__sending--waiting"></app-waiting-animation>
|
|
|
|
</div>
|
|
|
|
|
2019-03-06 06:02:16 +01:00
|
|
|
<input [(ngModel)]="title" type="text" class="form-control form-control-sm" name="title" autocomplete="off" placeholder="Title, Content Warning (optional)" title="title, content warning (optional)"/>
|
2019-03-06 04:46:50 +01:00
|
|
|
|
2019-03-06 06:02:16 +01:00
|
|
|
<textarea #reply [(ngModel)]="status" name="status" class="form-control form-control-sm"
|
|
|
|
rows="5" required title="content"
|
2019-03-06 04:46:50 +01:00
|
|
|
placeholder="What's in your mind?" (keydown.control.enter)="onCtrlEnter()"></textarea>
|
|
|
|
|
|
|
|
<select class="form-control form-control-sm form-control--privacy" id="privacy" name="privacy"
|
|
|
|
[(ngModel)]="selectedPrivacy">
|
|
|
|
<option *ngFor="let p of privacyList" [ngValue]="p">{{p}}</option>
|
|
|
|
</select>
|
2019-03-07 01:02:29 +01:00
|
|
|
<div class="status-form__counter">
|
|
|
|
<span class="status-form__counter--count">5000</span> <span class="status-form__counter--posts">0/1</span>
|
|
|
|
</div>
|
2019-03-06 04:46:50 +01:00
|
|
|
<button type="submit" class="btn btn-sm btn-custom-primary" *ngIf="statusReplyingToWrapper">REPLY!</button>
|
|
|
|
<button type="submit" class="btn btn-sm btn-custom-primary" *ngIf="!statusReplyingToWrapper">POST!</button>
|
|
|
|
</form>
|