@@ -1 +1,29 @@ | |||
$(document).ready(function () { | |||
$('.field-collection[data-prototype]').on('collection-add-item', function () { | |||
$(this).find('select').each(function (i, e) { | |||
SovWidgets.setSelect2($(e)); | |||
setSubtheme($(e)); | |||
}) | |||
}); | |||
$('.theme').each(function (i,select){ | |||
setSubtheme($(select)); | |||
$(select).trigger('change'); | |||
}) | |||
//setSubtheme(); | |||
// $(document).on('click', '.theme option', function (e) { | |||
// alert('test'); | |||
// $(this).closest('.form-widget-compound').find('.subtheme option').show(); | |||
// $(this).closest('.form-widget-compound').find('.subtheme option[data-class]').not("[data-class='" + $(this).data('class') + "']").hide(); | |||
// }); | |||
}); | |||
function setSubtheme($select) { | |||
$select.on('change', function (e) { | |||
SovTools.log($(e.target).find('option:selected').data('class')); | |||
$(e.target).closest('.form-widget-compound').find('.subtheme option').prop('disabled', false); | |||
$(e.target).closest('.form-widget-compound').find('.subtheme option[data-class]').not("[data-class='" + $(e.target).find('option:selected').data('class') + "']").prop('disabled', true); | |||
SovWidgets.setSelect2($(this).closest('.form-widget-compound').find('.subtheme')); | |||
}); | |||
} |
@@ -0,0 +1,53 @@ | |||
<?php | |||
declare(strict_types=1); | |||
namespace DoctrineMigrations; | |||
use Doctrine\DBAL\Schema\Schema; | |||
use Doctrine\Migrations\AbstractMigration; | |||
/** | |||
* Auto-generated Migration: Please modify to your needs! | |||
*/ | |||
final class Version20210827103949 extends AbstractMigration | |||
{ | |||
public function getDescription(): string | |||
{ | |||
return ''; | |||
} | |||
public function up(Schema $schema): void | |||
{ | |||
// this up() migration is auto-generated, please modify it to your needs | |||
$this->addSql('ALTER TABLE dream ADD subthematic_id INT DEFAULT NULL'); | |||
$this->addSql('ALTER TABLE dream ADD CONSTRAINT FK_6A5F004F6C159F58 FOREIGN KEY (subthematic_id) REFERENCES subthematic (id)'); | |||
$this->addSql('CREATE INDEX IDX_6A5F004F6C159F58 ON dream (subthematic_id)'); | |||
$this->addSql('ALTER TABLE project_boost ADD subthematic_id INT DEFAULT NULL'); | |||
$this->addSql('ALTER TABLE project_boost ADD CONSTRAINT FK_45312EF66C159F58 FOREIGN KEY (subthematic_id) REFERENCES subthematic (id)'); | |||
$this->addSql('CREATE INDEX IDX_45312EF66C159F58 ON project_boost (subthematic_id)'); | |||
$this->addSql('ALTER TABLE project_inspiring ADD subthematic_id INT DEFAULT NULL'); | |||
$this->addSql('ALTER TABLE project_inspiring ADD CONSTRAINT FK_2E8C2C2E6C159F58 FOREIGN KEY (subthematic_id) REFERENCES subthematic (id)'); | |||
$this->addSql('CREATE INDEX IDX_2E8C2C2E6C159F58 ON project_inspiring (subthematic_id)'); | |||
$this->addSql('ALTER TABLE revolt ADD subthematic_id INT DEFAULT NULL'); | |||
$this->addSql('ALTER TABLE revolt ADD CONSTRAINT FK_350517876C159F58 FOREIGN KEY (subthematic_id) REFERENCES subthematic (id)'); | |||
$this->addSql('CREATE INDEX IDX_350517876C159F58 ON revolt (subthematic_id)'); | |||
} | |||
public function down(Schema $schema): void | |||
{ | |||
// this down() migration is auto-generated, please modify it to your needs | |||
$this->addSql('ALTER TABLE dream DROP FOREIGN KEY FK_6A5F004F6C159F58'); | |||
$this->addSql('DROP INDEX IDX_6A5F004F6C159F58 ON dream'); | |||
$this->addSql('ALTER TABLE dream DROP subthematic_id'); | |||
$this->addSql('ALTER TABLE project_boost DROP FOREIGN KEY FK_45312EF66C159F58'); | |||
$this->addSql('DROP INDEX IDX_45312EF66C159F58 ON project_boost'); | |||
$this->addSql('ALTER TABLE project_boost DROP subthematic_id'); | |||
$this->addSql('ALTER TABLE project_inspiring DROP FOREIGN KEY FK_2E8C2C2E6C159F58'); | |||
$this->addSql('DROP INDEX IDX_2E8C2C2E6C159F58 ON project_inspiring'); | |||
$this->addSql('ALTER TABLE project_inspiring DROP subthematic_id'); | |||
$this->addSql('ALTER TABLE revolt DROP FOREIGN KEY FK_350517876C159F58'); | |||
$this->addSql('DROP INDEX IDX_350517876C159F58 ON revolt'); | |||
$this->addSql('ALTER TABLE revolt DROP subthematic_id'); | |||
} | |||
} |
@@ -62,8 +62,8 @@ __webpack_require__.r(__webpack_exports__); | |||
/******/ "use strict"; | |||
/******/ | |||
/******/ var __webpack_exec__ = (moduleId) => (__webpack_require__(__webpack_require__.s = moduleId)) | |||
/******/ __webpack_require__.O(0, ["vendors-node_modules_core-js_internals_export_js","vendors-node_modules_core-js_modules_es_array_find_js"], () => (__webpack_exec__("../LaClicBundle/SovBundle/Resources/assets/app/adminlte/form/app.form.js"))); | |||
/******/ __webpack_require__.O(0, ["vendors-node_modules_core-js_internals_export_js","vendors-node_modules_core-js_modules_es_array_find_js-_7db01"], () => (__webpack_exec__("../LaClicBundle/SovBundle/Resources/assets/app/adminlte/form/app.form.js"))); | |||
/******/ var __webpack_exports__ = __webpack_require__.O(); | |||
/******/ } | |||
]); | |||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly8vLi4vTGFDbGljQnVuZGxlL1NvdkJ1bmRsZS9SZXNvdXJjZXMvYXNzZXRzL2FwcC9hZG1pbmx0ZS9mb3JtL2FwcC5mb3JtLmpzIiwid2VicGFjazovLy8uLi9MYUNsaWNCdW5kbGUvU292QnVuZGxlL1Jlc291cmNlcy9hc3NldHMvYXBwL2FkbWlubHRlL2Zvcm0vZm9ybS5qcyIsIndlYnBhY2s6Ly8vLi4vTGFDbGljQnVuZGxlL1NvdkJ1bmRsZS9SZXNvdXJjZXMvYXNzZXRzL2FwcC9hZG1pbmx0ZS9mb3JtL2Zvcm0uc2NzcyJdLCJuYW1lcyI6WyJjaGVja0Zvcm0iLCIkIiwiYWRkQ2xhc3MiLCJmaW5kIiwibGVuZ3RoIiwiZWFjaCIsImkiLCJwYW5lbCIsInJlbW92ZUNsYXNzIiwib24iLCJlIl0sIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7Ozs7O0FBQ0E7Ozs7Ozs7Ozs7Ozs7QUNDQSxTQUFTQSxTQUFULEdB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zvcm0nKS5hZGRDbGFzcygnZm9ybS1zZW50Jyk7XG4gICAgLy9QYW5lbCB2dWVzIGpzXG4gICAgaWYgKCQoJ2Zvcm0nKS5maW5kKCcudGFiLXBhbmUnKS5sZW5ndGgpIHtcbiAgICAgICAgJCgnZm9ybScpLmZpbmQoJy50YWItcGFuZScpLmVhY2goZnVuY3Rpb24gKGksIHBhbmVsKSB7XG4gICAgICAgICAgICBpZiAoJChwYW5lbCkuZmluZCgnOmludmFsaWQnKS5sZW5ndGgpIHtcbiAgICAgICAgICAgICAgICAkKCcjbmF2LXBhcmFtcycpLmZpbmQoJy5uYXYtaXRlbTplcSgnICsgaSArICcpJykuYWRkQ2xhc3MoJ2hhcy1pbnZhbGlkJyk7XG4gICAgICAgICAgICB9IGVsc2Uge1xuICAgICAgICAgICAgICAgICQoJyNuYXYtcGFyYW1zJykuZmluZCgnLm5hdi1pdGVtOmVxKCcgKyBpICsgJyknKS5yZW1vdmVDbGFzcygnaGFzLWludmFsaWQnKTtcbiAgICAgICAgICAgIH1cbiAgICAgICAgfSlcbiAgICB9XG59XG5cbiQoJ2J1dHRvblt0eXBlPVwic3VibWl0XCJdJykub24oJ2NsaWNrJywgZnVuY3Rpb24gKGUpIHtcblxuICAgIGNoZWNrRm9ybSgpO1xufSkiLCIvLyBleHRyYWN0ZWQgYnkgbWluaS1jc3MtZXh0cmFjdC1wbHVnaW5cbmV4cG9ydCB7fTsiXSwic291cmNlUm9vdCI6IiJ9 | |||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly8vLi4vTGFDbGljQnVuZGxlL1NvdkJ1bmRsZS9SZXNvdXJjZXMvYXNzZXRzL2FwcC9hZG1pbmx0ZS9mb3JtL2FwcC5mb3JtLmpzIiwid2VicGFjazovLy8uLi9MYUNsaWNCdW5kbGUvU292QnVuZGxlL1Jlc291cmNlcy9hc3NldHMvYXBwL2FkbWlubHRlL2Zvcm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kgbWluaS1jc3MtZXh0cmFjdC1wbHVnaW5cbmV4cG9ydCB7fTsiXSwic291cmNlUm9vdCI6IiJ9 |
@@ -0,0 +1,86 @@ | |||
(self["webpackChunk"] = self["webpackChunk"] || []).push([["app-backend"],{ | |||
/***/ "./assets/app/backend/common/app.common.js": | |||
/*!*************************************************!*\ | |||
!*** ./assets/app/backend/common/app.common.js ***! | |||
\*************************************************/ | |||
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { | |||
"use strict"; | |||
__webpack_require__.r(__webpack_exports__); | |||
/* harmony import */ var _common_scss__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./common.scss */ "./assets/app/backend/common/common.scss"); | |||
/* harmony import */ var _common_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./common.js */ "./assets/app/backend/common/common.js"); | |||
/* harmony import */ var _common_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_common_js__WEBPACK_IMPORTED_MODULE_1__); | |||
/* | |||
* Welcome to your app's main JavaScript file! | |||
* | |||
* We recommend including the built version of this JavaScript file | |||
* (and its CSS file) in your base layout (base.html.twig). | |||
*/ | |||
// any CSS you import will output into a single css file (app.css in this case) | |||
// start the Stimulus application | |||
//import './bootstrap'; | |||
/***/ }), | |||
/***/ "./assets/app/backend/common/common.js": | |||
/*!*********************************************!*\ | |||
!*** ./assets/app/backend/common/common.js ***! | |||
\*********************************************/ | |||
/***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => { | |||
__webpack_require__(/*! core-js/modules/es.array.find.js */ "./node_modules/core-js/modules/es.array.find.js"); | |||
$(document).ready(function () { | |||
$('.field-collection[data-prototype]').on('collection-add-item', function () { | |||
$(this).find('select').each(function (i, e) { | |||
SovWidgets.setSelect2($(e)); | |||
setSubtheme($(e)); | |||
}); | |||
}); | |||
$('.theme').each(function (i, select) { | |||
setSubtheme($(select)); | |||
$(select).trigger('change'); | |||
}); //setSubtheme(); | |||
// $(document).on('click', '.theme option', function (e) { | |||
// alert('test'); | |||
// $(this).closest('.form-widget-compound').find('.subtheme option').show(); | |||
// $(this).closest('.form-widget-compound').find('.subtheme option[data-class]').not("[data-class='" + $(this).data('class') + "']").hide(); | |||
// }); | |||
}); | |||
function setSubtheme($select) { | |||
$select.on('change', function (e) { | |||
SovTools.log($(e.target).find('option:selected').data('class')); | |||
$(e.target).closest('.form-widget-compound').find('.subtheme option').prop('disabled', false); | |||
$(e.target).closest('.form-widget-compound').find('.subtheme option[data-class]').not("[data-class='" + $(e.target).find('option:selected').data('class') + "']").prop('disabled', true); | |||
SovWidgets.setSelect2($(this).closest('.form-widget-compound').find('.subtheme')); | |||
}); | |||
} | |||
/***/ }), | |||
/***/ "./assets/app/backend/common/common.scss": | |||
/*!***********************************************!*\ | |||
!*** ./assets/app/backend/common/common.scss ***! | |||
\***********************************************/ | |||
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { | |||
"use strict"; | |||
__webpack_require__.r(__webpack_exports__); | |||
// extracted by mini-css-extract-plugin | |||
/***/ }) | |||
}, | |||
/******/ __webpack_require__ => { // webpackRuntimeModules | |||
/******/ "use strict"; | |||
/******/ | |||
/******/ var __webpack_exec__ = (moduleId) => (__webpack_require__(__webpack_require__.s = moduleId)) | |||
/******/ __webpack_require__.O(0, ["vendors-node_modules_core-js_internals_export_js","vendors-node_modules_core-js_modules_es_array_find_js-_7db00"], () => (__webpack_exec__("./assets/app/backend/common/app.common.js"))); | |||
/******/ var __webpack_exports__ = __webpack_require__.O(); | |||
/******/ } | |||
]); | |||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly8vLi9hc3NldHMvYXBwL2JhY2tlbmQvY29tbW9uL2FwcC5jb21tb24uanMiLCJ3ZWJwYWNrOi8vLy4vYXNzZXRzL2FwcC9iYWNrZW5kL2NvbW1vbi9jb21tb24uanMiLCJ3ZWJw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CIgKyAkKGUudGFyZ2V0KS5maW5kKCdvcHRpb246c2VsZWN0ZWQnKS5kYXRhKCdjbGFzcycpICsgXCInXVwiKS5wcm9wKCdkaXNhYmxlZCcsIHRydWUpO1xuICAgICAgICBTb3ZXaWRnZXRzLnNldFNlbGVjdDIoJCh0aGlzKS5jbG9zZXN0KCcuZm9ybS13aWRnZXQtY29tcG91bmQnKS5maW5kKCcuc3VidGhlbWUnKSk7XG4gICAgfSk7XG59IiwiLy8gZXh0cmFjdGVkIGJ5IG1pbmktY3NzLWV4dHJhY3QtcGx1Z2luXG5leHBvcnQge307Il0sInNvdXJjZVJvb3QiOiIifQ== |
@@ -1,58 +0,0 @@ | |||
(self["webpackChunk"] = self["webpackChunk"] || []).push([["app-backend"],{ | |||
/***/ "./assets/app/backend/common/app.common.js": | |||
/*!*************************************************!*\ | |||
!*** ./assets/app/backend/common/app.common.js ***! | |||
\*************************************************/ | |||
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { | |||
"use strict"; | |||
__webpack_require__.r(__webpack_exports__); | |||
/* harmony import */ var _common_scss__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./common.scss */ "./assets/app/backend/common/common.scss"); | |||
/* harmony import */ var _common_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./common.js */ "./assets/app/backend/common/common.js"); | |||
/* harmony import */ var _common_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_common_js__WEBPACK_IMPORTED_MODULE_1__); | |||
/* | |||
* Welcome to your app's main JavaScript file! | |||
* | |||
* We recommend including the built version of this JavaScript file | |||
* (and its CSS file) in your base layout (base.html.twig). | |||
*/ | |||
// any CSS you import will output into a single css file (app.css in this case) | |||
// start the Stimulus application | |||
//import './bootstrap'; | |||
/***/ }), | |||
/***/ "./assets/app/backend/common/common.js": | |||
/*!*********************************************!*\ | |||
!*** ./assets/app/backend/common/common.js ***! | |||
\*********************************************/ | |||
/***/ (() => { | |||
/***/ }), | |||
/***/ "./assets/app/backend/common/common.scss": | |||
/*!***********************************************!*\ | |||
!*** ./assets/app/backend/common/common.scss ***! | |||
\***********************************************/ | |||
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { | |||
"use strict"; | |||
__webpack_require__.r(__webpack_exports__); | |||
// extracted by mini-css-extract-plugin | |||
/***/ }) | |||
}, | |||
/******/ __webpack_require__ => { // webpackRuntimeModules | |||
/******/ "use strict"; | |||
/******/ | |||
/******/ var __webpack_exec__ = (moduleId) => (__webpack_require__(__webpack_require__.s = moduleId)) | |||
/******/ var __webpack_exports__ = (__webpack_exec__("./assets/app/backend/common/app.common.js")); | |||
/******/ } | |||
]); | |||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly8vLi9hc3NldHMvYXBwL2JhY2tlbmQvY29tbW9uL2FwcC5jb21tb24uanMiLCJ3ZWJwYWNrOi8vLy4vYXNzZXRzL2FwcC9iYWNrZW5kL2NvbW1vbi9jb21tb24uc2NzcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7Ozs7O0FBQUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBRUE7QUFDQTtDQUdBO0FBQ0EsdUI7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7QUNaQSIsImZpbGUiOiJhcHAtYmFja2VuZC5lMGE2NjIwZC5qcyIsInNvdXJjZXNDb250ZW50IjpbIi8qXG4gKiBXZWxjb21lIHRvIHlvdXIgYXBwJ3MgbWFpbiBKYXZhU2NyaXB0IGZpbGUhXG4gKlxuICogV2UgcmVjb21tZW5kIGluY2x1ZGluZyB0aGUgYnVpbHQgdmVyc2lvbiBvZiB0aGlzIEphdmFTY3JpcHQgZmlsZVxuICogKGFuZCBpdHMgQ1NTIGZpbGUpIGluIHlvdXIgYmFzZSBsYXlvdXQgKGJhc2UuaHRtbC50d2lnKS5cbiAqL1xuXG4vLyBhbnkgQ1NTIHlvdSBpbXBvcnQgd2lsbCBvdXRwdXQgaW50byBhIHNpbmdsZSBjc3MgZmlsZSAoYXBwLmNzcyBpbiB0aGlzIGNhc2UpXG5pbXBvcnQgJy4vY29tbW9uLnNjc3MnO1xuaW1wb3J0ICcuL2NvbW1vbi5qcyc7XG5cbi8vIHN0YXJ0IHRoZSBTdGltdWx1cyBhcHBsaWNhdGlvblxuLy9pbXBvcnQgJy4vYm9vdHN0cmFwJzsiLCIvLyBleHRyYWN0ZWQgYnkgbWluaS1jc3MtZXh0cmFjdC1wbHVnaW5cbmV4cG9ydCB7fTsiXSwic291cmNlUm9vdCI6IiJ9 |
@@ -32,8 +32,8 @@ | |||
"js": [ | |||
"/build/runtime.3095b250.js", | |||
"/build/vendors-node_modules_core-js_internals_export_js.2e873f33.js", | |||
"/build/vendors-node_modules_core-js_modules_es_array_find_js.3e1960e9.js", | |||
"/build/adminlte-form.b55a3a97.js" | |||
"/build/vendors-node_modules_core-js_modules_es_array_find_js-_7db01.8e56d6b5.js", | |||
"/build/adminlte-form.52acb20e.js" | |||
], | |||
"css": [ | |||
"/build/adminlte-form.59862983.css" | |||
@@ -71,7 +71,7 @@ | |||
"/build/vendors-node_modules_core-js_internals_a-function_js-node_modules_jquery_src_jquery_js.9a2fdcaa.js", | |||
"/build/vendors-node_modules_jquery-ui-dist_jquery-ui_js.d62744d3.js", | |||
"/build/vendors-node_modules_core-js_modules_es_array_find_js-node_modules_core-js_modules_es_string_-b9e064.917b4192.js", | |||
"/build/adminlte-field-collection.07e2040b.js" | |||
"/build/adminlte-field-collection.c2a528d1.js" | |||
], | |||
"css": [ | |||
"/build/adminlte-field-collection.55dda2c2.css" | |||
@@ -106,7 +106,9 @@ | |||
"app-backend": { | |||
"js": [ | |||
"/build/runtime.3095b250.js", | |||
"/build/app-backend.e0a6620d.js" | |||
"/build/vendors-node_modules_core-js_internals_export_js.2e873f33.js", | |||
"/build/vendors-node_modules_core-js_modules_es_array_find_js-_7db00.020ca672.js", | |||
"/build/app-backend.2cae9cc3.js" | |||
], | |||
"css": [ | |||
"/build/app-backend.3d882954.css" |
@@ -3,20 +3,20 @@ | |||
"build/adminlte-index.css": "/build/adminlte-index.e4548695.css", | |||
"build/adminlte-index.js": "/build/adminlte-index.1bb01034.js", | |||
"build/adminlte-form.css": "/build/adminlte-form.59862983.css", | |||
"build/adminlte-form.js": "/build/adminlte-form.b55a3a97.js", | |||
"build/adminlte-form.js": "/build/adminlte-form.52acb20e.js", | |||
"build/adminlte-sort.css": "/build/adminlte-sort.8d9ca659.css", | |||
"build/adminlte-sort.js": "/build/adminlte-sort.a8a3ddff.js", | |||
"build/adminlte-field-filemanager.css": "/build/adminlte-field-filemanager.aacd1c4c.css", | |||
"build/adminlte-field-filemanager.js": "/build/adminlte-field-filemanager.5b4b01b5.js", | |||
"build/adminlte-field-collection.css": "/build/adminlte-field-collection.55dda2c2.css", | |||
"build/adminlte-field-collection.js": "/build/adminlte-field-collection.07e2040b.js", | |||
"build/adminlte-field-collection.js": "/build/adminlte-field-collection.c2a528d1.js", | |||
"build/adminlte-main.css": "/build/adminlte-main.87244ec8.css", | |||
"build/adminlte-main.js": "/build/adminlte-main.54e70d9c.js", | |||
"build/sov-reminder.css": "/build/sov-reminder.05d9ff45.css", | |||
"build/sov-reminder.js": "/build/sov-reminder.27580486.js", | |||
"build/sov-ticket.js": "/build/sov-ticket.df76c7a0.js", | |||
"build/app-backend.css": "/build/app-backend.3d882954.css", | |||
"build/app-backend.js": "/build/app-backend.e0a6620d.js", | |||
"build/app-backend.js": "/build/app-backend.2cae9cc3.js", | |||
"build/app-frontend.css": "/build/app-frontend.6b9defaa.css", | |||
"build/app-frontend.js": "/build/app-frontend.9b043e7a.js", | |||
"build/runtime.js": "/build/runtime.3095b250.js", | |||
@@ -28,7 +28,8 @@ | |||
"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_admin-lte_dist_js_adminlte_min_js-node_modules_bootstrap-autocomplete_di-69f55f.fa890b12.css": "/build/vendors-node_modules_admin-lte_dist_js_adminlte_min_js-node_modules_bootstrap-autocomplete_di-69f55f.fa890b12.css", | |||
"build/vendors-node_modules_admin-lte_dist_js_adminlte_min_js-node_modules_bootstrap-autocomplete_di-69f55f.b71e30a6.js": "/build/vendors-node_modules_admin-lte_dist_js_adminlte_min_js-node_modules_bootstrap-autocomplete_di-69f55f.b71e30a6.js", | |||
"build/vendors-node_modules_core-js_modules_es_array_find_js.3e1960e9.js": "/build/vendors-node_modules_core-js_modules_es_array_find_js.3e1960e9.js", | |||
"build/vendors-node_modules_core-js_modules_es_array_find_js-_7db00.020ca672.js": "/build/vendors-node_modules_core-js_modules_es_array_find_js-_7db00.020ca672.js", | |||
"build/vendors-node_modules_core-js_modules_es_array_find_js-_7db01.8e56d6b5.js": "/build/vendors-node_modules_core-js_modules_es_array_find_js-_7db01.8e56d6b5.js", | |||
"build/vendors-node_modules_core-js_modules_es_array_filter_js-node_modules_core-js_modules_es_array-f7c72f.83e6fd6b.js": "/build/vendors-node_modules_core-js_modules_es_array_filter_js-node_modules_core-js_modules_es_array-f7c72f.83e6fd6b.js", | |||
"build/vendors-node_modules_core-js_modules_es_array_find_js-node_modules_core-js_modules_es_string_-b9e064.917b4192.js": "/build/vendors-node_modules_core-js_modules_es_array_find_js-node_modules_core-js_modules_es_string_-b9e064.917b4192.js", | |||
"build/vendors-node_modules_bootstrap_dist_js_bootstrap_js.cfb3e18d.js": "/build/vendors-node_modules_bootstrap_dist_js_bootstrap_js.cfb3e18d.js", |
@@ -104,7 +104,7 @@ class DefaultController extends AbstractController | |||
$resultArrayPagination = $this->paginator->paginate( | |||
$resultArray, | |||
$page, | |||
2 | |||
10 | |||
); | |||
} | |||
@@ -3,6 +3,7 @@ | |||
namespace App\Doctrine\Extension; | |||
use App\Entity\Thematic; | |||
use App\Entity\Subthematic; | |||
use Doctrine\ORM\Mapping as ORM; | |||
trait DescriptionProjectTrait | |||
@@ -18,6 +19,11 @@ trait DescriptionProjectTrait | |||
*/ | |||
private $thematic; | |||
/** | |||
* @ORM\ManyToOne(targetEntity=Subthematic::class) | |||
*/ | |||
private $subthematic; | |||
public function getDescription(): ?string | |||
{ | |||
return $this->description; | |||
@@ -42,4 +48,16 @@ trait DescriptionProjectTrait | |||
return $this; | |||
} | |||
public function getSubthematic(): ?Subthematic | |||
{ | |||
return $this->subthematic; | |||
} | |||
public function setSubthematic(?Subthematic $subthematic): self | |||
{ | |||
$this->subthematic = $subthematic; | |||
return $this; | |||
} | |||
} |
@@ -3,6 +3,7 @@ | |||
namespace App\Type; | |||
use App\Entity\Dream; | |||
use App\Entity\Subthematic; | |||
use App\Entity\Thematic; | |||
use Lc\SovBundle\Doctrine\EntityManager; | |||
use Lc\SovBundle\Model\User\UserInterface; | |||
@@ -49,11 +50,32 @@ class DreamType extends AbstractType | |||
'thematic', | |||
EntityType::class, | |||
[ | |||
'label' => 'form.field.dream.thematic', | |||
'label' => 'form.field.revolt.thematic', | |||
'class' => Thematic::class, | |||
'required' => false, | |||
'choice_attr' => function ($choice, $key, $value) { | |||
return ['data-class' => 'theme' . strtolower($value)]; | |||
}, | |||
'attr' => [ | |||
'class' => 'theme' | |||
] | |||
] | |||
); | |||
) | |||
->add( | |||
'subthematic', | |||
EntityType::class, | |||
[ | |||
'label' => 'form.field.revolt.subthematic', | |||
'class' => Subthematic::class, | |||
'required' => false, | |||
'choice_attr' => function ($choice, $key, $value) { | |||
return ['data-class' => 'theme' . strtolower($choice->getThematic()->getId())]; | |||
}, | |||
'attr' => [ | |||
'class' => 'subtheme' | |||
] | |||
] | |||
);; | |||
} | |||
/** |
@@ -3,6 +3,7 @@ | |||
namespace App\Type; | |||
use App\Entity\Revolt; | |||
use App\Entity\Subthematic; | |||
use App\Entity\Thematic; | |||
use Lc\SovBundle\Doctrine\EntityManager; | |||
use Lc\SovBundle\Translation\TranslatorAdmin; | |||
@@ -10,8 +11,11 @@ use Symfony\Bridge\Doctrine\Form\Type\EntityType; | |||
use Symfony\Component\Form\AbstractType; | |||
use Symfony\Component\Form\Extension\Core\Type\TextareaType; | |||
use Symfony\Component\Form\FormBuilderInterface; | |||
use Symfony\Component\Form\FormInterface; | |||
use Symfony\Component\OptionsResolver\OptionsResolver; | |||
use Symfony\Component\Validator\Constraints\NotBlank; | |||
use Symfony\Component\Form\FormEvent; | |||
use Symfony\Component\Form\FormEvents; | |||
class RevoltType extends AbstractType | |||
{ | |||
@@ -47,6 +51,27 @@ class RevoltType extends AbstractType | |||
'label' => 'form.field.revolt.thematic', | |||
'class' => Thematic::class, | |||
'required' => false, | |||
'choice_attr' => function ($choice, $key, $value) { | |||
return ['data-class' => 'theme' . strtolower($value)]; | |||
}, | |||
'attr' => [ | |||
'class' => 'theme' | |||
] | |||
] | |||
) | |||
->add( | |||
'subthematic', | |||
EntityType::class, | |||
[ | |||
'label' => 'form.field.revolt.subthematic', | |||
'class' => Subthematic::class, | |||
'required' => false, | |||
'choice_attr' => function ($choice, $key, $value) { | |||
return ['data-class' => 'theme' . strtolower($choice->getThematic()->getId())]; | |||
}, | |||
'attr' => [ | |||
'class' => 'subtheme' | |||
] | |||
] | |||
); | |||
} | |||
@@ -54,8 +79,9 @@ class RevoltType extends AbstractType | |||
/** | |||
* {@inheritdoc} | |||
*/ | |||
public function configureOptions(OptionsResolver $resolver) | |||
{ | |||
public function configureOptions( | |||
OptionsResolver $resolver | |||
) { | |||
$resolver->setDefaults( | |||
[ | |||
'data_class' => $this->em->getEntityName(Revolt::class), |