Skip to content

Commit

Permalink
Mudança da coluna ações dos grids
Browse files Browse the repository at this point in the history
  • Loading branch information
andrepenteado committed May 16, 2024
1 parent 31fc7fe commit 8659f58
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 17 deletions.
2 changes: 1 addition & 1 deletion frontend/controle/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"ng": "ng",
"start": "ng serve",
"build": "ng build",
"watch": "ng build --watch --configuration development",
"watch": "ng build --watch --configuration localhost",
"test": "ng test"
},
"private": true,
Expand Down
2 changes: 1 addition & 1 deletion frontend/controle/src/app/etc/routes.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { AcessoNegadoComponent, ErroProcessamentoComponent, PaginaInicialComponent } from "@andrepenteado/ngx-apcore"
import { Routes } from "@angular/router"
import { AcessoNegadoComponent, autorizarPerfilGuard, ErroProcessamentoComponent, PaginaInicialComponent } from "@andrepenteado/ngx-apcore"

export const DECORATED_ROUTES: Routes = [

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,21 +16,21 @@
<table id="datatable-pesquisar-sistema" class="table table-styling table-striped align-middle nowrap w-100">
<thead>
<tr>
<th scope="col" class="text-center">Ações</th>
<th scope="col">Sigla</th>
<th scope="col">Descrição</th>
<th scope="col" class="text-center">Ações</th>
</tr>
</thead>
<tbody>
<tr *ngFor="let sistema of this.lista ">
<td>{{ sistema.id }}</td>
<td>{{ sistema.descricao }}</td>
<td class="text-center">
<div class="btn-group">
<button class="btn btn-success btn-sm" (click)="editar(sistema)"><i class="bi bi-pencil"></i></button>
<button class="btn btn-danger btn-sm" (click)="excluir(sistema)"><i class="bi bi-trash"></i></button>
</div>
</td>
<td>{{ sistema.id }}</td>
<td>{{ sistema.descricao }}</td>
</tr>
</tbody>
</table>
Expand Down
4 changes: 1 addition & 3 deletions frontend/controle/src/app/modules/sistema/sistema.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,9 @@ import { CommonModule } from '@angular/common';
import { SistemaRoutingModule } from './sistema-routing.module';
import { PesquisarComponent } from './pesquisar/pesquisar.component';
import { CadastroComponent } from './cadastro/cadastro.component';
import { DataTablesModule } from 'angular-datatables';
import { ReactiveFormsModule } from "@angular/forms"
import { NgxLoadingModule } from "ngx-loading"
import { NgxApcoreModule } from "@andrepenteado/ngx-apcore"
import { NgxLoadingModule } from "ngx-loading"


@NgModule({
Expand All @@ -18,7 +17,6 @@ import { NgxApcoreModule } from "@andrepenteado/ngx-apcore"
imports: [
CommonModule,
SistemaRoutingModule,
DataTablesModule,
ReactiveFormsModule,
NgxLoadingModule.forRoot({}),
NgxApcoreModule
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,23 +16,23 @@
<table id="datatable-pesquisar-usuario" class="table table-styling table-striped align-middle nowrap w-100">
<thead>
<tr>
<th scope="col" class="text-center">Ações</th>
<th scope="col" class="text-center">Username</th>
<th scope="col" class="text-start">Nome</th>
<th scope="col" class="text-center">CPF</th>
<th scope="col" class="text-center">Ações</th>
</tr>
</thead>
<tbody>
<td class="text-center">
<div class="btn-group">
<button class="btn btn-success btn-sm" (click)="editar(usuario)"><i class="bi bi-pencil"></i></button>
<button class="btn btn-danger btn-sm" (click)="excluir(usuario)"><i class="bi bi-trash"></i></button>
</div>
</td>
<tr *ngFor="let usuario of this.lista ">
<td class="text-center">{{ usuario.username }}</td>
<td class="text-start">{{ usuario.nome }}</td>
<td class="text-center">{{ usuario.cpf }}</td>
<td class="text-center">
<div class="btn-group">
<button class="btn btn-success btn-sm" (click)="editar(usuario)"><i class="bi bi-pencil"></i></button>
<button class="btn btn-danger btn-sm" (click)="excluir(usuario)"><i class="bi bi-trash"></i></button>
</div>
</td>
</tr>
</tbody>
</table>
Expand Down
2 changes: 0 additions & 2 deletions frontend/controle/src/app/modules/usuario/usuario.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import { CommonModule } from '@angular/common';
import { UsuarioRoutingModule } from './usuario-routing.module';
import { CadastroComponent } from './cadastro/cadastro.component';
import { PesquisarComponent } from './pesquisar/pesquisar.component';
import { DataTablesModule } from 'angular-datatables';
import { NgxLoadingModule } from "ngx-loading"
import { ReactiveFormsModule } from "@angular/forms"
import { NgxApcoreModule } from "@andrepenteado/ngx-apcore"
Expand All @@ -18,7 +17,6 @@ import { NgxApcoreModule } from "@andrepenteado/ngx-apcore"
imports: [
CommonModule,
UsuarioRoutingModule,
DataTablesModule,
ReactiveFormsModule,
NgxLoadingModule.forRoot({}),
NgxApcoreModule
Expand Down

0 comments on commit 8659f58

Please sign in to comment.