Permite añadir eventos a la p
This commit is contained in:
@@ -57,6 +57,7 @@
|
||||
</ion-col>
|
||||
<ion-col>
|
||||
<div class="galeria">
|
||||
Galería de Fotos
|
||||
<input type="file" (change)="loadImageFromDevice($event)" id="file-input-galeria" accept="image/png, image/jpeg">
|
||||
<ion-slides (ionDrag)="onSlideChanged()">
|
||||
<ion-slide *ngFor="let foto of galeriaFotos">
|
||||
@@ -79,6 +80,27 @@
|
||||
Añadir evento
|
||||
</ion-button>
|
||||
</ion-row>
|
||||
|
||||
<ion-row>
|
||||
<div *ngIf="eventos.length>0" class="eventos">
|
||||
<ion-list>
|
||||
<ion-item *ngFor="let evento of eventos">
|
||||
<div class="evento">
|
||||
<div class="eventoHeader">
|
||||
{{evento.nombre}} ·
|
||||
<ion-icon name="calendar-outline"></ion-icon>
|
||||
{{evento.fecha}} ·
|
||||
<ion-icon name="cash-outline"></ion-icon>
|
||||
{{evento.precio1}}, {{evento.precio2}}
|
||||
</div>
|
||||
<div class="eventoDesc">
|
||||
{{evento.descripcion}}
|
||||
</div>
|
||||
</div>
|
||||
</ion-item>
|
||||
</ion-list>
|
||||
</div>
|
||||
</ion-row>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
@@ -2,11 +2,11 @@
|
||||
--ion-background-color-rgb: 73,73,73;
|
||||
|
||||
--ion-text-color: #eeeeee;
|
||||
--ion-text-color-rgb: 238,238,238;}
|
||||
--ion-text-color-rgb: 238,238,238;
|
||||
}
|
||||
|
||||
*{
|
||||
padding: 5px;
|
||||
letter-spacing: 2px;
|
||||
}
|
||||
.titulo{
|
||||
font: "arial";
|
||||
@@ -59,7 +59,23 @@
|
||||
.botonesVisible{
|
||||
display: none;
|
||||
}
|
||||
|
||||
.eventos{
|
||||
margin: 20px;
|
||||
justify-content: space-between;
|
||||
}
|
||||
|
||||
.evento{
|
||||
margin-top: 20px;
|
||||
}
|
||||
.eventoHeader{
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.eventoDesc{
|
||||
color: white;
|
||||
}
|
||||
|
||||
ion-slides {
|
||||
height: 100%;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -26,7 +26,6 @@ export class PerfilDiscotecaPage implements OnInit {
|
||||
editDisabled: string;
|
||||
editEnabled: string;
|
||||
galeriaFotos: string[];
|
||||
galeriaFake: string[];
|
||||
currentIndex: number;
|
||||
eventos: Evento[];
|
||||
alertCtrl: AlertController;
|
||||
@@ -78,7 +77,6 @@ export class PerfilDiscotecaPage implements OnInit {
|
||||
this.slides.update();
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
loadImageFromDevice(event): void{
|
||||
|
||||
Reference in New Issue
Block a user