Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
15 changed files
with
402 additions
and
15 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Empty file.
3 changes: 3 additions & 0 deletions
3
src/app/main/components/task-overall-actions/task-overall-actions.component.html
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
<div class="btn-group" role="group" aria-label="Actions"> | ||
<button type="button" class="btn btn-secondary" title="Get the latest data" (click)="refresh()"><fa [name]="'refresh'"></fa></button> | ||
</div> |
28 changes: 28 additions & 0 deletions
28
src/app/main/components/task-overall-actions/task-overall-actions.component.spec.ts
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
/* tslint:disable:no-unused-variable */ | ||
import { async, ComponentFixture, TestBed } from '@angular/core/testing'; | ||
import { By } from '@angular/platform-browser'; | ||
import { DebugElement } from '@angular/core'; | ||
|
||
import { TaskOverallActionsComponent } from './task-overall-actions.component'; | ||
|
||
describe('TaskOverallActionsComponent', () => { | ||
let component: TaskOverallActionsComponent; | ||
let fixture: ComponentFixture<TaskOverallActionsComponent>; | ||
|
||
beforeEach(async(() => { | ||
TestBed.configureTestingModule({ | ||
declarations: [ TaskOverallActionsComponent ] | ||
}) | ||
.compileComponents(); | ||
})); | ||
|
||
beforeEach(() => { | ||
fixture = TestBed.createComponent(TaskOverallActionsComponent); | ||
component = fixture.componentInstance; | ||
fixture.detectChanges(); | ||
}); | ||
|
||
it('should create', () => { | ||
expect(component).toBeTruthy(); | ||
}); | ||
}); |
15 changes: 15 additions & 0 deletions
15
src/app/main/components/task-overall-actions/task-overall-actions.component.ts
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import { Component, Input } from '@angular/core'; | ||
import { TasksComponent } from '../tasks/tasks.component'; | ||
|
||
@Component({ | ||
selector: 'app-task-overall-actions', | ||
templateUrl: './task-overall-actions.component.html', | ||
styleUrls: ['./task-overall-actions.component.css'] | ||
}) | ||
export class TaskOverallActionsComponent { | ||
@Input() grid: TasksComponent; | ||
|
||
refresh(): void { | ||
this.grid.refresh(); | ||
} | ||
} |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
:host /deep/ app-task-overall-actions .btn-group { | ||
padding-top: 0px; | ||
} | ||
|
||
.board { | ||
margin-top: 10px; | ||
margin-bottom: 10px; | ||
} | ||
|
||
.row { | ||
margin-left: 0px; | ||
margin-right: 0px; | ||
width: 100%; | ||
} | ||
|
||
.row:first-child { | ||
border-top: 1px solid grey; | ||
} | ||
|
||
.square { | ||
border-right: 1px solid grey; | ||
border-bottom: 1px solid grey; | ||
padding-left: 5px; | ||
padding-right: 5px; | ||
padding-bottom: 5px; | ||
width: 20%; | ||
} | ||
|
||
.square:first-child { | ||
border-left: 1px solid grey; | ||
padding-top: 5px; | ||
} | ||
|
||
.title { | ||
text-align: center; | ||
font-weight: bold; | ||
} | ||
|
||
.task { | ||
display: block; | ||
width: 100%; | ||
border: 1px solid grey; | ||
padding: 5px; | ||
margin-top: 5px; | ||
cursor: pointer; | ||
} | ||
|
||
.owner { | ||
display: block; | ||
font-style: italic; | ||
} |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
<div class="container-fluid" > | ||
<app-header></app-header> | ||
<app-task-overall-actions [grid]="this"></app-task-overall-actions> | ||
<div class="action-bar"> | ||
<select name="team" [(ngModel)]="team" *ngIf="teams.length>3" (change)="updateNavigation()"> | ||
<option *ngFor="let team of teams" [value]="team.id"> | ||
{{team.name}} | ||
</option> | ||
</select> | ||
</div> | ||
<template ngbModalContainer></template> | ||
<table class="board"> | ||
<tr class="row"> | ||
<th class="square title">Story</th> | ||
<th class="square title">Not Started</th> | ||
<th class="square title">Blocked</th> | ||
<th class="square title">In Progress</th> | ||
<th class="square title">Done</th> | ||
</tr> | ||
<tr *ngFor="let story of stories" class="row" [attr.story]="story.id"> | ||
<td class="square story">{{story.name}}</td> | ||
<td class="square droppable" valign="top" [attr.status]="0"> | ||
<span *ngFor="let task of story.tasks | filter: {status_code: 0}" class="task" [attr.story]="story.id" [attr.task]="task.id"> | ||
<span class="name">{{task.name}}</span> | ||
<span class="owner" *ngIf="task.individual_name != null">{{task.individual_name}}</span> | ||
</span> | ||
</td> | ||
<td class="square droppable" valign="top" [attr.status]="2"> | ||
<span *ngFor="let task of story.tasks | filter: {status_code: 2}" class="task" [attr.story]="story.id" [attr.task]="task.id"> | ||
<span class="name">{{task.name}}</span> | ||
<span class="owner" *ngIf="task.individual_name != null">{{task.individual_name}}</span> | ||
</span> | ||
</td> | ||
<td class="square droppable" valign="top" [attr.status]="1"> | ||
<span *ngFor="let task of story.tasks | filter: {status_code: 1}" class="task" [attr.story]="story.id" [attr.task]="task.id"> | ||
<span class="name">{{task.name}}</span> | ||
<span class="owner" *ngIf="task.individual_name != null">{{task.individual_name}}</span> | ||
</span> | ||
</td> | ||
<td class="square droppable" valign="top" [attr.status]="3"> | ||
<span *ngFor="let task of story.tasks | filter: {status_code: 3}" class="task" [attr.story]="story.id" [attr.task]="task.id"> | ||
<span class="name">{{task.name}}</span> | ||
<span class="owner" *ngIf="task.individual_name != null">{{task.individual_name}}</span> | ||
</span> | ||
</td> | ||
</tr> | ||
</table> | ||
</div> |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
/* tslint:disable:no-unused-variable */ | ||
import { async, ComponentFixture, TestBed } from '@angular/core/testing'; | ||
import { By } from '@angular/platform-browser'; | ||
import { DebugElement } from '@angular/core'; | ||
|
||
import { TasksComponent } from './tasks.component'; | ||
|
||
describe('TasksComponent', () => { | ||
let component: TasksComponent; | ||
let fixture: ComponentFixture<TasksComponent>; | ||
|
||
beforeEach(async(() => { | ||
TestBed.configureTestingModule({ | ||
declarations: [ TasksComponent ] | ||
}) | ||
.compileComponents(); | ||
})); | ||
|
||
beforeEach(() => { | ||
fixture = TestBed.createComponent(TasksComponent); | ||
component = fixture.componentInstance; | ||
fixture.detectChanges(); | ||
}); | ||
|
||
it('should create', () => { | ||
expect(component).toBeTruthy(); | ||
}); | ||
}); |
Oops, something went wrong.