5 changed files with 212 additions and 96 deletions
-
111src/app/apply-leave/apply-leave.component.html
-
102src/app/apply-leave/apply-leave.component.scss
-
29src/app/apply-leave/apply-leave.component.ts
-
9src/app/current-screen/current-screen.component.html
-
13src/app/current-screen/current-screen.component.ts
@ -1,54 +1,99 @@ |
|||
<div class="page-container" id="apply-leave"> |
|||
<div class="align-middle"> |
|||
<p class="txt-content font-body-xsmall-bold">{{languageConstants.apply}}</p> |
|||
<p class="txt-content font-body-xsmall-bold number-txt">{{languageConstants.leave}}</p> |
|||
<form id="applyLeaveFormId" class="add-leave-form" [formGroup]="applyLeaveForm"> |
|||
<div class="align-middle title"> |
|||
<p class="txt-content font-body-xsmall-bold">{{languageConstants.apply}}<br/>{{languageConstants.leave}}</p> |
|||
</div> |
|||
<div class="align-middle alert-section" *ngIf="showAlertBox"> |
|||
<p class="txt-content font-body-xsmall-bold">{{languageConstants.checkDetails}}</p> |
|||
<p class="txt-content font-body-xsmall-bold">{{languageConstants.casualSickLeave}}</p> |
|||
<p class="txt-content font-body-xsmall-bold">30/04/2021 - 05/05/2021G</p> |
|||
<div class="align-middle flex-row"> |
|||
<div class="flex-1 margin-top-3 margin-right-3"> |
|||
<button class="font-body-xsmall-bold" type="button" (click)="onReviewSubmit()">{{languageConstants.submit}}</button> |
|||
</div> |
|||
<div class="flex-1 margin-top-3 margin-right-3"> |
|||
<button class="font-body-xsmall-bold cancel-button" type="button" (click)="onSubmitForm()">{{languageConstants.cancel}}</button> |
|||
</div> |
|||
<button class="font-body-xsmall-bold" type="button" |
|||
(click)="onReviewSubmit()">{{languageConstants.submit}}</button> |
|||
<button class="font-body-xsmall-bold cancel-button" type="button" |
|||
(click)="onSubmitForm()">{{languageConstants.cancel}}</button> |
|||
</div> |
|||
</div> |
|||
<div class="data-container"> |
|||
<div class="align-middle"> |
|||
<input type="text" id="leaveType" |
|||
formControlName="leaveType" class="user-input font-body-xsmall-bold" placeholder="{{languageConstants.leaveType}}" value=""/> |
|||
<p class="down-arrow"><img class="bike-card-arrow-dropdown" src="assets/svg/arrow-down.svg"></p> |
|||
<mat-form-field class="input-field" appearance="fill"> |
|||
<mat-label>{{languageConstants.leaveType}}</mat-label> |
|||
<mat-select (selectionChange)="selectLeave($event)"> |
|||
<mat-option *ngFor="let leaveType of leaveTypeList" [value]="leaveType"> |
|||
{{leaveType}} |
|||
</mat-option> |
|||
</mat-select> |
|||
</mat-form-field> |
|||
</div> |
|||
<div class="align-middle flex-row"> |
|||
<div class="flex-1 margin-top-3 margin-right-3"> |
|||
<input type="text" id="leaveType" |
|||
formControlName="leaveType" class="user-input font-body-xsmall-bold" placeholder="{{languageConstants.from}}" value=""/> |
|||
<p class="calendar-icon"><img class="bike-card-arrow-dropdown" src="assets/svg/calendar-input.svg"></p> |
|||
</div> |
|||
<div class="flex-1 margin-top-3"> |
|||
<input type="text" id="leaveType" |
|||
formControlName="leaveType" class="user-input font-body-xsmall-bold" placeholder="{{languageConstants.to}}" value=""/> |
|||
<p class="calendar-icon"><img class="bike-card-arrow-dropdown" src="assets/svg/calendar-input.svg"></p> |
|||
|
|||
<!-- <div class="left-section"> |
|||
<mat-form-field class="input-field" appearance="outline"> |
|||
<mat-label>{{languageConstants.from}} </mat-label> |
|||
<input formControlName="from" matInput |
|||
placeholder="{{languageConstants.from}}" value=""> |
|||
</mat-form-field> |
|||
<span class="calendar-icon"><img class="bike-card-arrow-dropdown" |
|||
src="assets/svg/calendar-input.svg"></span> |
|||
</div> |
|||
<div class="right-section"> |
|||
<mat-form-field class="input-field" appearance="outline"> |
|||
<mat-label>{{languageConstants.to}} </mat-label> |
|||
<input formControlName="to" matInput |
|||
placeholder="{{languageConstants.to}}" value=""> |
|||
</mat-form-field> |
|||
<span class="calendar-icon"><img class="bike-card-arrow-dropdown" |
|||
src="assets/svg/calendar-input.svg"></span> |
|||
</div> --> |
|||
<div class="left-section"> |
|||
<mat-form-field class="input-field" appearance="fill"> |
|||
<mat-label>{{languageConstants.from}}</mat-label> |
|||
<!-- #docregion toggle --> |
|||
<input matInput [matDatepicker]="fromPicker" [min]="todayDate" formControlName="from" required> |
|||
<mat-datepicker-toggle matSuffix [for]="fromPicker"></mat-datepicker-toggle> |
|||
<mat-datepicker #fromPicker></mat-datepicker> |
|||
<!-- #enddocregion toggle --> |
|||
</mat-form-field> |
|||
</div> |
|||
<div class="right-section"> |
|||
<mat-form-field class="input-field" appearance="fill"> |
|||
<mat-label>{{languageConstants.to}}</mat-label> |
|||
<!-- #docregion toggle --> |
|||
<input matInput [matDatepicker]="toPicker" [min]="todayDate" formControlName="to" required> |
|||
<mat-datepicker-toggle matSuffix [for]="toPicker"></mat-datepicker-toggle> |
|||
<mat-datepicker #toPicker></mat-datepicker> |
|||
<!-- #enddocregion toggle --> |
|||
</mat-form-field> |
|||
</div> |
|||
|
|||
</div> |
|||
<div class="align-middle flex-row"> |
|||
<div class="flex-1 margin-top-3 margin-right-3"> |
|||
<input type="text" id="leaveType" |
|||
formControlName="leaveType" class="user-input font-body-xsmall-bold" placeholder="{{languageConstants.startTime}}" value=""/> |
|||
<div class="left-section"> |
|||
<mat-form-field class="input-field" appearance="outline"> |
|||
<mat-label>{{languageConstants.startTime}} </mat-label> |
|||
<input formControlName="startTime" matInput |
|||
placeholder="{{languageConstants.startTime}}" value=""> |
|||
</mat-form-field> |
|||
</div> |
|||
<div class="flex-1 margin-top-3"> |
|||
<input type="text" id="leaveType" |
|||
formControlName="leaveType" class="user-input font-body-xsmall-bold" placeholder="{{languageConstants.endTime}}" value=""/> |
|||
<div class="right-section"> |
|||
<mat-form-field class="input-field" appearance="outline"> |
|||
<mat-label>{{languageConstants.endTime}} </mat-label> |
|||
<input formControlName="endTime" matInput |
|||
placeholder="{{languageConstants.endTime}}" value=""> |
|||
</mat-form-field> |
|||
</div> |
|||
</div> |
|||
<div class="margin-top-3 align-middle"> |
|||
<input type="text" id="leaveType" |
|||
formControlName="leaveType" class="user-input font-body-xsmall-bold" placeholder="{{languageConstants.reason}}" value=""/> |
|||
<div class="align-middle"> |
|||
<mat-form-field class="input-field" appearance="outline"> |
|||
<mat-label>{{languageConstants.reason}} </mat-label> |
|||
<input formControlName="reason" matInput |
|||
placeholder="{{languageConstants.reason}}" value=""> |
|||
</mat-form-field> |
|||
</div> |
|||
<div class="margin-top-3 align-middle"> |
|||
<button class="font-body-xsmall-bold" type="button" (click)="onSubmitForm()">{{languageConstants.review}}</button> |
|||
<div class="align-middle"> |
|||
<button class="font-body-xsmall-bold" type="button" |
|||
(click)="onSubmitForm()">{{languageConstants.review}}</button> |
|||
</div> |
|||
|
|||
</div> |
|||
</form> |
|||
</div> |
@ -1,43 +1,71 @@ |
|||
@import '../../styles.scss'; |
|||
#apply-leave{ |
|||
background: $clr-mania; |
|||
.align-middle{ |
|||
@include flex-box(column, top); |
|||
.page-container { |
|||
height: 100%; |
|||
display: flex; |
|||
flex-direction: column; |
|||
background-color: #b4e8fd; |
|||
} |
|||
.flex-row { |
|||
flex-direction: row; |
|||
display: flex; |
|||
width: 100%; |
|||
} |
|||
button { |
|||
border-radius: 10px; |
|||
font-size: 0.938rem; |
|||
width: 98%; |
|||
background: #0b5fa4 0 0 no-repeat padding-box !important; |
|||
margin: 2%; |
|||
} |
|||
.left-section { |
|||
width: 48%; |
|||
margin-right: 2%; |
|||
} |
|||
.title { |
|||
text-align: center; |
|||
padding-bottom: 5px; |
|||
width: 90%; |
|||
margin: 0% auto; |
|||
// .down-arrow{ |
|||
// position: absolute; |
|||
// top: 29%; |
|||
// right: 10%; |
|||
// } |
|||
.down-arrow{ |
|||
} |
|||
.right-section { |
|||
width: 48%; |
|||
} |
|||
.data-container { |
|||
margin: 2%; |
|||
padding: 2%; |
|||
} |
|||
.input-field { |
|||
width: 100%; |
|||
} |
|||
#apply-leave { |
|||
background: #b4e8fd; |
|||
} |
|||
.align-middle { |
|||
width: 100%; |
|||
} |
|||
.down-arrow { |
|||
position: relative; |
|||
top: -45%; |
|||
right: -42%; |
|||
} |
|||
.calendar-icon{ |
|||
} |
|||
.calendar-icon { |
|||
position: relative; |
|||
top: -40px; |
|||
right: -57px; |
|||
} |
|||
.txt-content{ |
|||
color: $clr-sappire; |
|||
font-weight: bold; |
|||
} |
|||
.txt-content:first-child{ |
|||
margin-top: 10%; |
|||
} |
|||
.txt-content:last-child{ |
|||
margin-bottom: 10%; |
|||
} |
|||
} |
|||
.alert-section{ |
|||
background-color: #FFFFFFA6; |
|||
margin-bottom: 5%; |
|||
.cancel-button{ |
|||
background:$clr-roman !important; |
|||
} |
|||
} |
|||
top: -59px; |
|||
right: -147px; |
|||
} |
|||
.txt-content { |
|||
color: #0b5fa4; |
|||
margin: 5% auto; |
|||
} |
|||
.alert-section { |
|||
background-color: #fff A6; |
|||
margin: 5% 0% 5% 0%; |
|||
text-align: center; |
|||
padding: 2%; |
|||
} |
|||
.cancel-button { |
|||
background: #da6c6c !important; |
|||
} |
|||
.font-body-xsmall-bold { |
|||
font-size: 1rem; |
|||
line-height: 1.125rem; |
|||
letter-spacing: 1px; |
|||
font-family: "Raleway VariableFont"; |
|||
text-transform: uppercase; |
|||
} |
Write
Preview
Loading…
Cancel
Save
Reference in new issue