:style: alternate bg on days

This commit is contained in:
Tykayn 2021-05-20 11:04:29 +02:00 committed by tykayn
parent 7e12d9d34f
commit 1d9e6066e0
6 changed files with 18 additions and 13 deletions

View File

@ -1,6 +1,11 @@
import { Answer } from '../enums/answer.enum'; import { Answer } from '../enums/answer.enum';
import { Owner } from './owner.model'; import { Owner } from './owner.model';
export class ChoiceGroup {
date_string: string;
choices: Choice[];
}
export class Choice { export class Choice {
public id: number; public id: number;
public name: string; public name: string;

View File

@ -1,12 +1,7 @@
import { Choice } from './choice.model'; import { Choice, ChoiceGroup } from './choice.model';
import { Comment } from './comment.model'; import { Comment } from './comment.model';
import { Owner } from './owner.model'; import { Owner } from './owner.model';
import { DateChoice, TimeSlices } from '../../../../mocks/old-stuff/config/defaultConfigs'; import { DateChoice, TimeSlices } from './dateChoice.model';
export class ChoiceGroup {
date_string: string;
choices: Choice[];
}
export class Poll { export class Poll {
public id = 0; public id = 0;

View File

@ -1,9 +1,7 @@
:host { :host {
.time-choice { .time-choice {
background: rgba(255, 255, 255, 1); background: rgba(255, 255, 255, 1);
//border: solid 1px #dedede;
padding: 0.5em; padding: 0.5em;
//padding: 20px 10px;
border-bottom: solid 1px #ccc; border-bottom: solid 1px #ccc;
color: rgba(0, 0, 0, 0.87); color: rgba(0, 0, 0, 0.87);
box-sizing: border-box; box-sizing: border-box;

View File

@ -1,5 +1,5 @@
.day-weekend { .day-weekend {
background: #dedede; background: #dccfed;
} }
.button { .button {
min-width: 9ch; min-width: 9ch;
@ -12,6 +12,14 @@
.several-times { .several-times {
padding-left: 2em; padding-left: 2em;
} }
.date-choice {
&:nth-child(odd) {
background: #fbf8ff;
&.day-weekend {
background: #d7cae9;
}
}
}
.date-choice-item { .date-choice-item {
width: 75%; width: 75%;
} }

View File

@ -116,7 +116,7 @@ export class FormComponent implements OnInit, AfterViewInit {
creatorEmail: '', creatorEmail: '',
description: 'RSVP', description: 'RSVP',
isAboutDate: true, isAboutDate: true,
hasSeveralHours: true, hasSeveralHours: false,
kind: 'date', kind: 'date',
password: '', password: '',
whoCanChangeAnswers: 'everybody', whoCanChangeAnswers: 'everybody',
@ -134,7 +134,6 @@ export class FormComponent implements OnInit, AfterViewInit {
allowNewDateTime: false, allowNewDateTime: false,
startDateInterval: dateStart, startDateInterval: dateStart,
endDateInterval: dateEnd, endDateInterval: dateEnd,
comments: [],
}); });
} }

View File

@ -72,7 +72,7 @@
Pour être sûr de retrouver ces liens, nous pouvons vous les envoyer sur votre mail : Pour être sûr de retrouver ces liens, nous pouvons vous les envoyer sur votre mail :
</label> </label>
<br /> <br />
<input type="email" id="email" name="email" [(ngModel)]="mailToRecieve" placeholder="email" /> <input type="email" id="email" name="email" [(ngModel)]="poll.creatorEmail" placeholder="email" />
<br /> <br />
<button class="btn btn--primary" (click)="sendToEmail()"> <button class="btn btn--primary" (click)="sendToEmail()">
Envoyer les liens du sondage Envoyer les liens du sondage