OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub
Ruby agile-developmentangularbcfboardsbug-trackerganttgantt-chartifcissue-trackerjira-alternativekanbanopenprojectproduct-managementproject-managementproject-planningroadmaprubyscrumtimelineworkflows
Merge remote-tracking branch 'origin/dev' into feature/41341-updated-date-picker-drop-modal-including-duration-and-non-working-days
Oliver Günther382086a3645d
diff --cc frontend/src/app/shared/components/datepicker/multi-date-modal/multi-date.modal.htmlindex 1ca00a828d5,00000000000..ac33614df65mode 100644,000000..100644--- a/frontend/src/app/shared/components/datepicker/multi-date-modal/multi-date.modal.html+++ b/frontend/src/app/shared/components/datepicker/multi-date-modal/multi-date.modal.html@@@ -1,148 -1,0 +1,150 @@@+<form- class="op-modal op-datepicker-modal loading-indicator--location"++ class="spot-modal op-datepicker-modal loading-indicator--location"+ data-qa-selector="op-datepicker-modal"+ [attr.id]="htmlId"+ #modalContainer+ data-indicator-name="modal"+ (submit)="save($event)"+>+ <op-datepicker-banner [scheduleManually]="scheduleManually"></op-datepicker-banner>+- <div class="op-modal--body form -vertical">++ <div class="spot-modal--body form -vertical">+ <div class="op-datepicker-modal--toggle-actions-container">+ <div class="form--field">+ <label class="form--label">+ {{text.scheduling.title}}+ </label>+ <div class="form--field-container">+ <spot-toggle+ [options]="schedulingOptions"+ [value]="scheduleManually"+ [name]="'scheduling'"+ [(ngModel)]="scheduleManually"+ (ngModelChange)="changeSchedulingMode()"+ data-qa-selector="op-datepicker-modal--scheduling-action"+ ></spot-toggle>+ </div>+ </div>++ <div class="form--field">+ <label class="form--label">+ {{ text.includeNonWorkingDays.title }}+ </label>+ <div class="form--field-container">+ <spot-toggle+ [options]="includeNonWorkingDaysOptions"+ [value]="includeNonWorkingDays"+ [name]="'include-non-working-days'"+ [(ngModel)]="includeNonWorkingDays"+ (ngModelChange)="changeNonWorkingDays()"+ data-qa-selector="op-datepicker-modal--include-non-working-days"+ ></spot-toggle>+ </div>+ </div>+ </div>++ <div class="op-datepicker-modal--dates-container">+ <div class="form--field op-datepicker-modal--date-form"+ data-qa-selector="datepicker-start-date"+ >+ <label class="form--label"+ [textContent]="text.startDate">+ </label>+ <div class="form--field-container">+ <div class="form--text-field-container op-datepicker-modal--date-container">+ <spot-text-field+ name="startDate"+ data-qa-selector="op-datepicker-modal--start-date-field"+ class="op-datepicker-modal--date-field"+ [attr.data-qa-highlighted]="showFieldAsActive('start') || undefined"+ [ngClass]="{'op-datepicker-modal--date-field_current' : showFieldAsActive('start')}"+ [ngModel]="dates.start"+ (ngModelChange)="startDateChanged$.next($event)"+ [disabled]="!isSchedulable"+ [showClearButton]="currentlyActivatedDateField === 'end'"+ (focusin)="setCurrentActivatedField('start')"+ ></spot-text-field>+ </div>+ </div>+ <div class="form--field-extra-actions">+ <a *ngIf="showTodayLink()"+ (click)="setToday('start')"+ [textContent]="text.today">+ </a>+ </div>+ </div>+ <div class="form--field op-datepicker-modal--date-form"+ data-qa-selector="datepicker-end-date"+ >+ <label class="form--label"+ [textContent]="text.endDate">+ </label>+ <div class="form--field-container">+ <div class="form--text-field-container op-datepicker-modal--date-container">+ <spot-text-field+ name="endDate"+ data-qa-selector="op-datepicker-modal--end-date-field"+ class="op-datepicker-modal--date-field"+ [attr.data-qa-highlighted]=" showFieldAsActive('end') || undefined"+ [ngClass]="{'op-datepicker-modal--date-field_current' : showFieldAsActive('end')}"+ [ngModel]="dates.end"+ (ngModelChange)="endDateChanged$.next($event)"+ [disabled]="!isSchedulable"+ [showClearButton]="currentlyActivatedDateField === 'end'"+ (focusin)="setCurrentActivatedField('end')"+ ></spot-text-field>+ </div>+ </div>+ <div class="form--field-extra-actions">+ <a *ngIf="showTodayLink()"+ (click)="setToday('end')"+ [textContent]="text.today">+ </a>+ </div>+ </div>+ <div class="form--field op-datepicker-modal--date-form"+ data-qa-selector="datepicker-duration"+ >+ <label class="form--label"+ [textContent]="text.duration">+ </label>+ <div class="form--field-container">+ <div class="form--text-field-container op-datepicker-modal--date-container">+ <spot-text-field+ #durationField+ name="duration"+ data-qa-selector="op-datepicker-modal--duration-field"+ class="op-datepicker-modal--date-field"+ [attr.data-qa-highlighted]=" showFieldAsActive('duration') || undefined"+ [ngClass]="{'op-datepicker-modal--date-field_current' : showFieldAsActive('duration')}"+ [ngModel]="displayedDuration"+ (ngModelChange)="updateDuration($event)"+ [disabled]="!isSchedulable"+ (focusin)="handleDurationFocusIn()"+ (focusout)="handleDurationFocusOut()"+ ></spot-text-field>+ </div>+ </div>+ </div>+ </div>++ <input id="flatpickr-input"+ hidden>+ </div>+- <div class="op-modal--footer">- <button- (click)="cancel()"- class="op-datepicker-modal--action button"- data-qa-selector="op-datepicker-modal--action"- [textContent]="text.cancel"- ></button>- <button- class="op-datepicker-modal--action button -highlight"- data-qa-selector="op-datepicker-modal--action"- [textContent]="text.save"- ></button>++ <div class="spot-modal--footer spot-action-bar">++ <div class="spot-action-bar--right">++ <button++ (click)="cancel()"++ class="op-datepicker-modal--action button button_no-margin spot-action-bar--action"++ data-qa-selector="op-datepicker-modal--action"++ [textContent]="text.cancel"++ ></button>++ <button++ class="op-datepicker-modal--action button button_no-margin -highlight spot-action-bar--action"++ data-qa-selector="op-datepicker-modal--action"++ [textContent]="text.save"++ ></button>++ </div>+ </div>+</form>diff --cc frontend/src/app/shared/components/datepicker/single-date-modal/single-date.modal.htmlindex 05d7d24be9d,00000000000..ebf89b0cee8mode 100644,000000..100644--- a/frontend/src/app/shared/components/datepicker/single-date-modal/single-date.modal.html+++ b/frontend/src/app/shared/components/datepicker/single-date-modal/single-date.modal.html@@@ -1,89 -1,0 +1,91 @@@+<form- class="op-modal op-datepicker-modal loading-indicator--location"++ class="spot-modal op-datepicker-modal loading-indicator--location"+ data-qa-selector="op-datepicker-modal"+ [attr.id]="htmlId"+ #modalContainer+ data-indicator-name="modal"+ (submit)="save($event)"+>+ <op-datepicker-banner [scheduleManually]="scheduleManually"></op-datepicker-banner>+- <div class="op-modal--body form -vertical">++ <div class="spot-modal--body form -vertical">+ <div class="op-datepicker-modal--toggle-actions-container">+ <div class="form--field">+ <label class="form--label">+ {{text.scheduling.title}}+ </label>+ <div class="form--field-container">+ <spot-toggle+ [options]="schedulingOptions"+ [value]="scheduleManually"+ [name]="'scheduling'"+ [(ngModel)]="scheduleManually"+ (ngModelChange)="changeSchedulingMode()"+ data-qa-selector="op-datepicker-modal--scheduling-action"+ ></spot-toggle>+ </div>+ </div>++ <div class="form--field">+ <label class="form--label">+ {{ text.includeNonWorkingDays.title }}+ </label>+ <div class="form--field-container">+ <spot-toggle+ [options]="includeNonWorkingDaysOptions"+ [value]="includeNonWorkingDays"+ [name]="'include-non-working-days'"+ [(ngModel)]="includeNonWorkingDays"+ (ngModelChange)="changeNonWorkingDays()"+ data-qa-selector="op-datepicker-modal--include-non-working-days"+ ></spot-toggle>+ </div>+ </div>+ </div>++ <div class="op-datepicker-modal--dates-container">+ <div class="form--field op-datepicker-modal--date-form">+ <label class="form--label"+ [textContent]="text.date">+ </label>+ <div class="form--field-container">+ <div class="form--text-field-container op-datepicker-modal--date-container">+ <spot-text-field+ name="date"+ class="op-datepicker-modal--date-field"+ [ngClass]="{ 'op-datepicker-modal--date-field_current': this.dateModalScheduling.isSchedulable }"+ [(ngModel)]="date"+ (ngModelChange)="dateChangedManually$.next()"+ [showClearButton]="true"+ ></spot-text-field>+ </div>+ </div>+ <div class="form--field-extra-actions">+ <a *ngIf="dateModalScheduling.isSchedulable"+ (click)="setToday()"+ [textContent]="text.today">+ </a>+ </div>+ </div>+ </div>++ <input id="flatpickr-input"+ hidden>+ </div>+- <div class="op-modal--footer">- <button- (click)="cancel()"- class="op-datepicker-modal--action button"- data-qa-selector="op-datepicker-modal--action"- [textContent]="text.cancel"- ></button>- <button- class="op-datepicker-modal--action button -highlight"- data-qa-selector="op-datepicker-modal--action"- [textContent]="text.save"- ></button>++ <div class="spot-modal--footer spot-action-bar">++ <div class="spot-action-bar--right">++ <button++ (click)="cancel()"++ class="op-datepicker-modal--action button button_no-margin spot-action-bar--action"++ data-qa-selector="op-datepicker-modal--action"++ [textContent]="text.cancel"++ ></button>++ <button++ class="op-datepicker-modal--action button button_no-margin -highlight spot-action-bar--action"++ data-qa-selector="op-datepicker-modal--action"++ [textContent]="text.save"++ ></button>++ </div>+ </div>+</form>