Ver código fonte

form indiv

v1
Charly 3 anos atrás
pai
commit
b30aa0808a
42 arquivos alterados com 50778 adições e 50221 exclusões
  1. +40
    -2
      assets/app/frontend/js/script.js
  2. +27
    -1
      assets/app/frontend/scss/base.scss
  3. +96
    -0
      assets/app/frontend/scss/contribuate.scss
  4. +1
    -0
      assets/app/frontend/scss/vars.scss
  5. +2
    -2
      public/build/adminlte-field-collection.5e6980cd.js
  6. +2
    -2
      public/build/adminlte-index.b12b9c93.js
  7. +0
    -289
      public/build/adminlte-main.54e70d9c.js
  8. +129
    -0
      public/build/adminlte-main.b8c5ec34.js
  9. +2
    -2
      public/build/adminlte-plugins.724fdba0.js
  10. +0
    -332
      public/build/adminlte-sort.a8a3ddff.js
  11. +359
    -0
      public/build/adminlte-sort.c4158fbf.js
  12. +0
    -86
      public/build/app-backend.2cae9cc3.js
  13. +80
    -0
      public/build/app-backend.e87ef456.js
  14. +11144
    -0
      public/build/app-frontend.2a8eed13.css
  15. +169
    -0
      public/build/app-frontend.3bcbfd58.js
  16. +0
    -11050
      public/build/app-frontend.6b9defaa.css
  17. +0
    -135
      public/build/app-frontend.9b043e7a.js
  18. +24
    -28
      public/build/entrypoints.json
  19. +15
    -17
      public/build/manifest.json
  20. +238
    -2
      public/build/vendors-node_modules_admin-lte_dist_js_adminlte_min_js-node_modules_bootstrap-autocomplete_di-5760c2.7a48c88c.js
  21. +1
    -1
      public/build/vendors-node_modules_admin-lte_dist_js_adminlte_min_js-node_modules_bootstrap-autocomplete_di-5760c2.fa890b12.css
  22. +4580
    -0
      public/build/vendors-node_modules_bootstrap_dist_js_bootstrap_js-node_modules_core-js_modules_es_array_for-85fc9f.e742e2fb.js
  23. +0
    -4445
      public/build/vendors-node_modules_bootstrap_dist_js_bootstrap_js.cfb3e18d.js
  24. +0
    -12947
      public/build/vendors-node_modules_core-js_internals_a-function_js-node_modules_jquery_src_jquery_js.9a2fdcaa.js
  25. +0
    -523
      public/build/vendors-node_modules_core-js_internals_advance-string-index_js-node_modules_core-js_internals-bed4a0.74e1ccb1.js
  26. +13111
    -0
      public/build/vendors-node_modules_core-js_internals_array-iteration_js-node_modules_jquery_src_jquery_js.a55f993d.js
  27. +875
    -0
      public/build/vendors-node_modules_core-js_modules_es_array_filter_js-node_modules_core-js_modules_es_array-2f9703.9d3214e1.js
  28. +0
    -475
      public/build/vendors-node_modules_core-js_modules_es_array_filter_js-node_modules_core-js_modules_es_array-f7c72f.83e6fd6b.js
  29. +0
    -564
      public/build/vendors-node_modules_core-js_modules_es_array_find_js-node_modules_core-js_modules_es_date_to-c46b07.c3c1c04a.js
  30. +0
    -537
      public/build/vendors-node_modules_core-js_modules_es_array_find_js-node_modules_core-js_modules_es_string_-b9e064.917b4192.js
  31. +18927
    -0
      public/build/vendors-node_modules_core-js_modules_es_array_find_js-node_modules_jquery-ui-dist_jquery-ui_js.2e367944.js
  32. +683
    -0
      public/build/vendors-node_modules_core-js_modules_es_string_replace_js.06749256.js
  33. +0
    -18718
      public/build/vendors-node_modules_jquery-ui-dist_jquery-ui_js.d62744d3.js
  34. +17
    -3
      src/Controller/Frontend/ContribuateController.php
  35. +88
    -0
      src/Form/IndividualDataForm.php
  36. +0
    -31
      src/Form/IndividualForm.php
  37. +8
    -10
      src/Type/DreamType.php
  38. +26
    -5
      src/Type/ProjectBoostType.php
  39. +25
    -5
      src/Type/ProjectInspiringType.php
  40. +5
    -5
      src/Type/RevoltType.php
  41. +4
    -4
      templates/frontend/carto-carte.html.twig
  42. +100
    -0
      templates/frontend/contribuate.html.twig

+ 40
- 2
assets/app/frontend/js/script.js Ver arquivo

@@ -2,8 +2,46 @@ $(document).ready(function () {
menuToggle();
manageFormContact();
manageFormSearch();
manageFormIndiv();
});

function manageFormIndiv() {
document
.querySelectorAll('.add_item_link')
.forEach(btn => btn.addEventListener("click", addFormToCollection));
}

const addFormToCollection = (e) => {
const collectionHolder = document.querySelector('.' + e.currentTarget.dataset.collectionHolderClass);
const item = document.createElement('li');
item.innerHTML = collectionHolder
.dataset
.prototype
.replace(
/__name__/g,
collectionHolder.dataset.index
);

collectionHolder.appendChild(item);

collectionHolder.dataset.index++;
// add a delete link to the new form
addFormDeleteLink(item);
};

const addFormDeleteLink = (formLi) => {
const removeFormButton = document.createElement('button')
removeFormButton.classList.add('button-green', 'button-remove')
removeFormButton.innerText = 'Supprimer'

formLi.append(removeFormButton);

removeFormButton.addEventListener('click', (e) => {
e.preventDefault()
formLi.remove();
});
}

function menuToggle() {
var box = $('.menu-content');
var button = $('.toggle');
@@ -12,8 +50,8 @@ function menuToggle() {
});
}

function manageFormSearch(){
$(".dropdown-search").on("change", "input[type='checkbox']", function() {
function manageFormSearch() {
$(".dropdown-search").on("change", "input[type='checkbox']", function () {
$(this).closest("li").toggleClass("active", this.checked);
});


+ 27
- 1
assets/app/frontend/scss/base.scss Ver arquivo

@@ -7,7 +7,7 @@ img {
max-height: 100%;
}

li, p, a {
li, p, a, select, option {
font-family: FranklinGothic;
}

@@ -47,6 +47,32 @@ button:focus {
margin-bottom: 50px;
}

.button-green {
border: 2px solid $green;
background-color: #FFF;
color: $green;
text-transform: uppercase;
font-family: dinbold;
font-size: 20px;
padding: 15px;
display: inline-block;

&:hover {
border-color: $yellow;
}
}

.button-yellow {
color: $yellow;
background-color: $green;
padding: 15px;
font-size: 22px;
margin-top: 30px;
display: inline-block;
border: none;
font-family: dinbold;
}

.link-slide {
position: relative;
overflow: hidden;

+ 96
- 0
assets/app/frontend/scss/contribuate.scss Ver arquivo

@@ -63,6 +63,102 @@
font-size: 50px;
font-family: FranklinGothic;
text-align: center;
margin-bottom: 50px;
}

form {
.label {
color: $green;
font-family: FranklinGothic;
font-size: 18px;
}

button {
font-size: 15px;
padding: 10px;
}

ul {
list-style-type: none;
padding-left: 0;
}

.list-territory {
li {
height: 25px;

label {
color: #808080;
clear: both;
}
}
}

h2 {
color: $green;
font-family: FranklinGothic;
font-size: 27px;
margin-top: 70px;

img {
height: 88px;
}
}

.row-revolt {
h2 {
color: $orange;
}
}

.row-dream {
h2 {
color: $yellow;
}
}

.row-project-insp {
h2 {
color: $maron;
}
}

.revolt, .dream, .projectBoost, .projectInspiring {
textarea {
width: 100%;
border: 2px solid $green;
min-height: 125px;
}

select {
color: $green;
background-color: #FFF;
border-radius: 0;
border-color: $green;
height: 40px;
min-width: 300px;
margin-top: 15px;
margin-bottom: 15px;
}

label {
display: none;
}

.button-remove {
border-color: $red;
margin-bottom: 30px;
}
}

.save {
margin-top: 100px;
paddin-top: 20px;
paddin-bottom: 20px;
padding-left: 30px;
padding-right: 30px;
font-size: 27px;
}
}
}
}

+ 1
- 0
assets/app/frontend/scss/vars.scss Ver arquivo

@@ -6,6 +6,7 @@ $red: #e73452;
$orange: #dc5b2f;
$blue: #17428c;
$green: #568b6f;
$maron: #925038;

$headerheight: 122px;


public/build/adminlte-field-collection.5e6980cd.js
Diferenças do arquivo suprimidas por serem muito extensas
Ver arquivo


public/build/adminlte-index.b12b9c93.js
Diferenças do arquivo suprimidas por serem muito extensas
Ver arquivo


+ 0
- 289
public/build/adminlte-main.54e70d9c.js
Diferenças do arquivo suprimidas por serem muito extensas
Ver arquivo


+ 129
- 0
public/build/adminlte-main.b8c5ec34.js
Diferenças do arquivo suprimidas por serem muito extensas
Ver arquivo


public/build/adminlte-plugins.724fdba0.js
Diferenças do arquivo suprimidas por serem muito extensas
Ver arquivo


+ 0
- 332
public/build/adminlte-sort.a8a3ddff.js
Diferenças do arquivo suprimidas por serem muito extensas
Ver arquivo


+ 359
- 0
public/build/adminlte-sort.c4158fbf.js
Diferenças do arquivo suprimidas por serem muito extensas
Ver arquivo


+ 0
- 86
public/build/app-backend.2cae9cc3.js Ver arquivo

@@ -1,86 +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 ***!
\*********************************************/
/***/ ((__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,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly8vLi9hc3NldHMvYXBwL2JhY2tlbmQvY29tbW9uL2FwcC5jb21tb24uanMiLCJ3ZWJwYWNrOi8vLy4vYXNzZXRzL2FwcC9iYWNrZW5kL2NvbW1vbi9jb21tb24uanMiLCJ3ZWJwYWNrOi8vLy4vYXNzZXRzL2FwcC9iYWNrZW5kL2NvbW1vbi9jb21tb24uc2NzcyJdLCJuYW1lcyI6WyIkIiwiZG9jdW1lbnQiLCJyZWFkeSIsIm9uIiwiZmluZCIsImVhY2giLCJpIiwiZSIsIlNvdldpZGdldHMiLCJzZXRTZWxlY3QyIiwic2V0U3VidGhlbWUiLCJzZWxlY3QiLCJ0cmlnZ2VyIiwiJHNlbGVjdCIsIlNvdlRvb2xzIiwibG9nIiwidGFyZ2V0IiwiZGF0YSIsImNsb3Nlc3QiLCJwcm9wIiwibm90Il0sIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7Ozs7O0FBQUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBRUE7QUFDQTtDQUdBO0FBQ0EsdUI7Ozs7Ozs7Ozs7OztBQ1pBQSxDQUFDLENBQUNDLFFBQUQsQ0FBRCxDQUFZQyxLQUFaLENBQWtCLFlBQVk7QUFDM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KS5kYXRhKCdjbGFzcycpICsgXCInXVwiKS5oaWRlKCk7XG4gICAgLy8gfSk7XG59KTtcblxuXG5mdW5jdGlvbiBzZXRTdWJ0aGVtZSgkc2VsZWN0KSB7XG4gICAgJHNlbGVjdC5vbignY2hhbmdlJywgZnVuY3Rpb24gKGUpIHtcbiAgICAgICAgU292VG9vbHMubG9nKCQoZS50YXJnZXQpLmZpbmQoJ29wdGlvbjpzZWxlY3RlZCcpLmRhdGEoJ2NsYXNzJykpO1xuICAgICAgICAkKGUudGFyZ2V0KS5jbG9zZXN0KCcuZm9ybS13aWRnZXQtY29tcG91bmQnKS5maW5kKCcuc3VidGhlbWUgb3B0aW9uJykucHJvcCgnZGlzYWJsZWQnLCBmYWxzZSk7XG4gICAgICAgICQoZS50YXJnZXQpLmNsb3Nlc3QoJy5mb3JtLXdpZGdldC1jb21wb3VuZCcpLmZpbmQoJy5zdWJ0aGVtZSBvcHRpb25bZGF0YS1jbGFzc10nKS5ub3QoXCJbZGF0YS1jbGFzcz0nXCIgKyAkKGUudGFyZ2V0KS5maW5kKCdvcHRpb246c2VsZWN0ZWQnKS5kYXRhKCdjbGFzcycpICsgXCInXVwiKS5wcm9wKCdkaXNhYmxlZCcsIHRydWUpO1xuICAgICAgICBTb3ZXaWRnZXRzLnNldFNlbGVjdDIoJCh0aGlzKS5jbG9zZXN0KCcuZm9ybS13aWRnZXQtY29tcG91bmQnKS5maW5kKCcuc3VidGhlbWUnKSk7XG4gICAgfSk7XG59IiwiLy8gZXh0cmFjdGVkIGJ5IG1pbmktY3NzLWV4dHJhY3QtcGx1Z2luXG5leHBvcnQge307Il0sInNvdXJjZVJvb3QiOiIifQ==

+ 80
- 0
public/build/app-backend.e87ef456.js Ver arquivo

@@ -0,0 +1,80 @@
(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');
});
});

function setSubtheme($select) {
$select.on('change', function (e) {
$(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,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly8vLi9hc3NldHMvYXBwL2JhY2tlbmQvY29tbW9uL2FwcC5jb21tb24uanMiLCJ3ZWJwYWNrOi8vLy4vYXNzZXRzL2FwcC9iYWNrZW5kL2NvbW1vbi9jb21tb24uanMiLCJ3ZWJwYWNrOi8vLy4vYXNzZXRzL2FwcC9iYWNrZW5kL2NvbW1vbi9jb21tb24uc2NzcyJdLCJuYW1lcyI6WyIkIiwiZG9jdW1lbnQiLCJyZWFkeSIsIm9uIiwiZmluZCIsImVhY2giLCJpIiwiZSIsIlNvdldpZGdldHMiLCJzZXRTZWxlY3QyIiwic2V0U3VidGhlbWUiLCJzZWxlY3QiLCJ0cmlnZ2VyIiwiJHNlbGVjdCIsInRhcmdldCIsImNsb3Nlc3QiLCJwcm9wIiwibm90IiwiZGF0YSJdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7OztBQUFBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUVBO0FBQ0E7Q0FHQTtBQUNBLHVCOzs7Ozs7Ozs7Ozs7QUNaQUEsQ0FBQyxDQUFDQyxRQUFELENBQUQsQ0FBWUMsS0FBWixDQUFrQixZQUFZO0FBQzFCRixHQUFDLENBQUMsbUNBQUQsQ0FBRCxDQUF1Q0csRUFBdkMsQ0FBMEMscUJBQTFDLEVBQWlFLFlBQVk7QUFDekVILEtBQUMsQ0FBQyxJQUFELENBQUQsQ0FBUUksSUFBUixDQU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IFNvdldpZGdldHMuc2V0U2VsZWN0MigkKGUpKTtcbiAgICAgICAgICAgIHNldFN1YnRoZW1lKCQoZSkpO1xuICAgICAgICB9KVxuICAgIH0pO1xuXG4gICAgJCgnLnRoZW1lJykuZWFjaChmdW5jdGlvbiAoaSxzZWxlY3Qpe1xuICAgICAgICBzZXRTdWJ0aGVtZSgkKHNlbGVjdCkpO1xuICAgICAgICAkKHNlbGVjdCkudHJpZ2dlcignY2hhbmdlJyk7XG4gICAgfSlcbn0pO1xuXG5cbmZ1bmN0aW9uIHNldFN1YnRoZW1lKCRzZWxlY3QpIHtcbiAgICAkc2VsZWN0Lm9uKCdjaGFuZ2UnLCBmdW5jdGlvbiAoZSkge1xuICAgICAgICAkKGUudGFyZ2V0KS5jbG9zZXN0KCcuZm9ybS13aWRnZXQtY29tcG91bmQnKS5maW5kKCcuc3VidGhlbWUgb3B0aW9uJykucHJvcCgnZGlzYWJsZWQnLCBmYWxzZSk7XG4gICAgICAgICQoZS50YXJnZXQpLmNsb3Nlc3QoJy5mb3JtLXdpZGdldC1jb21wb3VuZCcpLmZpbmQoJy5zdWJ0aGVtZSBvcHRpb25bZGF0YS1jbGFzc10nKS5ub3QoXCJbZGF0YS1jbGFzcz0nXCIgKyAkKGUudGFyZ2V0KS5maW5kKCdvcHRpb246c2VsZWN0ZWQnKS5kYXRhKCdjbGFzcycpICsgXCInXVwiKS5wcm9wKCdkaXNhYmxlZCcsIHRydWUpO1xuICAgICAgICBTb3ZXaWRnZXRzLnNldFNlbGVjdDIoJCh0aGlzKS5jbG9zZXN0KCcuZm9ybS13aWRnZXQtY29tcG91bmQnKS5maW5kKCcuc3VidGhlbWUnKSk7XG4gICAgfSk7XG59IiwiLy8gZXh0cmFjdGVkIGJ5IG1pbmktY3NzLWV4dHJhY3QtcGx1Z2luXG5leHBvcnQge307Il0sInNvdXJjZVJvb3QiOiIifQ==

+ 11144
- 0
public/build/app-frontend.2a8eed13.css
Diferenças do arquivo suprimidas por serem muito extensas
Ver arquivo


+ 169
- 0
public/build/app-frontend.3bcbfd58.js
Diferenças do arquivo suprimidas por serem muito extensas
Ver arquivo


+ 0
- 11050
public/build/app-frontend.6b9defaa.css
Diferenças do arquivo suprimidas por serem muito extensas
Ver arquivo


+ 0
- 135
public/build/app-frontend.9b043e7a.js
Diferenças do arquivo suprimidas por serem muito extensas
Ver arquivo


+ 24
- 28
public/build/entrypoints.json Ver arquivo

@@ -4,25 +4,23 @@
"js": [
"/build/runtime.3095b250.js",
"/build/vendors-node_modules_core-js_internals_export_js.2e873f33.js",
"/build/vendors-node_modules_core-js_internals_advance-string-index_js-node_modules_core-js_internals-bed4a0.74e1ccb1.js",
"/build/vendors-node_modules_core-js_internals_a-function_js-node_modules_jquery_src_jquery_js.9a2fdcaa.js",
"/build/vendors-node_modules_core-js_modules_es_array_find_js-node_modules_core-js_modules_es_date_to-c46b07.c3c1c04a.js",
"/build/vendors-node_modules_core-js_modules_es_string_replace_js.06749256.js",
"/build/vendors-node_modules_core-js_internals_array-iteration_js-node_modules_jquery_src_jquery_js.a55f993d.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.b71e30a6.js",
"/build/adminlte-plugins.bdfac249.js"
"/build/vendors-node_modules_admin-lte_dist_js_adminlte_min_js-node_modules_bootstrap-autocomplete_di-5760c2.7a48c88c.js",
"/build/adminlte-plugins.724fdba0.js"
],
"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-5760c2.fa890b12.css"
]
},
"adminlte-index": {
"js": [
"/build/runtime.3095b250.js",
"/build/vendors-node_modules_core-js_internals_export_js.2e873f33.js",
"/build/vendors-node_modules_core-js_internals_advance-string-index_js-node_modules_core-js_internals-bed4a0.74e1ccb1.js",
"/build/vendors-node_modules_core-js_modules_es_array_find_js-node_modules_core-js_modules_es_date_to-c46b07.c3c1c04a.js",
"/build/vendors-node_modules_core-js_modules_es_array_filter_js-node_modules_core-js_modules_es_array-f7c72f.83e6fd6b.js",
"/build/adminlte-index.1bb01034.js"
"/build/vendors-node_modules_core-js_modules_es_string_replace_js.06749256.js",
"/build/vendors-node_modules_core-js_modules_es_array_filter_js-node_modules_core-js_modules_es_array-2f9703.9d3214e1.js",
"/build/adminlte-index.b12b9c93.js"
],
"css": [
"/build/adminlte-index.e4548695.css"
@@ -43,11 +41,10 @@
"js": [
"/build/runtime.3095b250.js",
"/build/vendors-node_modules_core-js_internals_export_js.2e873f33.js",
"/build/vendors-node_modules_core-js_internals_advance-string-index_js-node_modules_core-js_internals-bed4a0.74e1ccb1.js",
"/build/vendors-node_modules_core-js_internals_a-function_js-node_modules_jquery_src_jquery_js.9a2fdcaa.js",
"/build/vendors-node_modules_core-js_modules_es_array_find_js-node_modules_core-js_modules_es_date_to-c46b07.c3c1c04a.js",
"/build/vendors-node_modules_jquery-ui-dist_jquery-ui_js.d62744d3.js",
"/build/adminlte-sort.a8a3ddff.js"
"/build/vendors-node_modules_core-js_modules_es_string_replace_js.06749256.js",
"/build/vendors-node_modules_core-js_internals_array-iteration_js-node_modules_jquery_src_jquery_js.a55f993d.js",
"/build/vendors-node_modules_core-js_modules_es_array_find_js-node_modules_jquery-ui-dist_jquery-ui_js.2e367944.js",
"/build/adminlte-sort.c4158fbf.js"
],
"css": [
"/build/adminlte-sort.8d9ca659.css"
@@ -67,11 +64,10 @@
"js": [
"/build/runtime.3095b250.js",
"/build/vendors-node_modules_core-js_internals_export_js.2e873f33.js",
"/build/vendors-node_modules_core-js_internals_advance-string-index_js-node_modules_core-js_internals-bed4a0.74e1ccb1.js",
"/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.c2a528d1.js"
"/build/vendors-node_modules_core-js_modules_es_string_replace_js.06749256.js",
"/build/vendors-node_modules_core-js_internals_array-iteration_js-node_modules_jquery_src_jquery_js.a55f993d.js",
"/build/vendors-node_modules_core-js_modules_es_array_find_js-node_modules_jquery-ui-dist_jquery-ui_js.2e367944.js",
"/build/adminlte-field-collection.5e6980cd.js"
],
"css": [
"/build/adminlte-field-collection.55dda2c2.css"
@@ -81,8 +77,8 @@
"js": [
"/build/runtime.3095b250.js",
"/build/vendors-node_modules_core-js_internals_export_js.2e873f33.js",
"/build/vendors-node_modules_core-js_internals_advance-string-index_js-node_modules_core-js_internals-bed4a0.74e1ccb1.js",
"/build/adminlte-main.54e70d9c.js"
"/build/vendors-node_modules_core-js_modules_es_string_replace_js.06749256.js",
"/build/adminlte-main.b8c5ec34.js"
],
"css": [
"/build/adminlte-main.87244ec8.css"
@@ -108,7 +104,7 @@
"/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-_7db00.020ca672.js",
"/build/app-backend.2cae9cc3.js"
"/build/app-backend.e87ef456.js"
],
"css": [
"/build/app-backend.3d882954.css"
@@ -118,14 +114,14 @@
"js": [
"/build/runtime.3095b250.js",
"/build/vendors-node_modules_core-js_internals_export_js.2e873f33.js",
"/build/vendors-node_modules_core-js_internals_advance-string-index_js-node_modules_core-js_internals-bed4a0.74e1ccb1.js",
"/build/vendors-node_modules_core-js_internals_a-function_js-node_modules_jquery_src_jquery_js.9a2fdcaa.js",
"/build/vendors-node_modules_core-js_modules_es_string_replace_js.06749256.js",
"/build/vendors-node_modules_core-js_internals_array-iteration_js-node_modules_jquery_src_jquery_js.a55f993d.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.cfb3e18d.js",
"/build/app-frontend.9b043e7a.js"
"/build/vendors-node_modules_bootstrap_dist_js_bootstrap_js-node_modules_core-js_modules_es_array_for-85fc9f.e742e2fb.js",
"/build/app-frontend.3bcbfd58.js"
],
"css": [
"/build/app-frontend.6b9defaa.css"
"/build/app-frontend.2a8eed13.css"
]
}
}

+ 15
- 17
public/build/manifest.json Ver arquivo

@@ -1,38 +1,36 @@
{
"build/adminlte-plugins.js": "/build/adminlte-plugins.bdfac249.js",
"build/adminlte-plugins.js": "/build/adminlte-plugins.724fdba0.js",
"build/adminlte-index.css": "/build/adminlte-index.e4548695.css",
"build/adminlte-index.js": "/build/adminlte-index.1bb01034.js",
"build/adminlte-index.js": "/build/adminlte-index.b12b9c93.js",
"build/adminlte-form.css": "/build/adminlte-form.59862983.css",
"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-sort.js": "/build/adminlte-sort.c4158fbf.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.c2a528d1.js",
"build/adminlte-field-collection.js": "/build/adminlte-field-collection.5e6980cd.js",
"build/adminlte-main.css": "/build/adminlte-main.87244ec8.css",
"build/adminlte-main.js": "/build/adminlte-main.54e70d9c.js",
"build/adminlte-main.js": "/build/adminlte-main.b8c5ec34.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.2cae9cc3.js",
"build/app-frontend.css": "/build/app-frontend.6b9defaa.css",
"build/app-frontend.js": "/build/app-frontend.9b043e7a.js",
"build/app-backend.js": "/build/app-backend.e87ef456.js",
"build/app-frontend.css": "/build/app-frontend.2a8eed13.css",
"build/app-frontend.js": "/build/app-frontend.3bcbfd58.js",
"build/runtime.js": "/build/runtime.3095b250.js",
"build/vendors-node_modules_core-js_internals_export_js.2e873f33.js": "/build/vendors-node_modules_core-js_internals_export_js.2e873f33.js",
"build/vendors-node_modules_core-js_internals_advance-string-index_js-node_modules_core-js_internals-bed4a0.74e1ccb1.js": "/build/vendors-node_modules_core-js_internals_advance-string-index_js-node_modules_core-js_internals-bed4a0.74e1ccb1.js",
"build/vendors-node_modules_core-js_internals_a-function_js-node_modules_jquery_src_jquery_js.9a2fdcaa.js": "/build/vendors-node_modules_core-js_internals_a-function_js-node_modules_jquery_src_jquery_js.9a2fdcaa.js",
"build/vendors-node_modules_core-js_modules_es_array_find_js-node_modules_core-js_modules_es_date_to-c46b07.c3c1c04a.js": "/build/vendors-node_modules_core-js_modules_es_array_find_js-node_modules_core-js_modules_es_date_to-c46b07.c3c1c04a.js",
"build/vendors-node_modules_jquery-ui-dist_jquery-ui_js.d62744d3.js": "/build/vendors-node_modules_jquery-ui-dist_jquery-ui_js.d62744d3.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_internals_array-iteration_js-node_modules_jquery_src_jquery_js.a55f993d.js": "/build/vendors-node_modules_core-js_internals_array-iteration_js-node_modules_jquery_src_jquery_js.a55f993d.js",
"build/vendors-node_modules_core-js_modules_es_array_find_js-node_modules_jquery-ui-dist_jquery-ui_js.2e367944.js": "/build/vendors-node_modules_core-js_modules_es_array_find_js-node_modules_jquery-ui-dist_jquery-ui_js.2e367944.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_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_admin-lte_dist_js_adminlte_min_js-node_modules_bootstrap-autocomplete_di-5760c2.fa890b12.css": "/build/vendors-node_modules_admin-lte_dist_js_adminlte_min_js-node_modules_bootstrap-autocomplete_di-5760c2.fa890b12.css",
"build/vendors-node_modules_admin-lte_dist_js_adminlte_min_js-node_modules_bootstrap-autocomplete_di-5760c2.7a48c88c.js": "/build/vendors-node_modules_admin-lte_dist_js_adminlte_min_js-node_modules_bootstrap-autocomplete_di-5760c2.7a48c88c.js",
"build/vendors-node_modules_core-js_modules_es_array_filter_js-node_modules_core-js_modules_es_array-2f9703.9d3214e1.js": "/build/vendors-node_modules_core-js_modules_es_array_filter_js-node_modules_core-js_modules_es_array-2f9703.9d3214e1.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",
"build/vendors-node_modules_bootstrap_dist_js_bootstrap_js-node_modules_core-js_modules_es_array_for-85fc9f.e742e2fb.js": "/build/vendors-node_modules_bootstrap_dist_js_bootstrap_js-node_modules_core-js_modules_es_array_for-85fc9f.e742e2fb.js",
"build/images/fa-solid-900.svg": "/build/images/fa-solid-900.13de59f1.svg",
"build/images/fa-brands-400.svg": "/build/images/fa-brands-400.216edb96.svg",
"build/fonts/fa-solid-900.eot": "/build/fonts/fa-solid-900.efbd5d20.eot",

public/build/vendors-node_modules_admin-lte_dist_js_adminlte_min_js-node_modules_bootstrap-autocomplete_di-5760c2.7a48c88c.js
Diferenças do arquivo suprimidas por serem muito extensas
Ver arquivo


public/build/vendors-node_modules_admin-lte_dist_js_adminlte_min_js-node_modules_bootstrap-autocomplete_di-5760c2.fa890b12.css
Diferenças do arquivo suprimidas por serem muito extensas
Ver arquivo


+ 4580
- 0
public/build/vendors-node_modules_bootstrap_dist_js_bootstrap_js-node_modules_core-js_modules_es_array_for-85fc9f.e742e2fb.js
Diferenças do arquivo suprimidas por serem muito extensas
Ver arquivo


+ 0
- 4445
public/build/vendors-node_modules_bootstrap_dist_js_bootstrap_js.cfb3e18d.js
Diferenças do arquivo suprimidas por serem muito extensas
Ver arquivo


+ 0
- 12947
public/build/vendors-node_modules_core-js_internals_a-function_js-node_modules_jquery_src_jquery_js.9a2fdcaa.js
Diferenças do arquivo suprimidas por serem muito extensas
Ver arquivo


+ 0
- 523
public/build/vendors-node_modules_core-js_internals_advance-string-index_js-node_modules_core-js_internals-bed4a0.74e1ccb1.js
Diferenças do arquivo suprimidas por serem muito extensas
Ver arquivo


+ 13111
- 0
public/build/vendors-node_modules_core-js_internals_array-iteration_js-node_modules_jquery_src_jquery_js.a55f993d.js
Diferenças do arquivo suprimidas por serem muito extensas
Ver arquivo


+ 875
- 0
public/build/vendors-node_modules_core-js_modules_es_array_filter_js-node_modules_core-js_modules_es_array-2f9703.9d3214e1.js
Diferenças do arquivo suprimidas por serem muito extensas
Ver arquivo


+ 0
- 475
public/build/vendors-node_modules_core-js_modules_es_array_filter_js-node_modules_core-js_modules_es_array-f7c72f.83e6fd6b.js
Diferenças do arquivo suprimidas por serem muito extensas
Ver arquivo


+ 0
- 564
public/build/vendors-node_modules_core-js_modules_es_array_find_js-node_modules_core-js_modules_es_date_to-c46b07.c3c1c04a.js
Diferenças do arquivo suprimidas por serem muito extensas
Ver arquivo


+ 0
- 537
public/build/vendors-node_modules_core-js_modules_es_array_find_js-node_modules_core-js_modules_es_string_-b9e064.917b4192.js
Diferenças do arquivo suprimidas por serem muito extensas
Ver arquivo


+ 18927
- 0
public/build/vendors-node_modules_core-js_modules_es_array_find_js-node_modules_jquery-ui-dist_jquery-ui_js.2e367944.js
Diferenças do arquivo suprimidas por serem muito extensas
Ver arquivo


+ 683
- 0
public/build/vendors-node_modules_core-js_modules_es_string_replace_js.06749256.js
Diferenças do arquivo suprimidas por serem muito extensas
Ver arquivo


+ 0
- 18718
public/build/vendors-node_modules_jquery-ui-dist_jquery-ui_js.d62744d3.js
Diferenças do arquivo suprimidas por serem muito extensas
Ver arquivo


+ 17
- 3
src/Controller/Frontend/ContribuateController.php Ver arquivo

@@ -3,15 +3,29 @@
namespace App\Controller\Frontend;


use App\Form\IndividualForm;
use App\Entity\IndividualData;
use App\Form\IndividualDataForm;
use Doctrine\ORM\EntityManagerInterface;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpFoundation\Response;

class ContribuateController extends DefaultController
{

public function contribuate()
public function contribuate(Request $request, EntityManagerInterface $entityManager): Response
{
$form = $this->createForm(IndividualForm::class);
$individualData = new IndividualData();
$form = $this->createForm(IndividualDataForm::class, $individualData, ["context" => "frontend"]);

$form->handleRequest($request);
if ($form->isSubmitted() && $form->isValid()) {
// dump($individualData);
// dump($form);
// die;
$individualData->setStatus(0);
$entityManager->create($individualData);
$entityManager->flush();
}
return $this->render(
'frontend/contribuate.html.twig',
[

+ 88
- 0
src/Form/IndividualDataForm.php Ver arquivo

@@ -0,0 +1,88 @@
<?php

namespace App\Form;

use App\Entity\IndividualData;
use App\Entity\Territory;
use App\Type\DreamType;
use App\Type\ProjectBoostType;
use App\Type\ProjectInspiringType;
use App\Type\RevoltType;
use Symfony\Bridge\Doctrine\Form\Type\EntityType;
use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\Extension\Core\Type\CollectionType;
use Symfony\Component\Form\Extension\Core\Type\SubmitType;
use Symfony\Component\Form\FormBuilderInterface;
use Symfony\Component\OptionsResolver\OptionsResolver;

class IndividualDataForm extends AbstractType
{
public function buildForm(FormBuilderInterface $builder, array $options)
{
$builder
->add('territory', EntityType::class, [
'label' => 'Je suis un.e citoyen.ne du',
'class' => Territory::class,
'expanded' => true,
'multiple' => false,
])
->add('revolt', CollectionType::class, [
'entry_type' => RevoltType::class,
'entry_options' => [
'context' => $options['context'],
'label' => false,
],
'label' => 'Qu’est ce qui vous révolte sur votre territoire ?',
'allow_add' => true,
'allow_delete' => true,
'by_reference' => false,
])
->add('dream', CollectionType::class, [
'entry_type' => DreamType::class,
'entry_options' => [
'context' => $options['context'],
'label' => false,
],
'label' => 'Quel est votre ou vos rêves pour votre territoire ?',
'allow_add' => true,
'allow_delete' => true,
'by_reference' => false,
])
->add('projectBoost', CollectionType::class, [
'entry_type' => ProjectBoostType::class,
'entry_options' => [
'context' => $options['context'],
'label' => false,
],
'label' => 'Quelles initiatives locales meriteraient à votre avis d’être davantage soutenues ?',
'allow_add' => true,
'allow_delete' => true,
'by_reference' => false,
])
->add('projectInspiring', CollectionType::class, [
'entry_type' => ProjectInspiringType::class,
'entry_options' => [
'context' => $options['context'],
'label' => false,
],
'label' => 'Quelles initiatives que vous avez pû découvrir ailleurs auraient à votre avis toute leur place sur votre territoire ?',
'allow_add' => true,
'allow_delete' => true,
'by_reference' => false,
])
->add('save', SubmitType::class, [
'attr' => ['class' => 'save button-yellow'],
'label' => 'ENVOYER'
]);
}

public function configureOptions(OptionsResolver $resolver)
{
$resolver->setDefaults(
[
'data_class' => IndividualData::class,
"context" => "backend"
]
);
}
}

+ 0
- 31
src/Form/IndividualForm.php Ver arquivo

@@ -1,31 +0,0 @@
<?php

namespace App\Form;

use App\Entity\Territory;
use Symfony\Bridge\Doctrine\Form\Type\EntityType;
use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\FormBuilderInterface;
use Symfony\Component\OptionsResolver\OptionsResolver;

class IndividualForm extends AbstractType
{
public function buildForm(FormBuilderInterface $builder, array $options)
{
$builder
->add('territory', EntityType::class, [
'label' => 'Je suis un.e citoyen.ne du',
'class' => Territory::class,
'expanded' => true,
'multiple' => false,
])
->add('revolt');
}

public function configureOptions(OptionsResolver $resolver)
{
$resolver->setDefaults([
// Configure your form options here
]);
}
}

+ 8
- 10
src/Type/DreamType.php Ver arquivo

@@ -6,17 +6,12 @@ use App\Entity\Dream;
use App\Entity\Subthematic;
use App\Entity\Thematic;
use Lc\SovBundle\Doctrine\EntityManager;
use Lc\SovBundle\Model\User\UserInterface;
use Lc\SovBundle\Translation\TranslatorAdmin;
use Symfony\Bridge\Doctrine\Form\Type\EntityType;
use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\Extension\Core\Type\PasswordType;
use Symfony\Component\Form\Extension\Core\Type\RepeatedType;
use Symfony\Component\Form\Extension\Core\Type\SubmitType;
use Symfony\Component\Form\Extension\Core\Type\TextareaType;
use Symfony\Component\Form\FormBuilderInterface;
use Symfony\Component\OptionsResolver\OptionsResolver;
use Symfony\Component\Security\Core\Validator\Constraints\UserPassword;
use Symfony\Component\Validator\Constraints\NotBlank;

class DreamType extends AbstractType
@@ -50,7 +45,7 @@ class DreamType extends AbstractType
'thematic',
EntityType::class,
[
'label' => 'form.field.revolt.thematic',
'label' => 'form.field.dream.thematic',
'class' => Thematic::class,
'required' => false,
'choice_attr' => function ($choice, $key, $value) {
@@ -60,12 +55,13 @@ class DreamType extends AbstractType
'class' => 'theme'
]
]
)
->add(
);
if ($options['context'] == "backend") {
$builder->add(
'subthematic',
EntityType::class,
[
'label' => 'form.field.revolt.subthematic',
'label' => 'form.field.dream.subthematic',
'class' => Subthematic::class,
'required' => false,
'choice_attr' => function ($choice, $key, $value) {
@@ -75,7 +71,8 @@ class DreamType extends AbstractType
'class' => 'subtheme'
]
]
);;
);
}
}

/**
@@ -86,6 +83,7 @@ class DreamType extends AbstractType
$resolver->setDefaults(
[
'data_class' => $this->em->getEntityName(Dream::class),
'context' => 'backend'
]
);
}

+ 26
- 5
src/Type/ProjectBoostType.php Ver arquivo

@@ -3,19 +3,15 @@
namespace App\Type;

use App\Entity\ProjectBoost;
use App\Entity\Subthematic;
use App\Entity\Thematic;
use Lc\SovBundle\Doctrine\EntityManager;
use Lc\SovBundle\Model\User\UserInterface;
use Lc\SovBundle\Translation\TranslatorAdmin;
use Symfony\Bridge\Doctrine\Form\Type\EntityType;
use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\Extension\Core\Type\PasswordType;
use Symfony\Component\Form\Extension\Core\Type\RepeatedType;
use Symfony\Component\Form\Extension\Core\Type\SubmitType;
use Symfony\Component\Form\Extension\Core\Type\TextareaType;
use Symfony\Component\Form\FormBuilderInterface;
use Symfony\Component\OptionsResolver\OptionsResolver;
use Symfony\Component\Security\Core\Validator\Constraints\UserPassword;
use Symfony\Component\Validator\Constraints\NotBlank;

class ProjectBoostType extends AbstractType
@@ -52,8 +48,32 @@ class ProjectBoostType extends AbstractType
'label' => 'form.field.projectBoost.thematic',
'class' => Thematic::class,
'required' => false,
'choice_attr' => function ($choice, $key, $value) {
return ['data-class' => 'theme' . strtolower($value)];
},
'attr' => [
'class' => 'theme'
]
]
);

if ($options['context'] == "backend") {
$builder->add(
'subthematic',
EntityType::class,
[
'label' => 'form.field.projectBoost.subthematic',
'class' => Subthematic::class,
'required' => false,
'choice_attr' => function ($choice, $key, $value) {
return ['data-class' => 'theme' . strtolower($choice->getThematic()->getId())];
},
'attr' => [
'class' => 'subtheme'
]
]
);
}
}

/**
@@ -64,6 +84,7 @@ class ProjectBoostType extends AbstractType
$resolver->setDefaults(
[
'data_class' => $this->em->getEntityName(ProjectBoost::class),
'context' => 'backend'
]
);
}

+ 25
- 5
src/Type/ProjectInspiringType.php Ver arquivo

@@ -3,19 +3,15 @@
namespace App\Type;

use App\Entity\ProjectInspiring;
use App\Entity\Subthematic;
use App\Entity\Thematic;
use Lc\SovBundle\Doctrine\EntityManager;
use Lc\SovBundle\Model\User\UserInterface;
use Lc\SovBundle\Translation\TranslatorAdmin;
use Symfony\Bridge\Doctrine\Form\Type\EntityType;
use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\Extension\Core\Type\PasswordType;
use Symfony\Component\Form\Extension\Core\Type\RepeatedType;
use Symfony\Component\Form\Extension\Core\Type\SubmitType;
use Symfony\Component\Form\Extension\Core\Type\TextareaType;
use Symfony\Component\Form\FormBuilderInterface;
use Symfony\Component\OptionsResolver\OptionsResolver;
use Symfony\Component\Security\Core\Validator\Constraints\UserPassword;
use Symfony\Component\Validator\Constraints\NotBlank;

class ProjectInspiringType extends AbstractType
@@ -52,8 +48,31 @@ class ProjectInspiringType extends AbstractType
'label' => 'form.field.projectinspiring.thematic',
'class' => Thematic::class,
'required' => false,
'choice_attr' => function ($choice, $key, $value) {
return ['data-class' => 'theme' . strtolower($value)];
},
'attr' => [
'class' => 'theme'
]
]
);
if ($options['context'] == "backend") {
$builder->add(
'subthematic',
EntityType::class,
[
'label' => 'form.field.projectinspiring.subthematic',
'class' => Subthematic::class,
'required' => false,
'choice_attr' => function ($choice, $key, $value) {
return ['data-class' => 'theme' . strtolower($choice->getThematic()->getId())];
},
'attr' => [
'class' => 'subtheme'
]
]
);
}
}

/**
@@ -64,6 +83,7 @@ class ProjectInspiringType extends AbstractType
$resolver->setDefaults(
[
'data_class' => $this->em->getEntityName(ProjectInspiring::class),
'context' => 'backend'
]
);
}

+ 5
- 5
src/Type/RevoltType.php Ver arquivo

@@ -11,11 +11,8 @@ 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
{
@@ -58,8 +55,9 @@ class RevoltType extends AbstractType
'class' => 'theme'
]
]
)
->add(
);
if ($options['context'] == "backend") {
$builder->add(
'subthematic',
EntityType::class,
[
@@ -74,6 +72,7 @@ class RevoltType extends AbstractType
]
]
);
}
}

/**
@@ -85,6 +84,7 @@ class RevoltType extends AbstractType
$resolver->setDefaults(
[
'data_class' => $this->em->getEntityName(Revolt::class),
'context' => 'backend'
]
);
}

+ 4
- 4
templates/frontend/carto-carte.html.twig Ver arquivo

@@ -7,7 +7,7 @@
<div class="col-3">
<div class="row">
<div class="col-5">
<img src="{{ 'assets/img/Picto-Revoltes.png' }}" title="">
<img src="{{ 'assets/img/Picto-Revoltes.png' }}" alt="révolte">
</div>
<div class="col-7 revolt">
<div>Nos révoltes</div>
@@ -17,7 +17,7 @@
<div class="col-3">
<div class="row">
<div class="col-5">
<img src="{{ 'assets/img/Picto-Reve.png' }}" title="">
<img src="{{ 'assets/img/Picto-Reve.png' }}" alt="rêve">
</div>
<div class="col-7 dream">
Nos rêves
@@ -27,7 +27,7 @@
<div class="col-3">
<div class="row">
<div class="col-5">
<img src="{{ 'assets/img/Picto-Actions-Booster.png' }}" title="">
<img src="{{ 'assets/img/Picto-Actions-Booster.png' }}" alt="Projet booster">
</div>
<div class="col-7 project-boost">
Les actions à booster
@@ -37,7 +37,7 @@
<div class="col-3">
<div class="row">
<div class="col-5">
<img src="{{ 'assets/img/Picto-Actions-Inspirantes.png' }}" title="">
<img src="{{ 'assets/img/Picto-Actions-Inspirantes.png' }}" alt="Projet inspirant">
</div>
<div class="col-7 project-insp">
Les actions inspirantes

+ 100
- 0
templates/frontend/contribuate.html.twig Ver arquivo

@@ -48,6 +48,106 @@
<div class="col-12">
<h1 class="title-form">Formulaire de contribution individuel</h1>
{{ form_start(form) }}

<div class="row">
<div class="col-12">
{{ form_label(form.territory, null, {'label_attr': {'class': 'label'}}) }}
</div>
<div class="col-12">
<ul class="list-territory">
{% for field in form.territory.children %}
{# {{ dump(form.territory) }} #}
<li>
{{ form_widget(field) }}
{{ form_label(field) }}
{{ form_errors(field) }}
</li>
{% endfor %}
</ul>
</div>
</div>

<div class="row row-revolt">
<div class="col-12">
<h2>
<img src="{{ 'assets/img/Picto-Revoltes.png' }}" alt="révolte">
Nos révoltes
</h2>
{{ form_label(form.revolt, null, {'label_attr': {'class': 'label'}}) }}
</div>
<div class="col-12">
<ul class="revolt" data-index="0"
data-prototype="{{ form_widget(form.revolt.vars.prototype)|e('html_attr') }}"></ul>
<button type="button" class="add_item_link button-green" data-collection-holder-class="revolt">
Ajouter une
révolte
</button>
</div>
</div>

<div class="row row-dream">
<div class="col-12">
<h2>
<img src="{{ 'assets/img/Picto-Reve.png' }}" alt="rêve">
Nos rêves
</h2>
{{ form_label(form.dream, null, {'label_attr': {'class': 'label'}}) }}
</div>
<div class="col-12">
<ul class="dream" data-index="0"
data-prototype="{{ form_widget(form.dream.vars.prototype)|e('html_attr') }}"></ul>
<button type="button" class="add_item_link button-green" data-collection-holder-class="dream">
Ajouter un rêve
</button>
</div>
</div>

<div class="row row-project-boost">
<div class="col-12">
<h2>
<img src="{{ 'assets/img/Picto-Actions-Booster.png' }}" alt="Projet booster">
Les actions à booster
</h2>
{{ form_label(form.projectBoost, null, {'label_attr': {'class': 'label'}}) }}
</div>
<div class="col-12">
<ul class="projectBoost" data-index="0"
data-prototype="{{ form_widget(form.projectBoost.vars.prototype)|e('html_attr') }}"></ul>
<button type="button" class="add_item_link button-green"
data-collection-holder-class="projectBoost">Ajouter
une action
</button>
</div>
</div>

<div class="row row-project-insp">
<div class="col-12">
<h2>
<img src="{{ 'assets/img/Picto-Actions-Inspirantes.png' }}" alt="Projet inspirant">
Les actions inspirantes
</h2>
{{ form_label(form.projectInspiring, null, {'label_attr': {'class': 'label'}}) }}
</div>
<div class="col-12">
<ul class="projectInspiring" data-index="0"
data-prototype="{{ form_widget(form.projectInspiring.vars.prototype)|e('html_attr') }}"></ul>
<button type="button" class="add_item_link button-green"
data-collection-holder-class="projectInspiring">
Ajouter une action
</button>
</div>
</div>

<div class="row">
<div class="col-12 text-center">
{{ form_widget(form.save) }}
</div>
</div>

{% do form.revolt.setRendered %}
{% do form.dream.setRendered %}
{% do form.projectBoost.setRendered %}
{% do form.projectInspiring.setRendered %}
{{ form_end(form) }}
</div>
</div>

Carregando…
Cancelar
Salvar