-
-
- Mi Perfil
-
-
+
diff --git a/src/app/perfil-discoteca/perfil-discoteca.page.scss b/src/app/perfil-discoteca/perfil-discoteca.page.scss
index a0df72b..d4e24fa 100644
--- a/src/app/perfil-discoteca/perfil-discoteca.page.scss
+++ b/src/app/perfil-discoteca/perfil-discoteca.page.scss
@@ -7,13 +7,11 @@
*{
padding: 5px;
+ display: block;
+ margin: auto;
}
- .titulo{
- font: "arial";
- }
.fotoPerfil{
- display: block;
text-align: end;
max-width: 800px;
max-height: auto;
@@ -34,9 +32,9 @@
.datosDisplay{
- float: left;
- position: relative;
- margin: auto;
+ float: left;
+ position: relative;
+ margin: auto;
}
@@ -76,5 +74,5 @@
}
ion-slides {
- height: 100%;
+ height: 200px;
}
diff --git a/src/app/prompt-evento/prompt-evento.page.html b/src/app/prompt-evento/prompt-evento.page.html
index a831e5f..94845bd 100644
--- a/src/app/prompt-evento/prompt-evento.page.html
+++ b/src/app/prompt-evento/prompt-evento.page.html
@@ -10,8 +10,12 @@
+
+ Tu evento necesita un nombre
+
@@ -19,6 +23,10 @@
Fecha:
+
+ Tu evento necesita una fecha
+
@@ -27,6 +35,10 @@
Precio:
+
+ Tu evento necesita un precio (puede ser 0)
+
@@ -34,6 +46,10 @@
Descripción:
+
+ ¡Dale una descripción a tu evento!
+
diff --git a/src/app/prompt-evento/prompt-evento.page.scss b/src/app/prompt-evento/prompt-evento.page.scss
index 48ce5fa..3859e0c 100644
--- a/src/app/prompt-evento/prompt-evento.page.scss
+++ b/src/app/prompt-evento/prompt-evento.page.scss
@@ -22,3 +22,12 @@ label{
color: wheat,
}
+textarea{
+ color: black;
+}
+
+span{
+ color: red;
+ font-style: italic;
+}
+
diff --git a/src/app/prompt-evento/prompt-evento.page.ts b/src/app/prompt-evento/prompt-evento.page.ts
index a16cc58..7711c91 100644
--- a/src/app/prompt-evento/prompt-evento.page.ts
+++ b/src/app/prompt-evento/prompt-evento.page.ts
@@ -10,10 +10,11 @@ import { Router } from '@angular/router';
styleUrls: ['./prompt-evento.page.scss'],
})
export class PromptEventoPage implements OnInit{
+
+ submitted = false;
eventoForm = new FormGroup({
nombre: new FormControl('', Validators.required),
fecha: new FormControl('', Validators.required),
- hora: new FormControl('', Validators.required),
precio1: new FormControl('', Validators.required),
precio2: new FormControl('', Validators.required),
descripcion: new FormControl('', Validators.required),
@@ -31,9 +32,12 @@ export class PromptEventoPage implements OnInit{
}
}
onSubmit(){
- let evento = new Evento();
- this.asignarEvento(evento);
- this.router.navigate(['/tabs']);
+ this.submitted = true;
+ if (this.eventoForm.valid){
+ let evento = new Evento();
+ this.asignarEvento(evento);
+ this.router.navigate(['/tabs']);
+ }
}
asignarEvento(evento: Evento){
evento.setNombre(this.eventoForm.get('nombre').value);
@@ -56,6 +60,30 @@ export class PromptEventoPage implements OnInit{
this.tab1Service.eventoForms.push(this.eventoForm);}
}
+
+ get nombre(){
+ return this.eventoForm.get('nombre');
+ }
+
+ get fecha(){
+ return this.eventoForm.get('fecha');
+ }
+
+ get hora(){
+ return this.eventoForm.get('hora');
+ }
+
+ get precio1() {
+ return this.eventoForm.get('precio1');
+ }
+
+ get precio2() {
+ return this.eventoForm.get('precio2');
+ }
+
+ get descripcion(){
+ return this.eventoForm.get('descripcion');
+ }
}
diff --git a/src/assets/img/1.jpeg b/src/assets/img/1.jpeg
deleted file mode 100644
index 14d8138..0000000
Binary files a/src/assets/img/1.jpeg and /dev/null differ
diff --git a/src/assets/img/2.jpg b/src/assets/img/2.jpg
deleted file mode 100644
index d09fc0b..0000000
Binary files a/src/assets/img/2.jpg and /dev/null differ
diff --git a/src/assets/img/3.jpg b/src/assets/img/3.jpg
deleted file mode 100644
index e805984..0000000
Binary files a/src/assets/img/3.jpg and /dev/null differ