Skip to content

Commit 890b93f

Browse files
Little changes in component 2 and 3.
1 parent 1108a14 commit 890b93f

File tree

5 files changed

+21
-7
lines changed

5 files changed

+21
-7
lines changed

angular/wallypop/src/app/components/article/AddArticle.component.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ <h3 class="text-info">Busca la categoría donde verán tu anuncio</h3>
1515
<div class="form-group">
1616
<select class="form-control" multiple name="CATEGORYS">
1717
<!-- {{#lcategory}}-->
18-
<option name="CATEGORY" value="uploadCategories($event)">"uploadCategories($event)"</option>
18+
<option name="CATEGORY" value="showCategories($event)">"showCategories($event)"</option>
1919
<!-- {{/lcategory}} -->
2020
</select>
2121
</div>

angular/wallypop/src/app/components/article/AddArticle.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ export class AddArticle {
1818
}
1919
/*
2020
* ESTE METODO HAY QUE DESCOMENTARLO CUANDO SE HAGA EL MERGE CON LA RAMA CATEGORY
21-
uploadCategories(event: any): Observable<Category[]> {
21+
showCategories(event: any): Observable<Category[]> {
2222
event.preventDefault();
2323
this.articleService.addArticle(title,description,city, price, postal_code);
2424
}

angular/wallypop/src/app/components/article/AllArticlesWebPagination.component.html

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,9 @@
2424
<div class="form-group">
2525
<select class="form-control" name="id_category">
2626
<option disabled selected>Selecciona una categoría</option>
27-
<!--{{#lcategory}}-->
28-
<option name="CATEGORY" value="{{ID_CATEGORY}}">{{TITLE}}</option>
29-
<!-- {{/lcategory}-->
27+
<!-- {{#lcategory}}-->
28+
<option name="CATEGORY" value="showCategories($event)">"showCategories($event)"</option>
29+
<!-- {{/lcategory}} -->
3030
</select>
3131
</div>
3232
<p class="text-center">
@@ -47,7 +47,7 @@
4747
<div class="full-width">
4848
<ol class="breadcrumb">
4949
<!-- {{#lcategory}}-->
50-
<li><a href="/commercial/{{ID_CATEGORY}}">{{TITLE}}</a></li>
50+
<!-- <li><a href="/commercial/{{ID_CATEGORY}}">{{TITLE}}</a></li> -->
5151
<!--{{/lcategory}}-->
5252
</ol>
5353
</div>
@@ -57,6 +57,7 @@
5757
<i class="fa fa-angle-right btn btn-default"></i>
5858
</div>
5959
<!--{{>article}}-->
60+
6061
<div class="clearfix"></div>
6162
<nav class="text-center">
6263
<ul class="pagination">
@@ -81,4 +82,4 @@
8182
</div>
8283
</div>
8384
</section>
84-
{{>footer}}
85+
<!-- {{>footer}} -->

angular/wallypop/src/app/components/article/ArticlesUserPagination.component.html

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,17 @@
1515
<i aria-hidden="true" class="fa fa-heart-o fa-fw"></i> FAVORITOS
1616
</a>
1717
<!--{{#admin}}-->
18+
<p class="full-width"><small *ngIf="loginService.isLogged() && loginService.isAdmin()">ADMIN</small></p>
19+
1820
<a class="list-group-item" href="/category">
1921
<i aria-hidden="true" class="fa fa-object-group fa-fw"></i> GESTIÓN CATEGORÃ-AS
2022
</a>
2123
<a class="list-group-item" href="/reports">
2224
<i aria-hidden="true" class="fa fa-object-group fa-fw"></i> GESTIÓN REPORTES
2325
</a>
2426
<!--{{/admin}}-->
27+
<p class="full-width"><small *ngIf="loginService.isLogged() && loginService.isAdmin()">ADMIN</small></p>
28+
2529
<div></div>
2630
<div></div>
2731
<!--<p style="color: forestgreen;">
@@ -66,9 +70,11 @@
6670
<!--</div>-->
6771
<!--</div>-->
6872
<!--</section>-->
73+
<!--
6974
<script>
7075
$(document).ready(function () {
7176
$('.full-width container-post').load('./paginacionArticulosPublicados.html');
7277
});
7378
</script>
79+
-->
7480
<!--{{>footer}}-->

angular/wallypop/src/app/components/article/ModifyArticle.component.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,11 @@ export class ModifyArticle {
2020
event.preventDefault();
2121
this.articleService.updateArticle(article);
2222
}
23+
/**
24+
ESTE METODO HAY QUE DESCOMENTARLO CUANDO SE HAGA EL MERGE CON LA RAMA CATEGORY
25+
getCategoriesArticle(event: any, article: Article): void {
26+
event.preventDefault();
27+
this.articleService.getCategoriesArticle(article);
28+
}
29+
*/
2330
}

0 commit comments

Comments
 (0)