mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-11-25 13:18:30 +00:00
Compare commits
3 Commits
456-doc-ge
...
472-zimbra
| Author | SHA1 | Date | |
|---|---|---|---|
|
09d81d8025
|
|||
| add9249502 | |||
| 380d48c43a |
7
.changes/unreleased/Fixed-20251119-161233.yaml
Normal file
7
.changes/unreleased/Fixed-20251119-161233.yaml
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
kind: Fixed
|
||||||
|
body: |
|
||||||
|
Hide the display of inactive user groups in the api
|
||||||
|
time: 2025-11-19T16:12:33.803084517+01:00
|
||||||
|
custom:
|
||||||
|
Issue: "471"
|
||||||
|
SchemaChange: No schema change
|
||||||
@@ -1,6 +0,0 @@
|
|||||||
kind: UX
|
|
||||||
body: Display whether doc generation template is active or not in admin and order templates alphabetically
|
|
||||||
time: 2025-11-03T16:19:10.051947925+01:00
|
|
||||||
custom:
|
|
||||||
Issue: "456"
|
|
||||||
SchemaChange: No schema change
|
|
||||||
@@ -7,6 +7,13 @@
|
|||||||
"chill",
|
"chill",
|
||||||
"social worker"
|
"social worker"
|
||||||
],
|
],
|
||||||
|
"repositories": [{
|
||||||
|
"type": "path",
|
||||||
|
"url": "./packages/ChillZimbraBundle",
|
||||||
|
"options": {
|
||||||
|
"symlink": true
|
||||||
|
}
|
||||||
|
}],
|
||||||
"require": {
|
"require": {
|
||||||
"php": "^8.2",
|
"php": "^8.2",
|
||||||
"ext-dom": "*",
|
"ext-dom": "*",
|
||||||
@@ -14,6 +21,7 @@
|
|||||||
"ext-openssl": "*",
|
"ext-openssl": "*",
|
||||||
"ext-redis": "*",
|
"ext-redis": "*",
|
||||||
"ext-zlib": "*",
|
"ext-zlib": "*",
|
||||||
|
"chill-project/chill-zimbra-bundle": "@dev",
|
||||||
"champs-libres/wopi-bundle": "dev-symfony-v5@dev",
|
"champs-libres/wopi-bundle": "dev-symfony-v5@dev",
|
||||||
"champs-libres/wopi-lib": "dev-master@dev",
|
"champs-libres/wopi-lib": "dev-master@dev",
|
||||||
"doctrine/data-fixtures": "^1.8",
|
"doctrine/data-fixtures": "^1.8",
|
||||||
|
|||||||
@@ -37,4 +37,5 @@ return [
|
|||||||
Symfony\Bundle\WebProfilerBundle\WebProfilerBundle::class => ['dev' => true, 'test' => true],
|
Symfony\Bundle\WebProfilerBundle\WebProfilerBundle::class => ['dev' => true, 'test' => true],
|
||||||
Symfony\UX\Translator\UxTranslatorBundle::class => ['all' => true],
|
Symfony\UX\Translator\UxTranslatorBundle::class => ['all' => true],
|
||||||
loophp\PsrHttpMessageBridgeBundle\PsrHttpMessageBridgeBundle::class => ['all' => true],
|
loophp\PsrHttpMessageBridgeBundle\PsrHttpMessageBridgeBundle::class => ['all' => true],
|
||||||
|
Chill\ZimbraBundle\ChillZimbraBundle::class => ['all' => true],
|
||||||
];
|
];
|
||||||
|
|||||||
@@ -11,6 +11,7 @@
|
|||||||
"@hotwired/stimulus": "^3.0.0",
|
"@hotwired/stimulus": "^3.0.0",
|
||||||
"@luminateone/eslint-baseline": "^1.0.9",
|
"@luminateone/eslint-baseline": "^1.0.9",
|
||||||
"@symfony/stimulus-bridge": "^3.2.0",
|
"@symfony/stimulus-bridge": "^3.2.0",
|
||||||
|
"@symfony/ux-translator": "file:vendor/symfony/ux-translator/assets",
|
||||||
"@symfony/webpack-encore": "^4.1.0",
|
"@symfony/webpack-encore": "^4.1.0",
|
||||||
"@tsconfig/node20": "^20.1.4",
|
"@tsconfig/node20": "^20.1.4",
|
||||||
"@types/dompurify": "^3.0.5",
|
"@types/dompurify": "^3.0.5",
|
||||||
|
|||||||
22
packages/ChillZimbraBundle/composer.json
Normal file
22
packages/ChillZimbraBundle/composer.json
Normal file
@@ -0,0 +1,22 @@
|
|||||||
|
{
|
||||||
|
"name": "chill-project/chill-zimbra-bundle",
|
||||||
|
"description": "Provide connection between Zimbra agenda and Chill",
|
||||||
|
"minimum-stability": "stable",
|
||||||
|
"license": "AGPL-3.0",
|
||||||
|
"type": "library",
|
||||||
|
"keywords": [
|
||||||
|
"chill",
|
||||||
|
"social worker"
|
||||||
|
],
|
||||||
|
"require": {
|
||||||
|
"chill-project/chill-bundles": "dev-master@dev",
|
||||||
|
"zimbra-api/soap-api": "^3.2.2",
|
||||||
|
"psr/http-client": "^1.0",
|
||||||
|
"nyholm/psr7": "^1.0"
|
||||||
|
},
|
||||||
|
"autoload": {
|
||||||
|
"psr-4": {
|
||||||
|
"Chill\\ZimbraBundle\\": "src/"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
10
packages/ChillZimbraBundle/src/ChillZimbraBundle.php
Normal file
10
packages/ChillZimbraBundle/src/ChillZimbraBundle.php
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
namespace Chill\ZimbraBundle;
|
||||||
|
|
||||||
|
use Symfony\Component\HttpKernel\Bundle\Bundle;
|
||||||
|
|
||||||
|
class ChillZimbraBundle extends Bundle
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
@@ -0,0 +1,18 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
namespace Chill\ZimbraBundle\DependencyInjection;
|
||||||
|
|
||||||
|
use Symfony\Component\Config\FileLocator;
|
||||||
|
use Symfony\Component\DependencyInjection\ContainerBuilder;
|
||||||
|
use Symfony\Component\DependencyInjection\Extension\Extension;
|
||||||
|
use Symfony\Component\DependencyInjection\Loader\YamlFileLoader;
|
||||||
|
|
||||||
|
class ChillZimbraExtension extends Extension
|
||||||
|
{
|
||||||
|
public function load(array $configs, ContainerBuilder $container)
|
||||||
|
{
|
||||||
|
$loader = new YamlFileLoader($container, new FileLocator(__DIR__.'/../config'));
|
||||||
|
$loader->load('services.yaml');
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
8
packages/ChillZimbraBundle/src/config/services.yaml
Normal file
8
packages/ChillZimbraBundle/src/config/services.yaml
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
services:
|
||||||
|
_defaults:
|
||||||
|
autoconfigure: true
|
||||||
|
autowire: true
|
||||||
|
|
||||||
|
Chill\ZimbraBundle\Command\:
|
||||||
|
resource: '../Command'
|
||||||
|
tags: ['console.command']
|
||||||
@@ -87,7 +87,7 @@ class AdminDocGeneratorTemplateController extends CRUDController
|
|||||||
*/
|
*/
|
||||||
protected function orderQuery(string $action, $query, Request $request, PaginatorInterface $paginator)
|
protected function orderQuery(string $action, $query, Request $request, PaginatorInterface $paginator)
|
||||||
{
|
{
|
||||||
return $query->addSelect('REPLACE(JSON_EXTRACT(e.name, :lang), \' \', \'~\') AS HIDDEN name_lang')
|
return $query->addSelect('JSON_EXTRACT(e.name, :lang) AS HIDDEN name_lang')
|
||||||
->setParameter('lang', $request->getLocale())
|
->setParameter('lang', $request->getLocale())
|
||||||
->addOrderBy('name_lang', 'ASC');
|
->addOrderBy('name_lang', 'ASC');
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -26,23 +26,11 @@
|
|||||||
<div class="item-row">
|
<div class="item-row">
|
||||||
<div class="item-col" style="flex-basis:100%;">
|
<div class="item-col" style="flex-basis:100%;">
|
||||||
<h2>{{ entity.name|localize_translatable_string }}</h2>
|
<h2>{{ entity.name|localize_translatable_string }}</h2>
|
||||||
<p style="margin-left: 1rem;"><span class="badge bg-chill-gray">
|
|
||||||
{% if entity.active %}
|
|
||||||
{{ 'admin.active'|trans }}
|
|
||||||
{% else %}
|
|
||||||
{{ 'admin.not active'|trans }}
|
|
||||||
{% endif %}
|
|
||||||
</span></p>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="item-row">
|
<div class="item-row">
|
||||||
<p><span class="badge bg-chill-green-dark">{{ contextManager.getContextByKey(entity.context).name|trans }}</span></p>
|
<p><span class="badge bg-chill-green-dark">{{ contextManager.getContextByKey(entity.context).name|trans }}</span></p>
|
||||||
</div>
|
</div>
|
||||||
{# <div class="item-row">#}
|
|
||||||
{# <div class="item-col" style="flex-basis:100%;">#}
|
|
||||||
{##}
|
|
||||||
{# </div>#}
|
|
||||||
{# </div>#}
|
|
||||||
<div class="item-row">
|
<div class="item-row">
|
||||||
<div class="item-col"></div>
|
<div class="item-col"></div>
|
||||||
<ul class="record_actions item-col flex-shrink-1">
|
<ul class="record_actions item-col flex-shrink-1">
|
||||||
|
|||||||
@@ -49,7 +49,3 @@ crud:
|
|||||||
|
|
||||||
|
|
||||||
Template file: Fichier modèle
|
Template file: Fichier modèle
|
||||||
|
|
||||||
admin:
|
|
||||||
active: Actif
|
|
||||||
not active: Non-actif
|
|
||||||
|
|||||||
@@ -12,5 +12,12 @@ declare(strict_types=1);
|
|||||||
namespace Chill\MainBundle\Controller;
|
namespace Chill\MainBundle\Controller;
|
||||||
|
|
||||||
use Chill\MainBundle\CRUD\Controller\ApiController;
|
use Chill\MainBundle\CRUD\Controller\ApiController;
|
||||||
|
use Symfony\Component\HttpFoundation\Request;
|
||||||
|
|
||||||
class UserGroupApiController extends ApiController {}
|
class UserGroupApiController extends ApiController
|
||||||
|
{
|
||||||
|
protected function customizeQuery(string $action, Request $request, $query): void
|
||||||
|
{
|
||||||
|
$query->andWhere('e.active = TRUE');
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|||||||
@@ -2,6 +2,9 @@
|
|||||||
"champs-libres/wopi-bundle": {
|
"champs-libres/wopi-bundle": {
|
||||||
"version": "dev-master"
|
"version": "dev-master"
|
||||||
},
|
},
|
||||||
|
"chill-project/chill-zimbra-bundle": {
|
||||||
|
"version": "dev-472-zimbra-connector"
|
||||||
|
},
|
||||||
"doctrine/annotations": {
|
"doctrine/annotations": {
|
||||||
"version": "1.14",
|
"version": "1.14",
|
||||||
"recipe": {
|
"recipe": {
|
||||||
|
|||||||
Reference in New Issue
Block a user