Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merge Homolog to Main #387

Merged
merged 8 commits into from
Feb 17, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@ Todas as mudanças notáveis no projeto serão documentadas neste arquivo.
O formato é baseado no [Keep a Changelog](https://keepachangelog.com/pt-BR/1.0.0/)
e este projeto adere ao [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [5.9.8] - 2025-02-17
### Modificado
- Atualizando a referência do plugin de Recurso
- Corrigido textos da Prestação de Contas

## [5.9.7] - 2025-02-10
### Modificado
- Ativação para LGPD
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -336,8 +336,8 @@ function jsonSerialize() {
}else{
$json = null;
}
if($this->canUser("viewUserEvaluation") && !$this->canUser("@control")){

if($this->canUser("viewUserEvaluation") && !$this->canUser("@control") && !$this->canSeeRecources()){
$checkList = 'projectName,category,files,field,owner';
$values = ['files' => []];

Expand Down Expand Up @@ -373,6 +373,15 @@ function jsonSerialize() {
return $values;
}

private function canSeeRecources()
{
$uri = $_SERVER["REQUEST_URI"];

if (str_contains($uri, 'recursos') && str_contains($uri, 'todos') && $this->canUser("viewUserEvaluation")) return true;

return false;
}

public function canSee($key)
{
$avaliableEvaluationFields = ($this->opportunity->avaliableEvaluationFields != "null") ? $this->opportunity->avaliableEvaluationFields : [];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,16 @@ $(document).ready(function () {
//Retornando o valor da situação
getSituacion();
$( "#situacion-refo-multi" ).on( "change", function(e) {

sendSituacion(e.target.value);
$("#label-status-actual").html($(this).find("option:selected").text());
if(e.target.value == 'disapproved' ) {
$("#btn-generate-tado").hide();
}else{
$("#btn-generate-tado").show();
}
$(".multi-itens-select").show();
$("#p-btn-tado").show();

});

$('#import-financial-report .mc-submit').on('click', () => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@
<select name="" id="situacion-refo-multi" class="form-control-multi">
<option value="all" disabled selected>-- Selecione --</option>
<option value="under_analysis">Em Análise</option>
<option value="approved">Aprovada</option>
<option value="partially">Parcialmente aprovada</option>
<option value="disapproved">Reprovada</option>
<option value="approved">Regular</option>
<option value="partially">Regular com ressalva</option>
<option value="disapproved">Irregular</option>
</select>
</div>

Expand All @@ -28,7 +28,9 @@
</p>

<p style="text-align: center;width: 100%; margin-bottom: 15px" id="p-btn-tado">
<a href="<?= $app->createUrl('tado', 'emitir/' . $reg->id); ?>" target="_blank" class="btn btn-primary" title="Gera o relatório TADO" style="display: block;">
<a href="<?= $app->createUrl('tado', 'emitir/' . $reg->id); ?>"
id="btn-generate-tado"
target="_blank" class="btn btn-primary" title="Gera o relatório TADO" style="display: block;">
Finalizar e emitir TADO
</a>
</p>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<?php
$entity = $this->controller->requestedEntity;
$sentDate = $entity->sentTimestamp;
$sentDate = $entity->sentTimestamp;
if(!$entity->opportunity->getMetadata('use_multiple_diligence')) :
?>

<h3 class="registration-header"><?php \MapasCulturais\i::_e("Formulário de Inscrição");?></h3>

<?php endif; ?>
<?php $this->applyTemplateHook('header-fieldset', 'before');?>
<div class="registration-fieldset clearfix">

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
<label for="">
<strong>Secretaria da Cultura do Ceara</strong>
</label><br>
<label for="">Rua Major Facundo, 500 - Centro. CEP: 60.025-100</label><br>
<label for="">Fortaleza/CE. Fone: (85) 31016767</label>
<label for="">Rua Dr. João Moreira, 500 - Centro. CEP: 60.030-000</label><br>
<label for="">Fortaleza/CE. Fone: (85) 981152400</label>
</p>
</div>
<img
Expand Down
2 changes: 1 addition & 1 deletion version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
5.9.7
5.9.8