html: true, | html: true, | ||||
container: '.map', | container: '.map', | ||||
placement: 'top', | placement: 'top', | ||||
trigger: 'focus', | |||||
}); | }); | ||||
} | } | ||||
} | } | ||||
} | } | ||||
} | } | ||||
.bloc-coop-cit { | .bloc-coop-cit { | ||||
background-color: $green; | background-color: $green; | ||||
color: #FFF; | color: #FFF; | ||||
} | } | ||||
img { | img { | ||||
max-width: 80%; | |||||
max-width: 300px; | |||||
} | |||||
.logo-hericourt { | |||||
max-width: 200px; | |||||
} | } | ||||
} | } | ||||
} | } |
.toggle { | .toggle { | ||||
border: 0; | border: 0; | ||||
background-color: #FFF; | background-color: #FFF; | ||||
img { | |||||
max-width: 140px; | |||||
} | |||||
} | } | ||||
} | } | ||||
} | } |
display: inline-block; | display: inline-block; | ||||
margin-top: 20px; | margin-top: 20px; | ||||
margin-bottom: 30px; | margin-bottom: 30px; | ||||
color: $green; | |||||
color: $orange; | |||||
font-weight: bold; | font-weight: bold; | ||||
text-decoration: none; | text-decoration: none; | ||||
} | } |
"entrypoints": { | "entrypoints": { | ||||
"adminlte-plugins": { | "adminlte-plugins": { | ||||
"js": [ | "js": [ | ||||
"/build/runtime.01c101e5.js", | |||||
"/build/runtime.56247ca7.js", | |||||
"/build/vendors-node_modules_core-js_internals_export_js.a0c0cb57.js", | "/build/vendors-node_modules_core-js_internals_export_js.a0c0cb57.js", | ||||
"/build/vendors-node_modules_core-js_modules_es_string_replace_js.06749256.js", | "/build/vendors-node_modules_core-js_modules_es_string_replace_js.06749256.js", | ||||
"/build/vendors-node_modules_core-js_modules_es_array_find_js.5b9cb885.js", | "/build/vendors-node_modules_core-js_modules_es_array_find_js.5b9cb885.js", | ||||
}, | }, | ||||
"adminlte-index": { | "adminlte-index": { | ||||
"js": [ | "js": [ | ||||
"/build/runtime.01c101e5.js", | |||||
"/build/runtime.56247ca7.js", | |||||
"/build/vendors-node_modules_core-js_internals_export_js.a0c0cb57.js", | "/build/vendors-node_modules_core-js_internals_export_js.a0c0cb57.js", | ||||
"/build/vendors-node_modules_core-js_modules_es_string_replace_js.06749256.js", | "/build/vendors-node_modules_core-js_modules_es_string_replace_js.06749256.js", | ||||
"/build/vendors-node_modules_core-js_modules_es_array_find_js.5b9cb885.js", | "/build/vendors-node_modules_core-js_modules_es_array_find_js.5b9cb885.js", | ||||
}, | }, | ||||
"adminlte-form": { | "adminlte-form": { | ||||
"js": [ | "js": [ | ||||
"/build/runtime.01c101e5.js", | |||||
"/build/runtime.56247ca7.js", | |||||
"/build/vendors-node_modules_core-js_internals_export_js.a0c0cb57.js", | "/build/vendors-node_modules_core-js_internals_export_js.a0c0cb57.js", | ||||
"/build/vendors-node_modules_core-js_modules_es_array_find_js.5b9cb885.js", | "/build/vendors-node_modules_core-js_modules_es_array_find_js.5b9cb885.js", | ||||
"/build/adminlte-form.4079807b.js" | "/build/adminlte-form.4079807b.js" | ||||
}, | }, | ||||
"adminlte-sort": { | "adminlte-sort": { | ||||
"js": [ | "js": [ | ||||
"/build/runtime.01c101e5.js", | |||||
"/build/runtime.56247ca7.js", | |||||
"/build/vendors-node_modules_core-js_internals_export_js.a0c0cb57.js", | "/build/vendors-node_modules_core-js_internals_export_js.a0c0cb57.js", | ||||
"/build/vendors-node_modules_core-js_modules_es_string_replace_js.06749256.js", | "/build/vendors-node_modules_core-js_modules_es_string_replace_js.06749256.js", | ||||
"/build/vendors-node_modules_core-js_modules_es_array_find_js.5b9cb885.js", | "/build/vendors-node_modules_core-js_modules_es_array_find_js.5b9cb885.js", | ||||
}, | }, | ||||
"adminlte-field-filemanager": { | "adminlte-field-filemanager": { | ||||
"js": [ | "js": [ | ||||
"/build/runtime.01c101e5.js", | |||||
"/build/runtime.56247ca7.js", | |||||
"/build/vendors-node_modules_core-js_internals_export_js.a0c0cb57.js", | "/build/vendors-node_modules_core-js_internals_export_js.a0c0cb57.js", | ||||
"/build/adminlte-field-filemanager.d8302fb7.js" | "/build/adminlte-field-filemanager.d8302fb7.js" | ||||
], | ], | ||||
}, | }, | ||||
"adminlte-field-collection": { | "adminlte-field-collection": { | ||||
"js": [ | "js": [ | ||||
"/build/runtime.01c101e5.js", | |||||
"/build/runtime.56247ca7.js", | |||||
"/build/vendors-node_modules_core-js_internals_export_js.a0c0cb57.js", | "/build/vendors-node_modules_core-js_internals_export_js.a0c0cb57.js", | ||||
"/build/vendors-node_modules_core-js_modules_es_string_replace_js.06749256.js", | "/build/vendors-node_modules_core-js_modules_es_string_replace_js.06749256.js", | ||||
"/build/vendors-node_modules_core-js_modules_es_array_find_js.5b9cb885.js", | "/build/vendors-node_modules_core-js_modules_es_array_find_js.5b9cb885.js", | ||||
}, | }, | ||||
"adminlte-main": { | "adminlte-main": { | ||||
"js": [ | "js": [ | ||||
"/build/runtime.01c101e5.js", | |||||
"/build/runtime.56247ca7.js", | |||||
"/build/vendors-node_modules_core-js_internals_export_js.a0c0cb57.js", | "/build/vendors-node_modules_core-js_internals_export_js.a0c0cb57.js", | ||||
"/build/vendors-node_modules_core-js_modules_es_string_replace_js.06749256.js", | "/build/vendors-node_modules_core-js_modules_es_string_replace_js.06749256.js", | ||||
"/build/adminlte-main.e8feeffc.js" | "/build/adminlte-main.e8feeffc.js" | ||||
}, | }, | ||||
"sov-reminder": { | "sov-reminder": { | ||||
"js": [ | "js": [ | ||||
"/build/runtime.01c101e5.js", | |||||
"/build/runtime.56247ca7.js", | |||||
"/build/sov-reminder.27580486.js" | "/build/sov-reminder.27580486.js" | ||||
], | ], | ||||
"css": [ | "css": [ | ||||
}, | }, | ||||
"sov-ticket": { | "sov-ticket": { | ||||
"js": [ | "js": [ | ||||
"/build/runtime.01c101e5.js", | |||||
"/build/runtime.56247ca7.js", | |||||
"/build/sov-ticket.df76c7a0.js" | "/build/sov-ticket.df76c7a0.js" | ||||
] | ] | ||||
}, | }, | ||||
"app-backend": { | "app-backend": { | ||||
"js": [ | "js": [ | ||||
"/build/runtime.01c101e5.js", | |||||
"/build/runtime.56247ca7.js", | |||||
"/build/vendors-node_modules_core-js_internals_export_js.a0c0cb57.js", | "/build/vendors-node_modules_core-js_internals_export_js.a0c0cb57.js", | ||||
"/build/vendors-node_modules_core-js_modules_es_array_find_js.5b9cb885.js", | "/build/vendors-node_modules_core-js_modules_es_array_find_js.5b9cb885.js", | ||||
"/build/app-backend.9246973d.js" | "/build/app-backend.9246973d.js" | ||||
}, | }, | ||||
"app-frontend": { | "app-frontend": { | ||||
"js": [ | "js": [ | ||||
"/build/runtime.01c101e5.js", | |||||
"/build/runtime.56247ca7.js", | |||||
"/build/vendors-node_modules_core-js_internals_export_js.a0c0cb57.js", | "/build/vendors-node_modules_core-js_internals_export_js.a0c0cb57.js", | ||||
"/build/vendors-node_modules_core-js_modules_es_string_replace_js.06749256.js", | "/build/vendors-node_modules_core-js_modules_es_string_replace_js.06749256.js", | ||||
"/build/vendors-node_modules_jquery_src_jquery_js.2a8ff255.js", | "/build/vendors-node_modules_jquery_src_jquery_js.2a8ff255.js", | ||||
"/build/vendors-node_modules_core-js_modules_es_string_split_js-node_modules_popper_js_dist_esm_popper_js.22d0763b.js", | "/build/vendors-node_modules_core-js_modules_es_string_split_js-node_modules_popper_js_dist_esm_popper_js.22d0763b.js", | ||||
"/build/vendors-node_modules_bootstrap_dist_js_bootstrap_js-node_modules_core-js_internals_object-def-7fa577.a4fc2b12.js", | "/build/vendors-node_modules_bootstrap_dist_js_bootstrap_js-node_modules_core-js_internals_object-def-7fa577.a4fc2b12.js", | ||||
"/build/app-frontend.212543dd.js" | |||||
"/build/app-frontend.32a560b0.js" | |||||
], | ], | ||||
"css": [ | "css": [ | ||||
"/build/app-frontend.a126fd2d.css" | |||||
"/build/app-frontend.ec892e82.css" | |||||
] | ] | ||||
}, | }, | ||||
"app-bulle": { | "app-bulle": { | ||||
"js": [ | "js": [ | ||||
"/build/runtime.01c101e5.js", | |||||
"/build/runtime.56247ca7.js", | |||||
"/build/vendors-node_modules_amcharts_amcharts4_charts_js-node_modules_amcharts_amcharts4_core_js-nod-e7c189.7a170faa.js", | "/build/vendors-node_modules_amcharts_amcharts4_charts_js-node_modules_amcharts_amcharts4_core_js-nod-e7c189.7a170faa.js", | ||||
"/build/app-bulle.08404383.js" | "/build/app-bulle.08404383.js" | ||||
] | ] |
"build/sov-ticket.js": "/build/sov-ticket.df76c7a0.js", | "build/sov-ticket.js": "/build/sov-ticket.df76c7a0.js", | ||||
"build/app-backend.css": "/build/app-backend.3d882954.css", | "build/app-backend.css": "/build/app-backend.3d882954.css", | ||||
"build/app-backend.js": "/build/app-backend.9246973d.js", | "build/app-backend.js": "/build/app-backend.9246973d.js", | ||||
"build/app-frontend.css": "/build/app-frontend.a126fd2d.css", | |||||
"build/app-frontend.js": "/build/app-frontend.212543dd.js", | |||||
"build/app-frontend.css": "/build/app-frontend.ec892e82.css", | |||||
"build/app-frontend.js": "/build/app-frontend.32a560b0.js", | |||||
"build/app-bulle.js": "/build/app-bulle.08404383.js", | "build/app-bulle.js": "/build/app-bulle.08404383.js", | ||||
"build/runtime.js": "/build/runtime.01c101e5.js", | |||||
"build/runtime.js": "/build/runtime.56247ca7.js", | |||||
"build/pdfmake.js": "/build/pdfmake.fbf70324.js", | "build/pdfmake.js": "/build/pdfmake.fbf70324.js", | ||||
"build/canvg.js": "/build/canvg.5e04b23d.js", | "build/canvg.js": "/build/canvg.5e04b23d.js", | ||||
"build/xlsx.js": "/build/xlsx.05855660.js", | "build/xlsx.js": "/build/xlsx.05855660.js", |
10 | 10 | ||||
); | ); | ||||
} | } | ||||
} else { | |||||
$resultArray = $this->generateResultArray(); | |||||
$resultArrayPagination = $this->paginator->paginate( | |||||
$resultArray, | |||||
1, | |||||
10 | |||||
); | |||||
} | } | ||||
return $this->render( | return $this->render( | ||||
} | } | ||||
} | } | ||||
} | } | ||||
// dump($data); | |||||
// die; | |||||
return new JsonResponse($data); | return new JsonResponse($data); | ||||
} | } | ||||
private function generateResultArray($data): array | |||||
{ | |||||
private function generateResultArray( | |||||
$data = array( | |||||
'search' => '', | |||||
'category' => array() | |||||
) | |||||
): array { | |||||
$dreamArray = $revoltArray = $projectBoostArray = $projectInspiringArray = array(); | $dreamArray = $revoltArray = $projectBoostArray = $projectInspiringArray = array(); | ||||
$subthematic = $data['search']; | $subthematic = $data['search']; | ||||
$categoryArray = $data['category']; | $categoryArray = $data['category']; | ||||
$territoryArray = $data['territory']; | |||||
$thematicArray = $data['thematic']; | |||||
$territoryArray = isset($data['territory']) ? $data['territory'] : new ArrayCollection(); | |||||
$thematicArray = isset($data['thematic']) ? $data['thematic'] : new ArrayCollection(); | |||||
if (in_array(AbstractData::CATEGORY_DREAM, $categoryArray) || empty($categoryArray)) { | if (in_array(AbstractData::CATEGORY_DREAM, $categoryArray) || empty($categoryArray)) { | ||||
$dreamArray = $this->dreamStore->filterSearch($subthematic, $territoryArray, $thematicArray); | $dreamArray = $this->dreamStore->filterSearch($subthematic, $territoryArray, $thematicArray); |
<h2>Financé par :</h2> | <h2>Financé par :</h2> | ||||
<div class="row"> | <div class="row"> | ||||
<div class="col"> | <div class="col"> | ||||
<img src="{{ 'assets/img/Bourgogne-Franche-Comté_2016.png' }}" alt="coeur"> | |||||
<img src="{{ 'assets/img/Bourgogne-Franche-Comté_2016.png' }}" alt="bourgogne franche comté"> | |||||
</div> | </div> | ||||
<div class="col"> | <div class="col"> | ||||
<img src="{{ 'assets/img/pma-pays-de-montbeliard-agg.jpg' }}" alt="coeur"> | |||||
<img src="{{ 'assets/img/pma-pays-de-montbeliard-agg.jpg' }}" alt="pays de montbéliard"> | |||||
</div> | </div> | ||||
<div class="col"> | <div class="col"> | ||||
<img src="{{ 'assets/img/Logo_Héricourt_70.png' }}" alt="coeur"> | |||||
<img class="logo-hericourt" src="{{ 'assets/img/Logo_Héricourt_70.png' }}" alt="héricourt"> | |||||
</div> | </div> | ||||
</div> | </div> | ||||
</div> | </div> |
<div class="img-map img-{{ key }}"> | <div class="img-map img-{{ key }}"> | ||||
{% set url = '<a href="'~ path('app_carto_liste', {search_list_form:{category:{'':constant('App\\Entity\\AbstractData::CATEGORY_REVOLT')}, territory:{'':result.Territory}}}) ~'">Consulter la liste</a>' %} | {% set url = '<a href="'~ path('app_carto_liste', {search_list_form:{category:{'':constant('App\\Entity\\AbstractData::CATEGORY_REVOLT')}, territory:{'':result.Territory}}}) ~'">Consulter la liste</a>' %} | ||||
<img src="{{ 'assets/img/Picto-Revoltes.png' }}" alt="" data-toggle="popover" | <img src="{{ 'assets/img/Picto-Revoltes.png' }}" alt="" data-toggle="popover" | ||||
data-content='<span>Nombre de Révoltes : {{ result.Revolt }} </span> {{ url }}'> | |||||
tabindex="0" data-trigger="focus" data-content='<span>Nombre de Révoltes : {{ result.Revolt }} </span> {{ url }}'> | |||||
{% set url = '<a href="'~ path('app_carto_liste', {search_list_form:{category:{'':constant('App\\Entity\\AbstractData::CATEGORY_DREAM')}, territory:{'':result.Territory}}}) ~'">Consulter la liste</a>' %} | {% set url = '<a href="'~ path('app_carto_liste', {search_list_form:{category:{'':constant('App\\Entity\\AbstractData::CATEGORY_DREAM')}, territory:{'':result.Territory}}}) ~'">Consulter la liste</a>' %} | ||||
<img src="{{ 'assets/img/Picto-Reve.png' }}" alt="" data-toggle="popover" | <img src="{{ 'assets/img/Picto-Reve.png' }}" alt="" data-toggle="popover" | ||||
data-content='<span>Nombre de Rêves : {{ result.Dream }} </span> {{ url }}'> | |||||
tabindex="0" data-trigger="focus" data-content='<span>Nombre de Rêves : {{ result.Dream }} </span> {{ url }}'> | |||||
{% set url = '<a href="'~ path('app_carto_liste', {search_list_form:{category:{'':constant('App\\Entity\\AbstractData::CATEGORY_PROJECTBOOST')}, territory:{'':result.Territory}}}) ~'">Consulter la liste</a>' %} | {% set url = '<a href="'~ path('app_carto_liste', {search_list_form:{category:{'':constant('App\\Entity\\AbstractData::CATEGORY_PROJECTBOOST')}, territory:{'':result.Territory}}}) ~'">Consulter la liste</a>' %} | ||||
<img src="{{ 'assets/img/Picto-Actions-Booster.png' }}" alt="" data-toggle="popover" | <img src="{{ 'assets/img/Picto-Actions-Booster.png' }}" alt="" data-toggle="popover" | ||||
data-content='<span>Nombre de projets à booster : {{ result.ProjectBoost }} </span> {{ url }}'> | |||||
tabindex="0" data-trigger="focus" data-content='<span>Nombre de projets à booster : {{ result.ProjectBoost }} </span> {{ url }}'> | |||||
{% set url = '<a href="'~ path('app_carto_liste', {search_list_form:{category:{'':constant('App\\Entity\\AbstractData::CATEGORY_PROJECTINSPIRING')}, territory:{'':result.Territory}}}) ~'">Consulter la liste</a>' %} | {% set url = '<a href="'~ path('app_carto_liste', {search_list_form:{category:{'':constant('App\\Entity\\AbstractData::CATEGORY_PROJECTINSPIRING')}, territory:{'':result.Territory}}}) ~'">Consulter la liste</a>' %} | ||||
<img src="{{ 'assets/img/Picto-Actions-Inspirantes.png' }}" alt="" data-toggle="popover" | <img src="{{ 'assets/img/Picto-Actions-Inspirantes.png' }}" alt="" data-toggle="popover" | ||||
data-content='<span>Nombre de projets inspirants : {{ result.ProjectInspiring }} </span> {{ url }}'> | |||||
tabindex="0" data-trigger="focus" data-content='<span>Nombre de projets inspirants : {{ result.ProjectInspiring }} </span> {{ url }}'> | |||||
</div> | </div> | ||||
{% endfor %} | {% endfor %} | ||||
</div> | </div> |
<ul> | <ul> | ||||
<li class="title-list">Aux Actes Citoyens</li> | <li class="title-list">Aux Actes Citoyens</li> | ||||
<li><a href="{{ path('app_about') }}" title="A propos">A propos</a></li> | <li><a href="{{ path('app_about') }}" title="A propos">A propos</a></li> | ||||
<li><a href="" title="Devenez partenaire">Devenez partenaire</a></li> | |||||
<li> | |||||
{{ macro.email_contact("Devenez partenaire", "Devenir partenaire") }} | |||||
</li> | |||||
<li><a href="{{ path('app_about') }}#team-coeur" title="L’équipe coeur">L’équipe coeur</a></li> | <li><a href="{{ path('app_about') }}#team-coeur" title="L’équipe coeur">L’équipe coeur</a></li> | ||||
</ul> | </ul> | ||||
</div> | </div> | ||||
</div> | </div> | ||||
<div class="col-4 col-network"> | <div class="col-4 col-network"> | ||||
<p class="stay-connect">Restez connecté :</p> | <p class="stay-connect">Restez connecté :</p> | ||||
<a href="" title="Facebook"> | |||||
<a href="https://www.facebook.com/laCoopCitoyens/?ref=pages_you_manage" title="Facebook" target="_blank"> | |||||
<img src="{{ 'assets/img/Picto-Facebook.png' }}" alt="facebook"> | <img src="{{ 'assets/img/Picto-Facebook.png' }}" alt="facebook"> | ||||
</a> | </a> | ||||
<a href="" title="Linkedin"> | |||||
<a href="https://www.linkedin.com/company/69372918/admin/" title="Linkedin" target="_blank"> | |||||
<img src="{{ 'assets/img/Picto-Linkedin.png' }}" alt="Linkedin"> | <img src="{{ 'assets/img/Picto-Linkedin.png' }}" alt="Linkedin"> | ||||
</a> | </a> | ||||
<a href="" title="GooglePlus"> | |||||
<a href="https://www.lacooperativedescitoyens.fr" title="GooglePlus" target="_blank"> | |||||
<img src="{{ 'assets/img/Picto-GooglePlus.png' }}" alt="GooglePlus"> | <img src="{{ 'assets/img/Picto-GooglePlus.png' }}" alt="GooglePlus"> | ||||
</a> | </a> | ||||
</div> | </div> |