Skip to content

Commit

Permalink
Merge pull request #347 from secultce/feature/redirectAba
Browse files Browse the repository at this point in the history
Redirecionamento de abas
  • Loading branch information
Junior-Shyko authored Dec 18, 2024
2 parents 6d903ea + d3261fd commit 1cb7f40
Show file tree
Hide file tree
Showing 8 changed files with 30 additions and 30 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -164,13 +164,16 @@

.btn-diligence-open-desactive {
background-color: #dfdfdf !important;
cursor: not-allowed;
cursor: not-allowed !important;
border: 1px solid #a6a6a6;
pointer-events:none;
color: white !important;
border-radius: 5px;
}

.btn-diligence-open-desactive:hover {
background-color: #dfdfdf !important;
cursor: not-allowed;
cursor: not-allowed ;
border: 1px solid #a6a6a6 !important;
box-shadow: 2px 2px 2px #a6a6a6;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,7 @@ var EntityDiligence = (function(){
{
$("#btn-open-diligence").attr('disabled', true);
$("#btn-open-diligence").addClass('btn-diligence-open-desactive');
$(".btn-diligence-open-active").addClass('btn-diligence-open-desactive');
}
//Remove o botão de abrir diligencia
function removeBtnOpenDiligence()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ $(document).ready(function () {

//Bloqueando aba para proponente
$("#li-tab-diligence-diligence > a").remove();
$("#tab-diligence-diligence").remove();

$("#li-tab-diligence-diligence").append('<label>Diligência</label>');
$("#li-tab-diligence-diligence > label").addClass('cursor-disabled');

Expand Down Expand Up @@ -60,7 +62,7 @@ $(document).ready(function () {
})

MapasCulturais.idDiligence = Math.max.apply(null, idsDiligences);
const ahref ='<a href="#diligence-diligence" rel="noopener noreferrer" onclick="hideRegistration()" id="tab-main-content-diligence-diligence">Diligência</a>';
const ahref ='<a href="#diligence-diligence" rel="noopener noreferrer" onclick="hideRegistration()" id="tab-diligence-diligence">Diligência</a>';
$("#li-tab-diligence-diligence > label").removeClass('cursor-disabled');
$("#li-tab-diligence-diligence > label").remove();
$("#li-tab-diligence-diligence").append(ahref);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,7 @@
DiligenceRepo::getIsAuditor($entity->id);

?>
<div>
<hr>
</div>
<div class="import-financial-report" style="margin-top: 15px">
<div class="import-financial-report" style="margin-top: 15px;">

<?php
//Para mostrar o botão de excluir para gestores da oportuniade
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,17 +17,13 @@
$placeHolder = "Digite aqui a sua resposta";

Carbon::setLocale('pt_BR');

$tado = RepoDiligence::getTado($context['entity']);
$this->applyTemplateHook('tabs', 'before');
$this->part('diligence/ul-buttons', ['entity' => $context['entity'], 'sendEvaluation' => $sendEvaluation]);
//Tado
$tado = RepoDiligence::getTado($context['entity']);
?>

<?php $this->applyTemplateHook('tabs', 'after'); ?>
<div class="tabs-content">
<div id="diligence-principal"></div>
<div id="diligence-diligence">
<div id="diligence-diligence" class="aba-content">
<!-- PARA O PROPONENTE -->
<?php
$diligenceType = $context['entity']->opportunity->use_multiple_diligence == 'Sim' ? 'multi' : 'common';
Expand Down Expand Up @@ -117,4 +113,4 @@
<?php endif; ?>
<!-- FIM PROPONENTE -->
</div>
</div>

Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,7 @@
$this->applyTemplateHook('tabs', 'before');
$this->part('diligence/ul-buttons', ['entity' => $context['entity'], 'sendEvaluation' => $sendEvaluation]);
?>

<div class="tabs-content">
<div id="diligence-principal"></div>
<div id="diligence-diligence">
<div id="diligence-diligence" class="aba-content">
<p id="paragraph_loading_content">
<label for="">
Carregando ... <img id="img-loading-content" />
Expand Down Expand Up @@ -129,5 +126,5 @@ class="attachment-title ng-binding ng-scope" target="_blank" rel="noopener noref
</div>
</div>
</div>
</div>

<?php $this->applyTemplateHook('tabs', 'after'); ?>
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
<ul class="abas clearfix">
<li class="active">
<a href="#diligence-principal" rel="noopener noreferrer" onclick="showRegistration()" id="tab-main-content-diligence-principal">Ficha</a>
<li class="active" id="li-tab-ficha-diligence">
<a href="#registration-content-all" rel="noopener noreferrer" onclick="showRegistration()" id="">Ficha</a>
</li>
<?php
if (!$sendEvaluation) : ?>
<li class="" id="li-tab-diligence-diligence">
<a href="#diligence-diligence" rel="noopener noreferrer" onclick="hideRegistration()" id="tab-main-content-diligence-diligence">Diligência</a>
<a href="#diligence-diligence" rel="noopener noreferrer" onclick="hideRegistration()" id="">Diligência</a>
</li>
<?php endif; ?>
<li class="" style="float: right;">
<button type="button"
<li class="" id="li-btn-opend-diligence" style="float: right;">
<a href="#diligence-diligence" rel="noopener noreferrer"
class="btn btn-primary btn-diligence-open-active"
id="btn-open-diligence"
onclick="openDiligence(0)">
Abrir Diligência
</button>
</a>
</li>
</ul>
Original file line number Diff line number Diff line change
Expand Up @@ -45,12 +45,15 @@

<article class="main-content registration" ng-controller="OpportunityController">
<?php $this->part('singles/registration--header', $_params); ?>
<?php $this->applyTemplateHook('content-diligence','begin'); ?>
<article id="diligence">

</article>


<div class="tabs-content">
<?php $this->applyTemplateHook('content-diligence','begin'); ?>

<?php $this->applyTemplateHook('content-diligence','end'); ?>
<article id="registration-content-all">

<article id="registration-content-all" class="aba-content">

<?php $this->applyTemplateHook('form','begin'); ?>

<?php $this->part('singles/registration-single--header', $_params) ?>
Expand Down Expand Up @@ -81,6 +84,7 @@

<?php $this->applyTemplateHook('form','end'); ?>
</article>
</div>
<?php $this->part('singles/registration--valuers-list', $_params) ?>
</article>
<article id="sidebars">
Expand Down

0 comments on commit 1cb7f40

Please sign in to comment.