Last active
March 12, 2020 12:54
-
-
Save rakia/d571401e1dc383b5875df5069fe4d96a to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="todo-list"> | |
<div fxLayout="row wrap" fxLayoutGap="10px"> | |
<mat-card class="todo-card" *ngFor="let todo of todoList" fxFlex [class.mat-elevation-z8]> | |
<mat-card-header> | |
<div mat-card-avatar class="example-header-image"></div> | |
<mat-card-title>{{todo.id}} - {{todo.name}}</mat-card-title> | |
<mat-card-subtitle>Type: {{todo.type}}</mat-card-subtitle> | |
</mat-card-header> | |
<mat-card-content> | |
<p>{{todo.description}}</p> | |
</mat-card-content> | |
<mat-card-actions> | |
<div fxLayoutAlign="space-between"> | |
<div *ngIf="!todo.dependencies"></div> | |
<div *ngIf="todo.dependencies" class="dependencies" fxLayout="row" fxLayoutGap="5px" fxLayoutAlign="end center"> | |
<i class="material-icons">all_inclusive</i> | |
<div>{{todo.dependencies.name}}</div> | |
</div> | |
<div> | |
<button mat-icon-button color="primary" (click)="updateTodo(todo)" matTooltip="Edit TODO"> | |
<i class="material-icons">edit</i> | |
</button> | |
<button mat-icon-button color="primary" (click)="deleteTodo(todo.id)" matTooltip="Delete TODO"> | |
<i class="material-icons">delete_outline</i> | |
</button> | |
</div> | |
</div> | |
</mat-card-actions> | |
</mat-card> | |
</div> | |
<div fxLayout="row" fxLayoutAlign="end center"> | |
<button mat-icon-button color="primary" (click)="createTodo()" matTooltip="Add TODO"> | |
<i class="material-icons">add_circle</i> | |
</button> | |
</div> | |
</div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment