-
Notifications
You must be signed in to change notification settings - Fork 0
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 #11 from secultce/feat/config-options-for-publishi…
…ng-opinions Adicionada configuração para publicar manualmente os pareceres.
- Loading branch information
Showing
7 changed files
with
183 additions
and
40 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
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
18 changes: 18 additions & 0 deletions
18
layouts/parts/OpinionManagement/admin-btn-publish-opinions.php
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,18 @@ | ||
<?php | ||
/** @var \MapasCulturais\Entities\Opportunity $opportunity */ | ||
?> | ||
<?php $this->applyTemplateHook('opinions-section','before'); ?> | ||
<section class="opinions-section"> | ||
<h3>Pareceres</h3> | ||
<div> | ||
<?php $this->applyTemplateHook('opinions-section.buttons','begin'); ?> | ||
<button | ||
class="btn btn-primary" | ||
onclick="publishOpinions(this)" | ||
data-id="<?= $opportunity->id ?>" | ||
><?= \MapasCulturais\i::__('Publicar Pareceres') ?></button> | ||
<?php $this->applyTemplateHook('opinions-section.buttons','end'); ?> | ||
</div> | ||
<hr> | ||
</section> | ||
<?php $this->applyTemplateHook('opinions-section','after'); ?> |
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 @@ | ||
<style> | ||
#opinions-config:has(~ #evaluations-config[style="display: none;"]) { | ||
display: none; | ||
} | ||
</style> | ||
|
||
<div id="opinions-config" class="registration-fieldset"> | ||
<h4>Publicação de Pareceres</h4> | ||
<p>Deseja que os pareceres desta fase/oportunidade sejam publicados para os proponentes automaticamente ao publicar os resultados?</p> | ||
<span | ||
class="js-editable editable editable-click editable-unsaved" | ||
data-edit="autopublishOpinions" | ||
data-original-title="Publicar pareceres automaticamente" | ||
data-value="<?= /** @var \MapasCulturais\Entities\Opportunity $opportunity */ | ||
$opportunity->getMetadata('autopublishOpinions') ?>" | ||
> | ||
<?= $opportunity->getMetadata('autopublishOpinions') ?> | ||
</span> | ||
<br><br> | ||
<em>Caso marque "Não" aparecerá um botão para publicar pareceres manualmente na aba de inscrições.</em> | ||
</div> |