Browse Source

correction bug sov

v1
Charly 3 years ago
parent
commit
5c4cc3b731
16 changed files with 11533 additions and 578 deletions
  1. +3
    -0
      assets/app/frontend/scss/about.scss
  2. +483
    -522
      composer.lock
  3. +3
    -1
      config/packages/doctrine.yaml
  4. +18
    -2
      migrations/Version20210823141711.php
  5. +10869
    -0
      public/build/app-frontend.8b3c1c05.css
  6. +1
    -1
      public/build/entrypoints.json
  7. +1
    -1
      public/build/manifest.json
  8. +24
    -14
      src/Controller/Frontend/DefaultController.php
  9. +25
    -0
      src/Entity/Ticket/Ticket.php
  10. +25
    -0
      src/Entity/Ticket/TicketMessage.php
  11. +1
    -1
      src/Entity/User/User.php
  12. +2
    -2
      src/Form/ContactForm.php
  13. +31
    -0
      src/Form/IndividualForm.php
  14. +29
    -29
      templates/adminlte/dashboard.html.twig
  15. +16
    -5
      templates/frontend/about.html.twig
  16. +2
    -0
      templates/frontend/contribuate.html.twig

+ 3
- 0
assets/app/frontend/scss/about.scss View File

span { span {
color: $orange; color: $orange;
} }
}


.video-aac {
text-align: center;
} }
} }



+ 483
- 522
composer.lock
File diff suppressed because it is too large
View File


+ 3
- 1
config/packages/doctrine.yaml View File

Lc\SovBundle\Model\Reminder\ReminderInterface: App\Entity\Reminder\Reminder Lc\SovBundle\Model\Reminder\ReminderInterface: App\Entity\Reminder\Reminder
Lc\SovBundle\Model\User\GroupUserInterface: App\Entity\User\GroupUser Lc\SovBundle\Model\User\GroupUserInterface: App\Entity\User\GroupUser
Lc\SovBundle\Model\Site\SiteInterface: App\Entity\Site\Site Lc\SovBundle\Model\Site\SiteInterface: App\Entity\Site\Site
Lc\SovBundle\Model\Setting\SiteSettingInterface: App\Entity\Setting\SiteSetting
Lc\SovBundle\Model\Setting\SiteSettingInterface: App\Entity\Setting\SiteSetting
Lc\SovBundle\Model\Ticket\TicketInterface: App\Entity\Ticket\Ticket
Lc\SovBundle\Model\Ticket\TicketMessageInterface: App\Entity\Ticket\TicketMessage

migrations/Version20210715095020.php → migrations/Version20210823141711.php View File

/** /**
* Auto-generated Migration: Please modify to your needs! * Auto-generated Migration: Please modify to your needs!
*/ */
final class Version20210715095020 extends AbstractMigration
final class Version20210823141711 extends AbstractMigration
{ {
public function getDescription(): string public function getDescription(): string
{ {
$this->addSql('CREATE TABLE site_setting (id INT AUTO_INCREMENT NOT NULL, site_id INT NOT NULL, file_id INT DEFAULT NULL, name VARCHAR(63) NOT NULL, text LONGTEXT DEFAULT NULL, date DATETIME DEFAULT NULL, INDEX IDX_64D05A53F6BD1646 (site_id), INDEX IDX_64D05A5393CB796C (file_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB'); $this->addSql('CREATE TABLE site_setting (id INT AUTO_INCREMENT NOT NULL, site_id INT NOT NULL, file_id INT DEFAULT NULL, name VARCHAR(63) NOT NULL, text LONGTEXT DEFAULT NULL, date DATETIME DEFAULT NULL, INDEX IDX_64D05A53F6BD1646 (site_id), INDEX IDX_64D05A5393CB796C (file_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE territory (id INT AUTO_INCREMENT NOT NULL, name VARCHAR(255) NOT NULL, dev_alias VARCHAR(255) DEFAULT NULL, PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB'); $this->addSql('CREATE TABLE territory (id INT AUTO_INCREMENT NOT NULL, name VARCHAR(255) NOT NULL, dev_alias VARCHAR(255) DEFAULT NULL, PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE thematic (id INT AUTO_INCREMENT NOT NULL, name VARCHAR(255) NOT NULL, PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB'); $this->addSql('CREATE TABLE thematic (id INT AUTO_INCREMENT NOT NULL, name VARCHAR(255) NOT NULL, PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE user (id INT AUTO_INCREMENT NOT NULL, email VARCHAR(180) NOT NULL, roles LONGTEXT NOT NULL COMMENT \'(DC2Type:json)\', password VARCHAR(255) NOT NULL, lastname VARCHAR(255) DEFAULT NULL, firstname VARCHAR(255) DEFAULT NULL, is_verified TINYINT(1) NOT NULL, UNIQUE INDEX UNIQ_8D93D649E7927C74 (email), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE ticket (id INT AUTO_INCREMENT NOT NULL, user_id INT DEFAULT NULL, created_by_id INT NOT NULL, updated_by_id INT NOT NULL, type VARCHAR(32) NOT NULL, status VARCHAR(32) NOT NULL, subject VARCHAR(255) NOT NULL, tags LONGTEXT DEFAULT NULL COMMENT \'(DC2Type:array)\', visitor_firstname VARCHAR(64) DEFAULT NULL, visitor_lastname VARCHAR(64) DEFAULT NULL, visitor_email VARCHAR(128) DEFAULT NULL, visitor_token VARCHAR(255) DEFAULT NULL, dev_alias VARCHAR(255) DEFAULT NULL, created_at DATETIME NOT NULL, updated_at DATETIME NOT NULL, INDEX IDX_97A0ADA3A76ED395 (user_id), INDEX IDX_97A0ADA3B03A8386 (created_by_id), INDEX IDX_97A0ADA3896DBBDE (updated_by_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE ticket_message (id INT AUTO_INCREMENT NOT NULL, ticket_id INT NOT NULL, created_by_id INT NOT NULL, updated_by_id INT NOT NULL, message LONGTEXT NOT NULL, answer_by_admin TINYINT(1) DEFAULT NULL, image_filename VARCHAR(255) DEFAULT NULL, dev_alias VARCHAR(255) DEFAULT NULL, created_at DATETIME NOT NULL, updated_at DATETIME NOT NULL, status DOUBLE PRECISION NOT NULL, INDEX IDX_BA71692D700047D2 (ticket_id), INDEX IDX_BA71692DB03A8386 (created_by_id), INDEX IDX_BA71692D896DBBDE (updated_by_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE user (id INT AUTO_INCREMENT NOT NULL, email VARCHAR(180) NOT NULL, roles LONGTEXT NOT NULL COMMENT \'(DC2Type:json)\', password VARCHAR(255) NOT NULL, lastname VARCHAR(255) DEFAULT NULL, firstname VARCHAR(255) DEFAULT NULL, phone VARCHAR(20) DEFAULT NULL, gender TINYINT(1) DEFAULT NULL, birthdate DATE DEFAULT NULL, is_verified TINYINT(1) NOT NULL, ticket_types_notification LONGTEXT DEFAULT NULL COMMENT \'(DC2Type:array)\', dev_alias VARCHAR(255) DEFAULT NULL, UNIQUE INDEX UNIQ_8D93D649E7927C74 (email), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE user_group_user_interface (user_id INT NOT NULL, group_user_interface_id INT NOT NULL, INDEX IDX_12B87B34A76ED395 (user_id), INDEX IDX_12B87B34F583BABC (group_user_interface_id), PRIMARY KEY(user_id, group_user_interface_id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB'); $this->addSql('CREATE TABLE user_group_user_interface (user_id INT NOT NULL, group_user_interface_id INT NOT NULL, INDEX IDX_12B87B34A76ED395 (user_id), INDEX IDX_12B87B34F583BABC (group_user_interface_id), PRIMARY KEY(user_id, group_user_interface_id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('ALTER TABLE collectif_data ADD CONSTRAINT FK_F35F8503A76ED395 FOREIGN KEY (user_id) REFERENCES user (id)'); $this->addSql('ALTER TABLE collectif_data ADD CONSTRAINT FK_F35F8503A76ED395 FOREIGN KEY (user_id) REFERENCES user (id)');
$this->addSql('ALTER TABLE collectif_data ADD CONSTRAINT FK_F35F850373F74AD4 FOREIGN KEY (territory_id) REFERENCES territory (id)'); $this->addSql('ALTER TABLE collectif_data ADD CONSTRAINT FK_F35F850373F74AD4 FOREIGN KEY (territory_id) REFERENCES territory (id)');
$this->addSql('ALTER TABLE revolts ADD CONSTRAINT FK_68E7DC9F2395FCED FOREIGN KEY (thematic_id) REFERENCES thematic (id)'); $this->addSql('ALTER TABLE revolts ADD CONSTRAINT FK_68E7DC9F2395FCED FOREIGN KEY (thematic_id) REFERENCES thematic (id)');
$this->addSql('ALTER TABLE site_setting ADD CONSTRAINT FK_64D05A53F6BD1646 FOREIGN KEY (site_id) REFERENCES site (id)'); $this->addSql('ALTER TABLE site_setting ADD CONSTRAINT FK_64D05A53F6BD1646 FOREIGN KEY (site_id) REFERENCES site (id)');
$this->addSql('ALTER TABLE site_setting ADD CONSTRAINT FK_64D05A5393CB796C FOREIGN KEY (file_id) REFERENCES file (id)'); $this->addSql('ALTER TABLE site_setting ADD CONSTRAINT FK_64D05A5393CB796C FOREIGN KEY (file_id) REFERENCES file (id)');
$this->addSql('ALTER TABLE ticket ADD CONSTRAINT FK_97A0ADA3A76ED395 FOREIGN KEY (user_id) REFERENCES user (id)');
$this->addSql('ALTER TABLE ticket ADD CONSTRAINT FK_97A0ADA3B03A8386 FOREIGN KEY (created_by_id) REFERENCES user (id)');
$this->addSql('ALTER TABLE ticket ADD CONSTRAINT FK_97A0ADA3896DBBDE FOREIGN KEY (updated_by_id) REFERENCES user (id)');
$this->addSql('ALTER TABLE ticket_message ADD CONSTRAINT FK_BA71692D700047D2 FOREIGN KEY (ticket_id) REFERENCES ticket (id)');
$this->addSql('ALTER TABLE ticket_message ADD CONSTRAINT FK_BA71692DB03A8386 FOREIGN KEY (created_by_id) REFERENCES user (id)');
$this->addSql('ALTER TABLE ticket_message ADD CONSTRAINT FK_BA71692D896DBBDE FOREIGN KEY (updated_by_id) REFERENCES user (id)');
$this->addSql('ALTER TABLE user_group_user_interface ADD CONSTRAINT FK_12B87B34A76ED395 FOREIGN KEY (user_id) REFERENCES user (id) ON DELETE CASCADE'); $this->addSql('ALTER TABLE user_group_user_interface ADD CONSTRAINT FK_12B87B34A76ED395 FOREIGN KEY (user_id) REFERENCES user (id) ON DELETE CASCADE');
$this->addSql('ALTER TABLE user_group_user_interface ADD CONSTRAINT FK_12B87B34F583BABC FOREIGN KEY (group_user_interface_id) REFERENCES group_user (id) ON DELETE CASCADE'); $this->addSql('ALTER TABLE user_group_user_interface ADD CONSTRAINT FK_12B87B34F583BABC FOREIGN KEY (group_user_interface_id) REFERENCES group_user (id) ON DELETE CASCADE');
} }
$this->addSql('ALTER TABLE projects_boost DROP FOREIGN KEY FK_C3E573562395FCED'); $this->addSql('ALTER TABLE projects_boost DROP FOREIGN KEY FK_C3E573562395FCED');
$this->addSql('ALTER TABLE projects_inspiring DROP FOREIGN KEY FK_E60CAEC62395FCED'); $this->addSql('ALTER TABLE projects_inspiring DROP FOREIGN KEY FK_E60CAEC62395FCED');
$this->addSql('ALTER TABLE revolts DROP FOREIGN KEY FK_68E7DC9F2395FCED'); $this->addSql('ALTER TABLE revolts DROP FOREIGN KEY FK_68E7DC9F2395FCED');
$this->addSql('ALTER TABLE ticket_message DROP FOREIGN KEY FK_BA71692D700047D2');
$this->addSql('ALTER TABLE collectif_data DROP FOREIGN KEY FK_F35F8503A76ED395'); $this->addSql('ALTER TABLE collectif_data DROP FOREIGN KEY FK_F35F8503A76ED395');
$this->addSql('ALTER TABLE file DROP FOREIGN KEY FK_8C9F3610B03A8386'); $this->addSql('ALTER TABLE file DROP FOREIGN KEY FK_8C9F3610B03A8386');
$this->addSql('ALTER TABLE file DROP FOREIGN KEY FK_8C9F3610896DBBDE'); $this->addSql('ALTER TABLE file DROP FOREIGN KEY FK_8C9F3610896DBBDE');
$this->addSql('ALTER TABLE reminder DROP FOREIGN KEY FK_40374F40B03A8386'); $this->addSql('ALTER TABLE reminder DROP FOREIGN KEY FK_40374F40B03A8386');
$this->addSql('ALTER TABLE reminder DROP FOREIGN KEY FK_40374F40896DBBDE'); $this->addSql('ALTER TABLE reminder DROP FOREIGN KEY FK_40374F40896DBBDE');
$this->addSql('ALTER TABLE reminder_user_interface DROP FOREIGN KEY FK_7FD2584B2BC79580'); $this->addSql('ALTER TABLE reminder_user_interface DROP FOREIGN KEY FK_7FD2584B2BC79580');
$this->addSql('ALTER TABLE ticket DROP FOREIGN KEY FK_97A0ADA3A76ED395');
$this->addSql('ALTER TABLE ticket DROP FOREIGN KEY FK_97A0ADA3B03A8386');
$this->addSql('ALTER TABLE ticket DROP FOREIGN KEY FK_97A0ADA3896DBBDE');
$this->addSql('ALTER TABLE ticket_message DROP FOREIGN KEY FK_BA71692DB03A8386');
$this->addSql('ALTER TABLE ticket_message DROP FOREIGN KEY FK_BA71692D896DBBDE');
$this->addSql('ALTER TABLE user_group_user_interface DROP FOREIGN KEY FK_12B87B34A76ED395'); $this->addSql('ALTER TABLE user_group_user_interface DROP FOREIGN KEY FK_12B87B34A76ED395');
$this->addSql('DROP TABLE collectif_data'); $this->addSql('DROP TABLE collectif_data');
$this->addSql('DROP TABLE configuration'); $this->addSql('DROP TABLE configuration');
$this->addSql('DROP TABLE site_setting'); $this->addSql('DROP TABLE site_setting');
$this->addSql('DROP TABLE territory'); $this->addSql('DROP TABLE territory');
$this->addSql('DROP TABLE thematic'); $this->addSql('DROP TABLE thematic');
$this->addSql('DROP TABLE ticket');
$this->addSql('DROP TABLE ticket_message');
$this->addSql('DROP TABLE user'); $this->addSql('DROP TABLE user');
$this->addSql('DROP TABLE user_group_user_interface'); $this->addSql('DROP TABLE user_group_user_interface');
} }

+ 10869
- 0
public/build/app-frontend.8b3c1c05.css
File diff suppressed because it is too large
View File


+ 1
- 1
public/build/entrypoints.json View File

"/build/app-frontend.48212924.js" "/build/app-frontend.48212924.js"
], ],
"css": [ "css": [
"/build/app-frontend.35f52dd6.css"
"/build/app-frontend.8b3c1c05.css"
] ]
} }
} }

+ 1
- 1
public/build/manifest.json View File

"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.e0a6620d.js", "build/app-backend.js": "/build/app-backend.e0a6620d.js",
"build/app-frontend.css": "/build/app-frontend.35f52dd6.css",
"build/app-frontend.css": "/build/app-frontend.8b3c1c05.css",
"build/app-frontend.js": "/build/app-frontend.48212924.js", "build/app-frontend.js": "/build/app-frontend.48212924.js",
"build/runtime.js": "/build/runtime.3095b250.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_export_js.2e873f33.js": "/build/vendors-node_modules_core-js_internals_export_js.2e873f33.js",

+ 24
- 14
src/Controller/Frontend/DefaultController.php View File

use App\Entity\ProjectsBoost; use App\Entity\ProjectsBoost;
use App\Entity\ProjectsInspiring; use App\Entity\ProjectsInspiring;
use App\Entity\Revolts; use App\Entity\Revolts;
use App\Type\ContactType;
use App\Form\ContactForm;
use App\Form\IndividualForm;
use Doctrine\ORM\EntityManagerInterface; use Doctrine\ORM\EntityManagerInterface;
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
use Symfony\Component\HttpFoundation\JsonResponse; use Symfony\Component\HttpFoundation\JsonResponse;


public function contactForm(Request $request, MailerInterface $mailer) public function contactForm(Request $request, MailerInterface $mailer)
{ {
$form = $this->createForm(ContactType::class);
$form = $this->createForm(ContactForm::class);
$form->handleRequest($request); $form->handleRequest($request);
if ($form->isSubmitted() && $form->isValid() && $form->get('lccap')->getData() == 'blop') { if ($form->isSubmitted() && $form->isValid() && $form->get('lccap')->getData() == 'blop') {
$message = '<p>De : ' . $form->get('firstname')->getData() . ' '. $form->get('lastname')->getData() .'<br />Email : ' . $form->get('email')->getData() . '<br />Objet : ' . $form->get('object')->getData(
) . '</p><p>' . $form->get('message')->getData() . '</p>';
$message = '<p>De : ' . $form->get('firstname')->getData() . ' ' . $form->get('lastname')->getData(
) . '<br />Email : ' . $form->get('email')->getData() . '<br />Objet : ' . $form->get(
'object'
)->getData() . '</p><p>' . $form->get('message')->getData() . '</p>';


$email = (new Email()) $email = (new Email())
->from('charly@laclic.fr') ->from('charly@laclic.fr')


$mailer->send($email); $mailer->send($email);


return new JsonResponse([
'status' => 'success'
]);
return new JsonResponse(
[
'status' => 'success'
]
);
} }
return new JsonResponse([
'status' => 'error'
]);
return new JsonResponse(
[
'status' => 'error'
]
);
} }


public function contact() public function contact()
{ {
$form = $this->createForm(ContactType::class, null, array(
'action'=> $this->generateUrl('app_contact_form')
$form = $this->createForm(ContactForm::class, null, array(
'action' => $this->generateUrl('app_contact_form')
)); ));


return $this->render('frontend/contact.html.twig', [ return $this->render('frontend/contact.html.twig', [
'form'=> $form->createView()
'form' => $form->createView()
]); ]);
} }




public function contribuate() public function contribuate()
{ {
$form = $this->createForm(IndividualForm::class);

return $this->render( return $this->render(
'frontend/contribuate.html.twig', 'frontend/contribuate.html.twig',
[ [
'nbContrib' => $this->countContrib()
'nbContrib' => $this->countContrib(),
'form' => $form->createView()
] ]
); );
} }

+ 25
- 0
src/Entity/Ticket/Ticket.php View File

<?php


namespace App\Entity\Ticket;

use Doctrine\ORM\Mapping as ORM;
use Lc\SovBundle\Model\Ticket\TicketModel;

/**
* @ORM\Entity(repositoryClass=TicketRepository::class)
*/
class Ticket extends TicketModel
{
/**
* @ORM\Id
* @ORM\GeneratedValue
* @ORM\Column(type="integer")
*/
private $id;

public function getId(): ?int
{
return $this->id;
}
}

+ 25
- 0
src/Entity/Ticket/TicketMessage.php View File

<?php


namespace App\Entity\Ticket;

use Doctrine\ORM\Mapping as ORM;
use Lc\SovBundle\Model\Ticket\TicketMessageModel;

/**
* @ORM\Entity(repositoryClass=TicketMessageRepository::class)
*/
class TicketMessage extends TicketMessageModel
{
/**
* @ORM\Id
* @ORM\GeneratedValue
* @ORM\Column(type="integer")
*/
private $id;

public function getId(): ?int
{
return $this->id;
}
}

+ 1
- 1
src/Entity/User/User.php View File

use Doctrine\Common\Collections\ArrayCollection; use Doctrine\Common\Collections\ArrayCollection;
use Doctrine\Common\Collections\Collection; use Doctrine\Common\Collections\Collection;
use Doctrine\ORM\Mapping as ORM; use Doctrine\ORM\Mapping as ORM;
use Lc\SovBundle\Model\User\GroupUserModel as SovUserModel;
use Lc\SovBundle\Model\User\UserModel as SovUserModel;
use Lc\SovBundle\Model\User\UserInterface; use Lc\SovBundle\Model\User\UserInterface;
use Symfony\Bridge\Doctrine\Validator\Constraints\UniqueEntity; use Symfony\Bridge\Doctrine\Validator\Constraints\UniqueEntity;



src/Type/ContactType.php → src/Form/ContactForm.php View File

<?php <?php


namespace App\Type;
namespace App\Form;


use Symfony\Component\Form\AbstractType; use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\Extension\Core\Type\EmailType; use Symfony\Component\Form\Extension\Core\Type\EmailType;
use Symfony\Component\Form\FormBuilderInterface; use Symfony\Component\Form\FormBuilderInterface;
use Symfony\Component\OptionsResolver\OptionsResolver; use Symfony\Component\OptionsResolver\OptionsResolver;


class ContactType extends AbstractType
class ContactForm extends AbstractType
{ {
public function buildForm(FormBuilderInterface $builder, array $options) public function buildForm(FormBuilderInterface $builder, array $options)
{ {

+ 31
- 0
src/Form/IndividualForm.php View File

<?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
]);
}
}

+ 29
- 29
templates/adminlte/dashboard.html.twig View File

{% endblock %} {% endblock %}


{% block main %} {% block main %}
<div class="row">
<div class="col-sm-3 col-xs-12">
{{ minfobox.infobox("Nombre d'animateurs", nbAnimator, "blue", "fas fa-user") }}
</div>
</div>
<div class="row">
<div class="col-sm-6 col-xs-12">
{{ minfobox.infobox("Formulaires collectifs en attente de validation", nbFormUnvalid, "red", "fas fa-database") }}
</div>
<div class="col-sm-6 col-xs-12">
{{ minfobox.infobox("Formulaires collectifs validés", nbFormValid, "green", "fas fa-database") }}
</div>
</div>
<div class="row">
<div class="col-sm-6 col-xs-12">
{{ minfobox.infobox("Nombre de rêves ", nbDreams, "blue", "far fa-lightbulb") }}
</div>
<div class="col-sm-6 col-xs-12">
{{ minfobox.infobox("Nombre de révoltes ", nbRevolts, "red", "fas fa-bullhorn") }}
</div>
</div>
<div class="row">
<div class="col-sm-6 col-xs-12">
{{ minfobox.infobox("Nombre de projets boostés ", nbProjectsBoost, "indigo", "fas fa-thumbs-up") }}
</div>
<div class="col-sm-6 col-xs-12">
{{ minfobox.infobox("Nombre de projets inspirants ", nbProjectsInsp, "blue", "fas fa-smile") }}
</div>
</div>
{# <div class="row">#}
{# <div class="col-sm-3 col-xs-12">#}
{# {{ minfobox.infobox("Nombre d'animateurs", nbAnimator, "blue", "fas fa-user") }}#}
{# </div>#}
{# </div>#}
{# <div class="row">#}
{# <div class="col-sm-6 col-xs-12">#}
{# {{ minfobox.infobox("Formulaires collectifs en attente de validation", nbFormUnvalid, "red", "fas fa-database") }}#}
{# </div>#}
{# <div class="col-sm-6 col-xs-12">#}
{# {{ minfobox.infobox("Formulaires collectifs validés", nbFormValid, "green", "fas fa-database") }}#}
{# </div>#}
{# </div>#}
{# <div class="row">#}
{# <div class="col-sm-6 col-xs-12">#}
{# {{ minfobox.infobox("Nombre de rêves ", nbDreams, "blue", "far fa-lightbulb") }}#}
{# </div>#}
{# <div class="col-sm-6 col-xs-12">#}
{# {{ minfobox.infobox("Nombre de révoltes ", nbRevolts, "red", "fas fa-bullhorn") }}#}
{# </div>#}
{# </div>#}
{# <div class="row">#}
{# <div class="col-sm-6 col-xs-12">#}
{# {{ minfobox.infobox("Nombre de projets boostés ", nbProjectsBoost, "indigo", "fas fa-thumbs-up") }}#}
{# </div>#}
{# <div class="col-sm-6 col-xs-12">#}
{# {{ minfobox.infobox("Nombre de projets inspirants ", nbProjectsInsp, "blue", "fas fa-smile") }}#}
{# </div>#}
{# </div>#}
{% endblock %} {% endblock %}

+ 16
- 5
templates/frontend/about.html.twig View File

<h2>Une démarche labellisée Start Up de Territoire</h2> <h2>Une démarche labellisée Start Up de Territoire</h2>
<p> <p>
Aux Actes Citoyens est labelissé Start Up de Territoire pour le Aux Actes Citoyens est labelissé Start Up de Territoire pour le
Nord Franche-Comté. Cette démarche bénéficie donc du soutient des autres territoires en France, mais également des
Nord Franche-Comté. Cette démarche bénéficie donc du soutient des autres territoires en France,
mais également des
solutions qui ont émergé en France et qui sont inspirantes solutions qui ont émergé en France et qui sont inspirantes
pour le territoire. pour le territoire.
</p> </p>
<a class="other-startup" href="" title="Les autres start up">Découvrir les autres Start Up de Territoires</a>
<a class="other-startup" href="" title="Les autres start up">Découvrir les autres Start Up de
Territoires</a>
</div> </div>
</div> </div>
</div> </div>
<div class="row"> <div class="row">
<div class="col-12"> <div class="col-12">
<h2>Le manifeste <span>Aux Actes Citoyens</span></h2> <h2>Le manifeste <span>Aux Actes Citoyens</span></h2>
<div class="video-aac">
<iframe width="80%" height="400px" src="https://www.youtube.com/embed/1dC1OoIi87o"
title="YouTube video player" frameborder="0"
allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture"
allowfullscreen></iframe>
</div>
</div> </div>
</div> </div>
</div> </div>
<div class="row"> <div class="row">
<div class="col-7"> <div class="col-7">
<h2> <h2>
<img class="picto-labourage" src="{{ 'assets/img/Picto-Evenement-Vert.png' }}" alt="Evenement vert">
<img class="picto-labourage" src="{{ 'assets/img/Picto-Evenement-Vert.png' }}"
alt="Evenement vert">
La récolte des solutions La récolte des solutions
</h2> </h2>
<p> <p>


<div class="col-7"> <div class="col-7">
<h2> <h2>
<img class="picto-ressource" src="{{ 'assets/img/Picto-Accompagnement-Vert.png' }}" alt="Accompagnement vert">
<img class="picto-ressource" src="{{ 'assets/img/Picto-Accompagnement-Vert.png' }}"
alt="Accompagnement vert">
L’accompagnement L’accompagnement
</h2> </h2>
<p> <p>
A partir de juin 2022, toutes les solutions qui ont émergé pourront être accompagné par les acteurs de l’accompagnement à la création d’entreprise. Vous pourrez
A partir de juin 2022, toutes les solutions qui ont émergé pourront être accompagné par les acteurs
de l’accompagnement à la création d’entreprise. Vous pourrez
consulter la ressourcerie pour connaître ses acteurs consulter la ressourcerie pour connaître ses acteurs
et bénéficier des ressources facilitant le montage de et bénéficier des ressources facilitant le montage de
projets. projets.

+ 2
- 0
templates/frontend/contribuate.html.twig View File

<div class="row"> <div class="row">
<div class="col-12"> <div class="col-12">
<h1 class="title-form">Formulaire de contribution individuel</h1> <h1 class="title-form">Formulaire de contribution individuel</h1>
{{ form_start(form) }}
{{ form_end(form) }}
</div> </div>
</div> </div>
</div> </div>

Loading…
Cancel
Save