Skip to content

Commit

Permalink
Phani | A-1204913361798569 | Fix DatePicker Alignment in notes modal(#…
Browse files Browse the repository at this point in the history
  • Loading branch information
Phanindra-tw authored Jul 27, 2023
1 parent 9ea001c commit 2adef81
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 12 deletions.
25 changes: 14 additions & 11 deletions ui/app/ot/views/notesModal.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,18 +7,21 @@ <h6>{{'NOTE_TITLE' | translate}}</h6>
<div class="error">
<div ng-if="emptyNoteError">{{'EMPTY_NOTES_ERROR' | translate }}</div>
</div>
<div style="display: inline-block; margin-right: 20px">
<h6 style="color: black">{{'FROM' | translate}}</h6>
<input class="calendar-day-input ng-pristine ng-untouched ng-valid ng-valid-required" id="notesStartDate" type="date"
min="{{validStartDate | date:'yyyy-MM-dd'}}" max="{{validEndDate | date:'yyyy-MM-dd'}}"
ng-model="notesStartDate" required="" ng-change="setNotesStartDate(notesStartDate)" ng-disabled="isEdit || isDayView">
</div>
<div style="display: inline-block">
<h6 style="color: black">{{'TO' | translate}}</h6>
<input class="calendar-day-input ng-pristine ng-untouched ng-valid ng-valid-required" id="notesEndDate" type="date"
min="{{validStartDate | date:'yyyy-MM-dd'}}" max="{{validEndDate | date:'yyyy-MM-dd'}}"
ng-model="notesEndDate" required="true" ng-change="setNotesEndDate(notesEndDate)" ng-disabled="isEdit || isDayView">
<div class="date-selector" >
<div>
<h6 style="color: black">{{'FROM' | translate}}</h6>
<input class="calendar-day-input ng-pristine ng-untouched ng-valid ng-valid-required" id="notesStartDate" type="date"
min="{{validStartDate | date:'yyyy-MM-dd'}}" max="{{validEndDate | date:'yyyy-MM-dd'}}" style="width: 100%"
ng-model="notesStartDate" required="" ng-change="setNotesStartDate(notesStartDate)" ng-disabled="isEdit || isDayView">
</div>
<div>
<h6 style="color: black">{{'TO' | translate}}</h6>
<input class="calendar-day-input ng-pristine ng-untouched ng-valid ng-valid-required" id="notesEndDate" type="date"
min="{{validStartDate | date:'yyyy-MM-dd'}}" max="{{validEndDate | date:'yyyy-MM-dd'}}" style="width: 100%"
ng-model="notesEndDate" required="true" ng-change="setNotesEndDate(notesEndDate)" ng-disabled="isEdit || isDayView">
</div>
</div>

<div ng-if="startDateBeforeEndDateError" class="error">
{{'FROM_DATE_BEFORE_TO_DATE_ERROR' | translate}}
</div>
Expand Down
10 changes: 9 additions & 1 deletion ui/app/styles/ot/_otWeeklyCalendar.scss
Original file line number Diff line number Diff line change
Expand Up @@ -109,9 +109,17 @@
display: inline-block;
color: #000;
}
.date-selector{
display: flex;
gap: 20px;
> div {
width: 45%;
display: inline-block
}
}
button{
height: 64px;
width: 50%;
min-width: 50%;
color: white;
border: none;
border-radius: 0;
Expand Down

0 comments on commit 2adef81

Please sign in to comment.