Use ng2-materialize in account module.

This commit is contained in:
Alexis Lahouze 2017-08-27 20:02:08 +02:00
parent b5abe44bd9
commit 8fcbef9b5a
3 changed files with 7 additions and 5 deletions

View File

@ -9,6 +9,7 @@ import { RouterModule } from '@angular/router';
import { NgLoggerModule, Level } from '@nsalaun/ng-logger'; import { NgLoggerModule, Level } from '@nsalaun/ng-logger';
import { NgbModule } from '@ng-bootstrap/ng-bootstrap'; import { NgbModule } from '@ng-bootstrap/ng-bootstrap';
import { ToastrModule } from 'ngx-toastr'; import { ToastrModule } from 'ngx-toastr';
import { MaterializeModule } from 'ng2-materialize';
import { AccountService } from './account.service'; import { AccountService } from './account.service';
import { AccountBalancesService } from './accountBalances.service'; import { AccountBalancesService } from './accountBalances.service';
@ -30,7 +31,8 @@ import { AccountListState } from './account.states'
]), ]),
NgLoggerModule, NgLoggerModule,
ToastrModule, ToastrModule,
NgbModule NgbModule,
MaterializeModule,
], ],
providers: [ providers: [
AccountService, AccountService,

View File

@ -30,7 +30,7 @@ import { AccountEditModalComponent } from './accountEditModal.component';
<tbody> <tbody>
<tr> <tr>
<td colspan="5"> <td colspan="5">
<button class="btn waves-effect green lighten-2" (click)="add()"> <button mz-button class="green" (click)="add()">
Ajouter Ajouter
</button> </button>
</td> </td>

View File

@ -46,19 +46,19 @@ import { AccountEditModalComponent } from './accountEditModal.component';
<td> <td>
<!-- Edit account. --> <!-- Edit account. -->
<button type="button" class="btn-floating green lighten-2" <button mz-button [float]="true" class="green"
(click)="modify()"> (click)="modify()">
<span class="fa fa-pencil-square-o"></span> <span class="fa fa-pencil-square-o"></span>
</button> </button>
<!-- Delete account, with confirm. --> <!-- Delete account, with confirm. -->
<button type="button" class="btn-floating red lighten-2" <button mz-button [float]="true" class="red"
(click)="confirmDelete()"> (click)="confirmDelete()">
<span class="fa fa-trash-o"></span> <span class="fa fa-trash-o"></span>
</button> </button>
<!-- Open account scheduler. --> <!-- Open account scheduler. -->
<button class="btn-floating" <button mz-button [float]="true"
[hidden]="!account.id" [hidden]="!account.id"
[routerLink]="['/account', account.id, 'scheduler']"> [routerLink]="['/account', account.id, 'scheduler']">
<span class="fa fa-clock-o"></span> <span class="fa fa-clock-o"></span>