134 lines
3.6 KiB
HTML
134 lines
3.6 KiB
HTML
<div class="message-box container">
|
|
<div class="list-search">
|
|
<div class="searchbox">
|
|
<form [formGroup]="fgSearch" class="w-100-p">
|
|
<mat-form-field floatLabel="never">
|
|
<input
|
|
matInput
|
|
#inputSearch
|
|
type="text"
|
|
maxlength="20"
|
|
placeholder="이름, 제목, 내용 검색"
|
|
value=""
|
|
formControlName="searchInput"
|
|
(keydown.enter)="onKeyDownEnter($event, inputSearch.value)"
|
|
/>
|
|
<button
|
|
mat-button
|
|
matSuffix
|
|
mat-icon-button
|
|
aria-label="Clear"
|
|
(click)="inputSearch.value = ''; onClickSearchCancel()"
|
|
>
|
|
<mat-icon>close</mat-icon>
|
|
</button>
|
|
</mat-form-field>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
<div class="container">
|
|
<mat-tab-group
|
|
mat-stretch-tabs
|
|
animationDuration="0ms"
|
|
(selectedIndexChange)="onSelectedIndexChange($event)"
|
|
>
|
|
<mat-tab>
|
|
<ng-template mat-tab-label>
|
|
수신
|
|
</ng-template>
|
|
|
|
<div *ngFor="let message of messageList">
|
|
<dl>
|
|
<dt>
|
|
<mat-icon
|
|
*ngIf="
|
|
!!message.resType && message.resType === ContentType.Image
|
|
"
|
|
>image</mat-icon
|
|
>
|
|
<mat-icon
|
|
*ngIf="
|
|
!!message.resType &&
|
|
message.resType === ContentType.AttachFile
|
|
"
|
|
>attach_file</mat-icon
|
|
>
|
|
<ul>
|
|
<li>{{ message.userName }}</li>
|
|
<li>{{ message.title }}</li>
|
|
</ul>
|
|
</dt>
|
|
<dd>
|
|
{{ message.regDate | dateToStringFormat: 'MM:DD' }}
|
|
</dd>
|
|
</dl>
|
|
</div>
|
|
</mat-tab>
|
|
<mat-tab>
|
|
<ng-template mat-tab-label>
|
|
발신
|
|
</ng-template>
|
|
|
|
<div *ngFor="let message of messageList">
|
|
<dl>
|
|
<dt>
|
|
<mat-icon
|
|
*ngIf="
|
|
!!message.resType && message.resType === ContentType.Image
|
|
"
|
|
>image</mat-icon
|
|
>
|
|
<mat-icon
|
|
*ngIf="
|
|
!!message.resType &&
|
|
message.resType === ContentType.AttachFile
|
|
"
|
|
>attach_file</mat-icon
|
|
>
|
|
<ul>
|
|
<li>{{ message.userName }}</li>
|
|
<li>{{ message.title }}</li>
|
|
</ul>
|
|
</dt>
|
|
<dd>
|
|
{{ message.regDate | dateToStringFormat: 'MM:DD' }}
|
|
</dd>
|
|
</dl>
|
|
</div>
|
|
</mat-tab>
|
|
<mat-tab>
|
|
<ng-template mat-tab-label>
|
|
예약
|
|
</ng-template>
|
|
|
|
<div *ngFor="let message of messageList">
|
|
<dl>
|
|
<dt>
|
|
<mat-icon
|
|
*ngIf="
|
|
!!message.resType && message.resType === ContentType.Image
|
|
"
|
|
>image</mat-icon
|
|
>
|
|
<mat-icon
|
|
*ngIf="
|
|
!!message.resType &&
|
|
message.resType === ContentType.AttachFile
|
|
"
|
|
>attach_file</mat-icon
|
|
>
|
|
<ul>
|
|
<li>{{ message.userName }}</li>
|
|
<li>{{ message.title }}</li>
|
|
</ul>
|
|
</dt>
|
|
<dd>
|
|
{{ message.regDate | dateToStringFormat: 'MM:DD' }}
|
|
</dd>
|
|
</dl>
|
|
</div>
|
|
</mat-tab>
|
|
</mat-tab-group>
|
|
</div>
|
|
</div>
|