|
|
@@ -1,7 +1,7 @@
|
|
|
<!-- Search for member structures -->
|
|
|
|
|
|
<template>
|
|
|
- <LayoutContainer class="map-view">
|
|
|
+ <LayoutContainer>
|
|
|
<!-- Header -->
|
|
|
<v-row>
|
|
|
<v-layout>
|
|
|
@@ -21,7 +21,11 @@
|
|
|
|
|
|
<v-row>
|
|
|
<!-- Map Column (hidden in 'list-view' mode)-->
|
|
|
- <v-col v-show="mapview" cols="6">
|
|
|
+ <v-col
|
|
|
+ v-show="mapview"
|
|
|
+ cols="12"
|
|
|
+ sm="6"
|
|
|
+ >
|
|
|
<no-ssr>
|
|
|
<UiMapStructures
|
|
|
ref="map"
|
|
|
@@ -32,13 +36,16 @@
|
|
|
</v-col>
|
|
|
|
|
|
<!-- Results column -->
|
|
|
- <v-col :cols="mapview ? 6 : 12">
|
|
|
+ <v-col
|
|
|
+ cols="12"
|
|
|
+ :sm="mapview ? 6 : 12"
|
|
|
+ >
|
|
|
<!-- Search form -->
|
|
|
<v-row>
|
|
|
<v-form method="get" class="mt-8 w100">
|
|
|
<v-container>
|
|
|
<v-row>
|
|
|
- <v-col cols="6" class="py-2 px-1">
|
|
|
+ <v-col cols="12" md="6" class="py-2 px-1">
|
|
|
<v-text-field
|
|
|
v-model="textFilter"
|
|
|
type="text"
|
|
|
@@ -52,7 +59,7 @@
|
|
|
/>
|
|
|
</v-col>
|
|
|
|
|
|
- <v-col cols="6" class="py-2 px-1">
|
|
|
+ <v-col cols="12" md="6" class="py-2 px-1">
|
|
|
<UiSearchAddress
|
|
|
ref="addressSearch"
|
|
|
type="municipality"
|
|
|
@@ -62,14 +69,14 @@
|
|
|
</v-row>
|
|
|
|
|
|
<v-row>
|
|
|
- <v-col v-if="listview" cols="2" class="py-2 px-1">
|
|
|
+ <v-col v-if="listview && $vuetify.breakpoint.mdAndUp" cols="2" class="py-2 px-1">
|
|
|
<v-btn class="h100" @click="reinitializeFilters">
|
|
|
{{ $t('reinitialize') }}
|
|
|
</v-btn>
|
|
|
</v-col>
|
|
|
- <v-col :cols="listview ? 8 : 12">
|
|
|
+ <v-col :cols="(listview && $vuetify.breakpoint.mdAndUp) ? 8 : 12">
|
|
|
<v-row class="filters">
|
|
|
- <v-col :cols="3" class="py-2 px-1">
|
|
|
+ <v-col lg="3" :md="listview ? 3 : 6" sm="6" cols="12" class="py-2 px-1">
|
|
|
<v-select
|
|
|
v-model="practicesFilter"
|
|
|
:label="$t('type')"
|
|
|
@@ -81,7 +88,7 @@
|
|
|
@change="search"
|
|
|
/>
|
|
|
</v-col>
|
|
|
- <v-col :cols="3" class="py-2 px-1">
|
|
|
+ <v-col lg="3" :md="listview ? 3 : 6" sm="6" cols="12" class="py-2 px-1">
|
|
|
<v-select
|
|
|
v-model="departmentFilter"
|
|
|
:items="departments"
|
|
|
@@ -93,7 +100,7 @@
|
|
|
@change="search"
|
|
|
/>
|
|
|
</v-col>
|
|
|
- <v-col :cols="3" class="py-2 px-1">
|
|
|
+ <v-col lg="3" :md="listview ? 3 : 6" sm="6" cols="12" class="py-2 px-1">
|
|
|
<v-select
|
|
|
v-model="federationFilter"
|
|
|
:items="federations"
|
|
|
@@ -105,7 +112,7 @@
|
|
|
@change="search"
|
|
|
/>
|
|
|
</v-col>
|
|
|
- <v-col :cols="3" class="py-2 px-1">
|
|
|
+ <v-col lg="3" :md="listview ? 3 : 6" sm="6" cols="12" class="py-2 px-1">
|
|
|
<v-select
|
|
|
v-model="distanceFilter"
|
|
|
:label="$t('distance')"
|
|
|
@@ -124,14 +131,14 @@
|
|
|
</v-col>
|
|
|
</v-row>
|
|
|
</v-col>
|
|
|
- <v-col v-if="listview" cols="2" class="py-2 px-1 d-flex justify-end">
|
|
|
+ <v-col v-if="listview && $vuetify.breakpoint.mdAndUp" cols="2" class="py-2 px-1 d-flex justify-end">
|
|
|
<v-btn class="h100">
|
|
|
{{ $t('search') }}
|
|
|
</v-btn>
|
|
|
</v-col>
|
|
|
</v-row>
|
|
|
|
|
|
- <v-row v-show="mapview" class="px-2 pt-2">
|
|
|
+ <v-row v-show="mapview || $vuetify.breakpoint.smAndDown" class="px-2 pt-2">
|
|
|
<v-btn @click="reinitializeFilters">
|
|
|
{{ $t('reinitialize') }}
|
|
|
</v-btn>
|
|
|
@@ -177,7 +184,6 @@
|
|
|
<template #header>
|
|
|
<i class="results-count">{{ totalRecords }} {{ $t('results') }}</i>
|
|
|
</template>
|
|
|
-
|
|
|
<template #default="props">
|
|
|
<v-row justify="space-between" class="mt-1 mb-3">
|
|
|
<v-col
|
|
|
@@ -185,13 +191,13 @@
|
|
|
:key="structure.name"
|
|
|
cols="12"
|
|
|
sm="12"
|
|
|
- :md="mapview ? 6 : 12"
|
|
|
+ :lg="mapview ? 6 : 12"
|
|
|
class="py-2 px-1"
|
|
|
>
|
|
|
<v-card
|
|
|
elevation="1"
|
|
|
outlined
|
|
|
- :class="'structure-card pa-3 d-flex ' + (mapview ? 'flex-column' : 'flex-row align-items-center')"
|
|
|
+ :class="'structure-card pa-3 d-flex ' + ((mapview || $vuetify.breakpoint.smAndDown) ? 'flex-column' : 'flex-row align-items-center')"
|
|
|
>
|
|
|
<div class="d-flex justify-center">
|
|
|
<v-img
|