This commit is contained in:
Romain Verger 2022-02-18 17:24:03 +01:00
commit 4049a0d8b1
15 changed files with 471 additions and 31 deletions

View file

@ -0,0 +1 @@
<app-add-restau></app-add-restau>

View file

@ -0,0 +1,25 @@
import { ComponentFixture, TestBed } from '@angular/core/testing';
import { AdminPageComponent } from './admin-page.component';
describe('AdminPageComponent', () => {
let component: AdminPageComponent;
let fixture: ComponentFixture<AdminPageComponent>;
beforeEach(async () => {
await TestBed.configureTestingModule({
declarations: [ AdminPageComponent ]
})
.compileComponents();
});
beforeEach(() => {
fixture = TestBed.createComponent(AdminPageComponent);
component = fixture.componentInstance;
fixture.detectChanges();
});
it('should create', () => {
expect(component).toBeTruthy();
});
});

View file

@ -0,0 +1,23 @@
import { Component, OnInit } from '@angular/core';
import { FormControl, FormGroup, Validators } from '@angular/forms';
import { Router } from '@angular/router';
import { ApiBackService } from 'src/app/services/api-back.service';
import { Restaurant } from '../models/restaurant';
@Component({
selector: 'app-admin-page',
templateUrl: './admin-page.component.html',
styleUrls: ['./admin-page.component.scss']
})
export class AdminPageComponent implements OnInit {
constructor( ) {
}
ngOnInit(): void {
}
}

View file

@ -0,0 +1,13 @@
export interface Restaurant {
id?:number;
nom: string;
adresse: string;
prix?: number;
latitude: string;
longitude: string;
telephone ?: string;
website ?: string;
aEmporter?: boolean;
accesPMR?: boolean;
surPlace?: boolean;
}

View file

@ -31,6 +31,9 @@ export class RestoPageComponent implements OnInit {
})
}
console.log(this.apiBackService);