Skip to content

Commit bedc8b1

Browse files
authored
Merge pull request #387 from secultce/homolog
Merge Homolog to Main
2 parents acd152a + be42a9a commit bedc8b1

File tree

8 files changed

+35
-14
lines changed

8 files changed

+35
-14
lines changed

CHANGELOG.md

+5
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@ Todas as mudanças notáveis no projeto serão documentadas neste arquivo.
44
O formato é baseado no [Keep a Changelog](https://keepachangelog.com/pt-BR/1.0.0/)
55
e este projeto adere ao [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
66

7+
## [5.9.8] - 2025-02-17
8+
### Modificado
9+
- Atualizando a referência do plugin de Recurso
10+
- Corrigido textos da Prestação de Contas
11+
712
## [5.9.7] - 2025-02-10
813
### Modificado
914
- Ativação para LGPD

src/protected/application/lib/MapasCulturais/Entities/Registration.php

+11-2
Original file line numberDiff line numberDiff line change
@@ -336,8 +336,8 @@ function jsonSerialize() {
336336
}else{
337337
$json = null;
338338
}
339-
340-
if($this->canUser("viewUserEvaluation") && !$this->canUser("@control")){
339+
340+
if($this->canUser("viewUserEvaluation") && !$this->canUser("@control") && !$this->canSeeRecources()){
341341
$checkList = 'projectName,category,files,field,owner';
342342
$values = ['files' => []];
343343

@@ -373,6 +373,15 @@ function jsonSerialize() {
373373
return $values;
374374
}
375375

376+
private function canSeeRecources()
377+
{
378+
$uri = $_SERVER["REQUEST_URI"];
379+
380+
if (str_contains($uri, 'recursos') && str_contains($uri, 'todos') && $this->canUser("viewUserEvaluation")) return true;
381+
382+
return false;
383+
}
384+
376385
public function canSee($key)
377386
{
378387
$avaliableEvaluationFields = ($this->opportunity->avaliableEvaluationFields != "null") ? $this->opportunity->avaliableEvaluationFields : [];

src/protected/application/lib/modules/Diligence/assets/js/multi/multi.js

+6-1
Original file line numberDiff line numberDiff line change
@@ -41,11 +41,16 @@ $(document).ready(function () {
4141
//Retornando o valor da situação
4242
getSituacion();
4343
$( "#situacion-refo-multi" ).on( "change", function(e) {
44+
4445
sendSituacion(e.target.value);
4546
$("#label-status-actual").html($(this).find("option:selected").text());
47+
if(e.target.value == 'disapproved' ) {
48+
$("#btn-generate-tado").hide();
49+
}else{
50+
$("#btn-generate-tado").show();
51+
}
4652
$(".multi-itens-select").show();
4753
$("#p-btn-tado").show();
48-
4954
});
5055

5156
$('#import-financial-report .mc-submit').on('click', () => {

src/protected/application/lib/modules/Diligence/layouts/parts/multi/multi-select.php

+6-4
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@
77
<select name="" id="situacion-refo-multi" class="form-control-multi">
88
<option value="all" disabled selected>-- Selecione --</option>
99
<option value="under_analysis">Em Análise</option>
10-
<option value="approved">Aprovada</option>
11-
<option value="partially">Parcialmente aprovada</option>
12-
<option value="disapproved">Reprovada</option>
10+
<option value="approved">Regular</option>
11+
<option value="partially">Regular com ressalva</option>
12+
<option value="disapproved">Irregular</option>
1313
</select>
1414
</div>
1515

@@ -28,7 +28,9 @@
2828
</p>
2929

3030
<p style="text-align: center;width: 100%; margin-bottom: 15px" id="p-btn-tado">
31-
<a href="<?= $app->createUrl('tado', 'emitir/' . $reg->id); ?>" target="_blank" class="btn btn-primary" title="Gera o relatório TADO" style="display: block;">
31+
<a href="<?= $app->createUrl('tado', 'emitir/' . $reg->id); ?>"
32+
id="btn-generate-tado"
33+
target="_blank" class="btn btn-primary" title="Gera o relatório TADO" style="display: block;">
3234
Finalizar e emitir TADO
3335
</a>
3436
</p>

src/protected/application/themes/BaseV1/layouts/parts/singles/registration-single--header.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
<?php
22
$entity = $this->controller->requestedEntity;
3-
$sentDate = $entity->sentTimestamp;
3+
$sentDate = $entity->sentTimestamp;
4+
if(!$entity->opportunity->getMetadata('use_multiple_diligence')) :
45
?>
5-
66
<h3 class="registration-header"><?php \MapasCulturais\i::_e("Formulário de Inscrição");?></h3>
7-
7+
<?php endif; ?>
88
<?php $this->applyTemplateHook('header-fieldset', 'before');?>
99
<div class="registration-fieldset clearfix">
1010

src/protected/application/themes/BaseV1/views/pdf/footer-pdf.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
<label for="">
88
<strong>Secretaria da Cultura do Ceara</strong>
99
</label><br>
10-
<label for="">Rua Major Facundo, 500 - Centro. CEP: 60.025-100</label><br>
11-
<label for="">Fortaleza/CE. Fone: (85) 31016767</label>
10+
<label for="">Rua Dr. João Moreira, 500 - Centro. CEP: 60.030-000</label><br>
11+
<label for="">Fortaleza/CE. Fone: (85) 981152400</label>
1212
</p>
1313
</div>
1414
<img

version.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
5.9.7
1+
5.9.8

0 commit comments

Comments
 (0)