forked from tykayn/funky-framadate-front
env to allow multi date span per day
This commit is contained in:
parent
c799bea900
commit
e35f4f06d7
@ -47,7 +47,7 @@ export class PollService implements Resolve<Poll> {
|
|||||||
public showDateInterval = false;
|
public showDateInterval = false;
|
||||||
public allowSeveralHours = false;
|
public allowSeveralHours = false;
|
||||||
public richTextMode = false;
|
public richTextMode = false;
|
||||||
public mode_calendar = true;
|
public mode_calendar = false;
|
||||||
public calendar: Date[] = [new Date()];
|
public calendar: Date[] = [new Date()];
|
||||||
public disabled_dates: Date[] = [];
|
public disabled_dates: Date[] = [];
|
||||||
|
|
||||||
|
@ -25,8 +25,10 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="text-date-list" *ngIf="!pollService.mode_calendar">
|
<div class="text-date-list" *ngIf="!pollService.mode_calendar">
|
||||||
<app-day-list [form]="pollService.form"></app-day-list>
|
<app-day-list
|
||||||
<!-- [hasSeveralHours]="pollService.form.value.hasSeveralHours"-->
|
[form]="pollService.form"
|
||||||
|
[hasSeveralHours]="environment.enable_several_hours && pollService.form.value.hasSeveralHours"
|
||||||
|
></app-day-list>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<app-nav-steps
|
<app-nav-steps
|
||||||
|
@ -14,6 +14,7 @@ export class StepThreeComponent implements OnInit {
|
|||||||
step_max: any;
|
step_max: any;
|
||||||
@Input()
|
@Input()
|
||||||
form: any;
|
form: any;
|
||||||
|
public environment = environment;
|
||||||
|
|
||||||
constructor(public pollService: PollService, private titleService: Title) {
|
constructor(public pollService: PollService, private titleService: Title) {
|
||||||
this.pollService.step_current = 3;
|
this.pollService.step_current = 3;
|
||||||
|
@ -38,6 +38,7 @@ export const environment = {
|
|||||||
production: false,
|
production: false,
|
||||||
showDemoWarning: false,
|
showDemoWarning: false,
|
||||||
showStepperShortcuts: false,
|
showStepperShortcuts: false,
|
||||||
|
enable_several_hours: false,
|
||||||
|
|
||||||
api: endpoints,
|
api: endpoints,
|
||||||
poll: poll_conf,
|
poll: poll_conf,
|
||||||
|
Loading…
Reference in New Issue
Block a user