-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2466 from prefeiturasp/develop
Posição em Develop 17/01/2025 às 10:37h
- Loading branch information
Showing
23 changed files
with
1,452 additions
and
74 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
21 changes: 21 additions & 0 deletions
21
src/componentes/sme/Parametrizacoes/Despesas/TiposDocumento/BtnAdd.js
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,21 @@ | ||
import React from "react"; | ||
import {RetornaSeTemPermissaoEdicaoPainelParametrizacoes} from "../../../Parametrizacoes/RetornaSeTemPermissaoEdicaoPainelParametrizacoes" | ||
|
||
export const BtnAdd = ({FontAwesomeIcon, faPlus, setShowModalForm, initialStateFormModal, setStateFormModal}) =>{ | ||
const TEM_PERMISSAO_EDICAO_PAINEL_PARAMETRIZACOES = RetornaSeTemPermissaoEdicaoPainelParametrizacoes() | ||
return( | ||
<div className="d-flex justify-content-end pb-4 mt-2"> | ||
<button data-qa="botao-adicionar-tipo-documento" onClick={()=>{ | ||
setStateFormModal(initialStateFormModal); | ||
setShowModalForm(true); | ||
} | ||
} type="button" className="btn btn-success mt-2" disabled={!TEM_PERMISSAO_EDICAO_PAINEL_PARAMETRIZACOES}> | ||
<FontAwesomeIcon | ||
data-qa="botao-adicionar-tipo-documento-icone" | ||
style={{fontSize: '15px', marginRight: "5", color:"#fff"}} | ||
icon={faPlus}/> | ||
Adicionar tipo de documento | ||
</button> | ||
</div> | ||
); | ||
}; |
33 changes: 33 additions & 0 deletions
33
src/componentes/sme/Parametrizacoes/Despesas/TiposDocumento/Filtros.js
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,33 @@ | ||
import React from "react"; | ||
|
||
export const Filtros = ({stateFiltros, handleChangeFiltros, handleSubmitFiltros, limpaFiltros}) => { | ||
return ( | ||
<> | ||
<form> | ||
<div className="form-row"> | ||
<div className="form-group col-md-12"> | ||
<label htmlFor="filtrar_por_nome">Filtrar por nome</label> | ||
<input | ||
data-qa="campo-filtrar-por-nome-tipo-documento" | ||
value={stateFiltros.filtrar_por_nome} | ||
onChange={(e) => handleChangeFiltros(e.target.name, e.target.value)} | ||
name='filtrar_por_nome' | ||
id="filtrar_por_nome" | ||
type="text" | ||
className="form-control" | ||
placeholder='Escreva o nome do tipo' | ||
/> | ||
</div> | ||
</div> | ||
<div className="d-flex justify-content-end mt-n2"> | ||
<button | ||
data-qa="botao-limpar-filtros-tipo-documento" | ||
onClick={() => limpaFiltros()} type="button" className="btn btn btn-outline-success mr-2">Limpar</button> | ||
<button | ||
data-qa="botao-filtrar-tipo-documento" | ||
onClick={handleSubmitFiltros} type="button" className="btn btn-success">Filtrar</button> | ||
</div> | ||
</form> | ||
</> | ||
); | ||
}; |
20 changes: 20 additions & 0 deletions
20
src/componentes/sme/Parametrizacoes/Despesas/TiposDocumento/ModalConfirmDelete.js
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,20 @@ | ||
import {ModalBootstrap} from "../../../../Globais/ModalBootstrap"; | ||
import React from "react"; | ||
|
||
export const ModalConfirmDelete = (props) => { | ||
return ( | ||
<ModalBootstrap | ||
data-qa="modal-confirmar-exclusao-tipo-documento" | ||
show={props.show} | ||
onHide={props.handleClose} | ||
titulo={props.titulo} | ||
bodyText={props.texto} | ||
primeiroBotaoOnclick={props.handleClose} | ||
primeiroBotaoTexto={props.primeiroBotaoTexto} | ||
primeiroBotaoCss={props.primeiroBotaoCss} | ||
segundoBotaoOnclick={props.onDeleteTrue} | ||
segundoBotaoCss={props.segundoBotaoCss} | ||
segundoBotaoTexto={props.segundoBotaoTexto} | ||
/> | ||
) | ||
}; |
Oops, something went wrong.