Skip to content

Commit

Permalink
Insere segmento cultural no cadastro dos agentes Ref.: #13
Browse files Browse the repository at this point in the history
  • Loading branch information
LimaSystem committed Oct 1, 2024
1 parent 6df3677 commit b599ce8
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 0 deletions.
11 changes: 11 additions & 0 deletions plugins/SettingsPa/Plugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,17 @@ public function _init()
$this->addTaxonoyTermsToJs("segmento");
});

$app->hook("template(agent.single.<<single1|single2>>-entity-info-taxonomie-area):after", function () use($app) {
/** @var \MapasCulturais\Themes\BaseV2\Theme $this */
$this->part('registration-fields/cultural-segment',['isEditable' => false ]);
});

$app->hook("template(agent.edit.<<edit1|edit2>>-entity-info-taxonomie-area):after", function () use($app) {
/** @var \MapasCulturais\Themes\BaseV2\Theme $this */
$this->part('registration-fields/cultural-segment',['isEditable' => true ]);
});


/**
* Insere conteúdo na HOME
*/
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<?php

use MapasCulturais\i;

/**
* @var MapasCulturais\App $app
* @var MapasCulturais\Themes\BaseV2\Theme $this
*/

$this->import(
'entity-terms'
);
?>
<entity-terms :entity="entity" taxonomy="segmento" :editable="<?=$isEditable?>" classes="col-12" title="<?php i::_e('Segmento cultural'); ?>" ></entity-terms>

0 comments on commit b599ce8

Please sign in to comment.