diff --git a/src/app/pages/add-book/add-book.component.html b/src/app/pages/add-book/add-book.component.html index 44674da..b54aec1 100644 --- a/src/app/pages/add-book/add-book.component.html +++ b/src/app/pages/add-book/add-book.component.html @@ -37,6 +37,11 @@

Agregar libro

+
+
* Debe subir todas las imagenes de una vez.
+
* Para seleccionar mas de una imagen presione CTRL + la imagen que desea subir.
+
+ diff --git a/src/app/pages/add-book/add-book.component.ts b/src/app/pages/add-book/add-book.component.ts index f0b1005..aac458e 100644 --- a/src/app/pages/add-book/add-book.component.ts +++ b/src/app/pages/add-book/add-book.component.ts @@ -85,9 +85,6 @@ export class AddBookComponent implements OnInit { book.status = 'available'; book.genres = this.selected_categories; - console.log(book.genres); - console.log(this.selected_categories); - // Guarda el libro this._dbService.addData('books', book) .then( () => { diff --git a/src/app/pages/search/search.component.html b/src/app/pages/search/search.component.html index bef0215..513918b 100644 --- a/src/app/pages/search/search.component.html +++ b/src/app/pages/search/search.component.html @@ -8,9 +8,9 @@

Libros

[src]="book.images[0]" width="60">
-
{{ book.title }}
-
{{ book.author }}
-
{{ book.language }}
+
{{ book.title | titlecase }}
+
{{ book.author | titlecase }}
+
{{ book.language | titlecase }}
Venta-Intercambio
{{ book.transaction }}
${{ book.price }}
@@ -36,8 +36,8 @@

Autores

[src]="auth.images[0]" width="60">
-
{{ auth.author }}
-
{{ auth.title }}
+
{{ auth.author | titlecase }}
+
{{ auth.title | titlecase }}
@@ -54,13 +54,13 @@
{{ auth.title }}

Dueños

@@ -90,16 +90,16 @@

Búsqueda por categoría: {{ typeInput[1] }}

[src]="cat.images[0]" width="60">
-
{{ cat.title }}
-
{{ cat.author }}
-
{{ cat.language }}
+
{{ cat.title | titlecase }}
+
{{ cat.author | titlecase }}
+
{{ cat.language | titlecase }}
Venta-Intercambio
{{ cat.transaction }}
${{ cat.price }}
${{ cat.price }}

Otras categorías a las que pertenece
-
{{ genres }}
+
{{ genres | titlecase }}
diff --git a/src/app/pages/search/search.component.ts b/src/app/pages/search/search.component.ts index 46beb8d..33cb1f7 100644 --- a/src/app/pages/search/search.component.ts +++ b/src/app/pages/search/search.component.ts @@ -71,15 +71,17 @@ export class SearchComponent implements OnInit { searchOwner(users:any[], search:string) { console.log(users); let owners = [...users].filter( data => { - + if( data.name.indexOf(search.toLowerCase()) >= 0 ) return data; }); + + console.log(owners); - for( let user of users ){ - let owner = user.name; - if( owner.indexOf(search.toLowerCase()) >= 0 ) { - owners.push(user); - } - } + // for( let user of users ){ + // let owner = user.name; + // if( owner.indexOf(search.toLowerCase()) >= 0 ) { + // owners.push(user); + // } + // } return owners; } diff --git a/src/app/register/register.component.html b/src/app/register/register.component.html index aa61205..01c109e 100644 --- a/src/app/register/register.component.html +++ b/src/app/register/register.component.html @@ -36,7 +36,7 @@

Datos de perfil

- +

El RUT es requerido

El RUT ingresado no es válido

diff --git a/src/app/shared/sidebar/sidebar.component.html b/src/app/shared/sidebar/sidebar.component.html index 02e126d..6e0bb3f 100644 --- a/src/app/shared/sidebar/sidebar.component.html +++ b/src/app/shared/sidebar/sidebar.component.html @@ -8,7 +8,7 @@ diff --git a/src/styles.css b/src/styles.css index 377c54e..6698939 100644 --- a/src/styles.css +++ b/src/styles.css @@ -145,3 +145,17 @@ flex-direction: column; box-shadow: 5px 5px 31px -6px rgba(84, 84, 84, 1); } + +.box-info-text { + background: #F2D7D5; + padding: 1.4rem; + margin-bottom: 2rem; +} +.box-info-text .info-text { + background: #F2D7D5; + width: 400px; +} + +.box-info-text .info-text span { + color: red; +} \ No newline at end of file