Skip to content

Commit

Permalink
add costs-statistic.component
Browse files Browse the repository at this point in the history
  • Loading branch information
Filippov committed Aug 4, 2017
1 parent 9318aab commit 94292f2
Show file tree
Hide file tree
Showing 6 changed files with 35 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<md-card class="costs-statistics">
<md-card-header>
<md-card-title>Статистика:</md-card-title>
<md-card-subtitle></md-card-subtitle>
</md-card-header>
<md-card-content>

</md-card-content>
</md-card>
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
.costs-statistics {
margin-top: 7px;
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import {Component} from "@angular/core";

@Component({
selector: 'costs-statistic',
templateUrl: './costs-statistic.component.html',
styleUrls: ['./costs-statistic.component.scss']
})
export class CostsStatisticComponent {
constructor() {
}
}
3 changes: 3 additions & 0 deletions src/app/modules/finance/components/costs/costs.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
<md-card class="app-header">
<h3>Финансы</h3>
</md-card>
<div class="app-statistics">
<costs-statistic></costs-statistic>
</div>
<div class="app-content">
<costs-list (costEdited)="requestModifiedData()" (costDeleted)="requestModifiedData()"></costs-list>
<costs-chart></costs-chart>
Expand Down
4 changes: 4 additions & 0 deletions src/app/modules/finance/components/costs/costs.component.scss
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
.app-statistics {
display: grid;
grid-template-columns: auto;
}
.app-content {
display: grid;
margin-top: 7px;
Expand Down
8 changes: 5 additions & 3 deletions src/app/modules/finance/finance.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import {CostsChartLayoutComponent} from "./components/costs-chart-layout/costs-c
import {CostsListComponent} from "./components/costs-list/costs-list.component";
import {CostsChartComponent} from "./components/costs-chart/costs-chart.component";
import {CostsService} from "./services/costs.service";

import {
MdButtonModule,
MdIconModule,
Expand All @@ -27,6 +26,7 @@ import {CommonModule} from "@angular/common";
import {ReactiveFormsModule} from "@angular/forms";
import {AddCostDialogComponent} from "./components/add-cost-dialog/add-cost-dialog.component";
import {EditCostDialogComponent} from "./components/edit-cost-dialog/edit-cost-dialog.component";
import {CostsStatisticComponent} from "./components/costs-statistic/costs-statistic.component";

@NgModule({
imports: [
Expand All @@ -53,7 +53,8 @@ import {EditCostDialogComponent} from "./components/edit-cost-dialog/edit-cost-d
CostsComponent,
CostsChartLayoutComponent,
CostsListComponent,
CostsChartComponent
CostsChartComponent,
CostsStatisticComponent
],
declarations: [
CostsComponent,
Expand All @@ -64,7 +65,8 @@ import {EditCostDialogComponent} from "./components/edit-cost-dialog/edit-cost-d
CostsChartComponent,
Spinner,
AddCostDialogComponent,
EditCostDialogComponent
EditCostDialogComponent,
CostsStatisticComponent
],
entryComponents: [
Spinner,
Expand Down

0 comments on commit 94292f2

Please sign in to comment.