Skip to content

Commit

Permalink
Criação do componente contribuicao_documento.php [Issue #767]
Browse files Browse the repository at this point in the history
  • Loading branch information
GabrielPintoSouza committed Nov 18, 2024
1 parent cdf667a commit ab03b38
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 35 deletions.
45 changes: 10 additions & 35 deletions html/apoio/view/boleto.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,53 +10,28 @@
<div class="wrap-contact100">

<span id="logo_img">
<?php
if (!is_null($brand)) {
echo $brand->getImagem()->getHtml();
}
<?php
if (!is_null($brand)) {
echo $brand->getImagem()->getHtml();
}
?>
</span>
<span class="contact100-form-title" id="titulo_pag">
<?php
if (!is_null($brand)) {
echo $brand->getMensagem();
}
<?php
if (!is_null($brand)) {
echo $brand->getMensagem();
}
?>
</span>

<input type="hidden" name="forma-contribuicao" id="forma-contribuicao" value="boleto">

<div id="pag1" class="wrap-input100">
<?php include('./components/contribuicao_valor.php');?>
<?php include('./components/contribuicao_valor.php'); ?>
</div>

<div id="pag2" class="wrap-input100">

<div class="centralizar">
<input class="radio" type="radio" id="op_cpf" value="fisica" name="opcao" checked><label class="label" for="op_cpf">PESSOA FÍSICA</label>
<input class="radio" type="radio" id="op_cnpj" value="juridica" name="opcao"><label class="label" for="op_cnpj">PESSOA JURÍDICA</label><br><br>
</div>

<div id="cpf" class="wrap-input100 validate-input bg1" data-validate="Digite um documento válido!">
<span class="label-input100">Digite um documento CPF*</span>
<input class="input100" type="text" name="dcpf" id="dcpf" class="text required" placeholder="Ex: 222.222.222-22" onkeyup="return Onlynumbers(event)" onkeypress="mascara('###.###.###-##',this,event)" maxlength="14" required><span id="avisa_cpf"></span>
</div>

<div id="cnpj" class="wrap-input100 validate-input bg1 hidden" data-validate="Digite um documento válido!">
<span class="label-input100"> Digite um documento CNPJ *</span>
<input class="input100" type="text" name="dcpf" id="dcnpj" maxlength="18" class="form-control input-md" ng-m placeholder="Ex: 22.222.222/2222-22" onkeypress="mascara('##.###.###/####-##',this,event)"><span id="avisa_cnpj"></span>
</div>
<div class="container-contact100-form-btn">
<button class="contact100-form-btn" id="consultar-btn">
AVANÇAR
<i class="fa fa-long-arrow-right m-l-7" aria-hidden="true"></i>
</button>
</div>
<div class="container-contact100-form-btn">
<button class="contact100-form-btn" id="voltar-btn">
<i style="margin-right: 15px; " class="fa fa-long-arrow-left m-l-7" aria-hidden="true"></i> VOLTAR
</button>
</div>
<?php include('./components/contribuicao_documento.php'); ?>
</div>
</div>

Expand Down
25 changes: 25 additions & 0 deletions html/apoio/view/components/contribuicao_documento.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
<div class="centralizar">
<input class="radio" type="radio" id="op_cpf" value="fisica" name="opcao" checked><label class="label" for="op_cpf">PESSOA FÍSICA</label>
<input class="radio" type="radio" id="op_cnpj" value="juridica" name="opcao"><label class="label" for="op_cnpj">PESSOA JURÍDICA</label><br><br>
</div>
<div id="cpf" class="wrap-input100 validate-input bg1" data-validate="Digite um documento válido!">
<span class="label-input100">Digite um documento CPF*</span>
<input class="input100" type="text" name="dcpf" id="dcpf" class="text required" placeholder="Ex: 222.222.222-22" onkeyup="return Onlynumbers(event)" onkeypress="mascara('###.###.###-##',this,event)" maxlength="14" required><span id="avisa_cpf"></span>
</div>
<div id="cnpj" class="wrap-input100 validate-input bg1 hidden" data-validate="Digite um documento válido!">
<span class="label-input100"> Digite um documento CNPJ *</span>
<input class="input100" type="text" name="dcpf" id="dcnpj" maxlength="18" class="form-control input-md" ng-m placeholder="Ex: 22.222.222/2222-22" onkeypress="mascara('##.###.###/####-##',this,event)"><span id="avisa_cnpj"></span>
</div>
<div class="container-contact100-form-btn">
<button class="contact100-form-btn" id="consultar-btn">
AVANÇAR
<i class="fa fa-long-arrow-right m-l-7" aria-hidden="true"></i>
</button>
</div>
<div class="container-contact100-form-btn">
<button class="contact100-form-btn" id="voltar-btn">
<i style="margin-right: 15px; " class="fa fa-long-arrow-left m-l-7" aria-hidden="true"></i> VOLTAR
</button>
</div>

0 comments on commit ab03b38

Please sign in to comment.