Skip to content

Commit

Permalink
FIX - posição da search bar na página de projetos
Browse files Browse the repository at this point in the history
  • Loading branch information
LeonardoZanotti committed Jul 16, 2024
1 parent 234e23b commit 48132c1
Show file tree
Hide file tree
Showing 9 changed files with 1,705 additions and 1,394 deletions.
1 change: 1 addition & 0 deletions src/modules/Search/components/search-filter/template.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

/**
* @var MapasCulturais\App $app
* @var MapasCulturais\Themes\BaseV2\Theme $this
Expand Down
3 changes: 2 additions & 1 deletion src/modules/Search/components/search/template.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

/**
* @var MapasCulturais\App $app
* @var MapasCulturais\Themes\BaseV2\Theme $this
Expand All @@ -21,7 +22,7 @@
<div :class="['search__header--content-left-icon', entityType+'__background']">
<mc-icon :name="entityType"></mc-icon>
</div>

<mc-title tag="h1" class="bold"> {{pageTitle}} </mc-title>
</div>

Expand Down
4 changes: 2 additions & 2 deletions src/modules/Search/views/search/project.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@
</create-project>
</template>
<template #default="{pseudoQuery}">
<div class="tabs-component__panels">
<div class="tabs-component__panels" style="margin-top: 90px;">
<div class="search__tabs--list">
<search-list :pseudo-query="pseudoQuery" type="project" select="name,type,shortDescription,files.avatar,seals,terms" >
<search-list :pseudo-query="pseudoQuery" type="project" select="name,type,shortDescription,files.avatar,seals,terms">
<template #filter>
<search-filter-project :pseudo-query="pseudoQuery"></search-filter-project>
</template>
Expand Down
17 changes: 9 additions & 8 deletions src/modules/Search/views/search/space.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php
<?php

/**
* @var MapasCulturais\App $app
* @var MapasCulturais\Themes\BaseV2\Theme $this
Expand All @@ -17,11 +18,11 @@
');

$this->breadcrumb = [
['label'=> i::__('Inicio'), 'url' => $app->createUrl('site', 'index')],
['label'=> i::__('Espaços'), 'url' => $app->createUrl('espacos')],
['label' => i::__('Inicio'), 'url' => $app->createUrl('site', 'index')],
['label' => i::__('Espaços'), 'url' => $app->createUrl('espacos')],
];
?>
<search page-title="<?php i::esc_attr_e('Espaços') ?>" entity-type="space" :initial-pseudo-query="{'term:area':[], type:[]}">
<search page-title="<?php i::esc_attr_e('Espaços') ?>" entity-type="space" :initial-pseudo-query="{'term:area':[], type:[]}">
<template #create-button>
<create-space v-if="global.auth.isLoggedIn" #default="{modal}">
<button @click="modal.open()" class="button button--primary button--icon">
Expand All @@ -30,17 +31,17 @@
</button>
</create-space>
</template>
<template #default="{pseudoQuery, changeTab}">
<template #default="{pseudoQuery, changeTab}">
<mc-tabs @changed="changeTab($event)" class="search__tabs" sync-hash>
<template #before-tablist>
<template #before-tablist>
<label class="search__tabs--before">
<?= i::_e('Visualizar como:') ?>
</label>
</label>
</template>
<?php $this->applyTemplateHook('search-tabs', 'before'); ?>
<mc-tab icon="list" label="<?php i::esc_attr_e('Lista') ?>" slug="list">
<div class="search__tabs--list">
<search-list :pseudo-query="pseudoQuery" type="space" select="name,type,shortDescription,files.avatar,seals,endereco,terms,acessibilidade" >
<search-list :pseudo-query="pseudoQuery" type="space" select="name,type,shortDescription,files.avatar,seals,endereco,terms,acessibilidade">
<template #filter>
<search-filter-space :pseudo-query="pseudoQuery"></search-filter-space>
</template>
Expand Down
Loading

0 comments on commit 48132c1

Please sign in to comment.