File

src/app/pages/resume/resume.component.ts

Extends

BaseComponent

Metadata

selector framadate-resume
styleUrls ./resume.component.scss
templateUrl ./resume.component.html

Index

Properties
Methods

Constructor

constructor(config: ConfigService, router: Router)
Parameters :
Name Type Optional
config ConfigService No
router Router No

Methods

checkValidity
checkValidity()
Inherited from BaseComponent
Defined in BaseComponent:21
Returns : boolean
displayErrorMessage
displayErrorMessage()
Inherited from BaseComponent
Defined in BaseComponent:27
Returns : boolean
ngOnInit
ngOnInit()
Inherited from BaseComponent
Defined in BaseComponent:17
Returns : void

Properties

Public config
Type : ConfigService
Public config
Type : ConfigService
Inherited from BaseComponent
Defined in BaseComponent:14
import {Component} from '@angular/core';
import {BaseComponent} from '../base-page/base.component';
import {ConfigService} from '../../services/config.service';
import {Router} from "@angular/router";

@Component({
    selector: 'framadate-resume',
    templateUrl: './resume.component.html',
    styleUrls: ['./resume.component.scss']
})
export class ResumeComponent extends BaseComponent {

    constructor(public config: ConfigService,
                private router: Router) {
        super(config);
    }

}
<h1 >
    Récapitulatif
</h1 >
<div class='card content' >

    <h2 class="hero-title title" >
        {{config.title}}
    </h2 >
    <div class="creation" >
        créé par
        <i class='pseudo' >
            {{config.myName}}
        </i >
    </div >
    <div class="description" >
        <cite >
            {{config.description}}
        </cite >
    </div >
    <section
        class='preview type-classic'
        *ngIf='config.pollType == "classic"' >
        <ul >
            <li
                markdown
                *ngFor="let questions of config.answers" >
                <img
                    class='img-thumbnail'
                    src='{{questions.url}}'
                    alt='image {{questions.url}}' >
                {{questions.id + 1}}. {{questions.text}}
            </li >
        </ul >
    </section >
    <section
        class='type-date'
        *ngIf='config.pollType !== "classic"' >
        <i class='fa fa-clock-o' ></i >
        <span
            class='well'
            *ngIf="'true' === config.allowSeveralHours" >
            {{"dates.multiple.different"|translate}}
        </span >
        <span
            class='well'
            *ngIf="'false' === config.allowSeveralHours" >
            {{"dates.multiple.identical"|translate}}
        </span >
        <div
            *ngFor="let choice of config.dateList; index as id"
            class="date-choice"
        >
            <div
                class='only-one-slice'
                *ngIf='!choice.timeList.length' >
                <i class='fa fa-square-o' ></i >
            </div >
            {{choice.literal}}

            <!-- CASE different slices of the day-->
            <div
                *ngIf="'true' === config.allowSeveralHours"
                class="several-times"
            >

                <div
                    *ngFor="let time of choice.timeList ; index as idTime"
                    class="time-choice"
                >
                    {{idTime}})
                    <i class='fa fa-square-o' ></i >
                    {{time.literal}}
                </div >

            </div >
            <!-- CASE all dates having the same slices of the day-->
            <div
                *ngIf="'false' === config.allowSeveralHours"
                class="same-times"
            >
                <div
                    *ngFor="let time of config.timeList "
                    class="time-choice"
                >
                    <i class='fa fa-square-o' ></i >
                    {{time.literal}}
                </div >
            </div >
        </div >
    </section >

</div >

<button
    [routerLink]="'/step/visibility'"
    class="btn btn--primary btn--full" >
    C'est parfait!
</button >

<div class="back" >
    <a
        *ngIf='config.pollType == "classic"'
        [routerLink]="'/step/answers'"
        class="prev" >
        Retour
    </a >
    <a
        *ngIf='config.pollType == "dates"'
        [routerLink]="'/step/date'"
        class="prev" >
        Retour
    </a >
</div >

./resume.component.scss

.card {
    box-shadow: 0px 0px 0.5em #ccc;
    padding: 2em;
    margin: 1em 0;
}

.time-choice {
    margin-left: 3em;
}
Legend
Html element
Component
Html element with directive

result-matching ""

    No results matching ""