: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 { Owner } from './owner.model';
export class ChoiceGroup {
date_string: string;
choices: Choice[];
}
export class Choice {
public id: number;
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 { Owner } from './owner.model';
import { DateChoice, TimeSlices } from '../../../../mocks/old-stuff/config/defaultConfigs';
export class ChoiceGroup {
date_string: string;
choices: Choice[];
}
import { DateChoice, TimeSlices } from './dateChoice.model';
export class Poll {
public id = 0;

View File

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

View File

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

View File

@ -116,7 +116,7 @@ export class FormComponent implements OnInit, AfterViewInit {
creatorEmail: '',
description: 'RSVP',
isAboutDate: true,
hasSeveralHours: true,
hasSeveralHours: false,
kind: 'date',
password: '',
whoCanChangeAnswers: 'everybody',
@ -134,7 +134,6 @@ export class FormComponent implements OnInit, AfterViewInit {
allowNewDateTime: false,
startDateInterval: dateStart,
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 :
</label>
<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 />
<button class="btn btn--primary" (click)="sendToEmail()">
Envoyer les liens du sondage