svg
This commit is contained in:
parent
ad60b9372c
commit
d728dfbfc6
|
@ -7,9 +7,9 @@ RUN echo "* * * * * /app/bin/console app:Cron --env=prod" >> /var/spool/cron/cro
|
||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
COPY . .
|
COPY . .
|
||||||
|
RUN rm -rf /app/public/uploads/*
|
||||||
|
|
||||||
# Installation des dépendances composer
|
# Installation des dépendances composer
|
||||||
|
|
||||||
RUN composer install --no-interaction
|
RUN composer install --no-interaction
|
||||||
|
|
||||||
RUN mkdir -p /app/public/uploads
|
RUN mkdir -p /app/public/uploads
|
||||||
|
|
|
@ -13,7 +13,7 @@ use App\Form\ConfigType as Form;
|
||||||
class ConfigController extends AbstractController
|
class ConfigController extends AbstractController
|
||||||
{
|
{
|
||||||
private $data = "config";
|
private $data = "config";
|
||||||
private $route = "app_config";
|
private $route = "app_admin_config";
|
||||||
private $render = "Config/";
|
private $render = "Config/";
|
||||||
private $entity = "App:Config";
|
private $entity = "App:Config";
|
||||||
|
|
||||||
|
@ -110,7 +110,7 @@ class ConfigController extends AbstractController
|
||||||
$data=$em->getRepository($this->entity)->findOneBy(["id"=>$id,"user"=>$this->getUser()]);
|
$data=$em->getRepository($this->entity)->findOneBy(["id"=>$id,"user"=>$this->getUser()]);
|
||||||
|
|
||||||
// Création du formulaire
|
// Création du formulaire
|
||||||
$form = $this->createForm(Form::class,$data,array("mode "=>"update","id"=>$data->getId(),"type"=>$data->getType(),"required"=>$data->getRequired()));
|
$form = $this->createForm(Form::class,$data,array("mode"=>"update","id"=>$data->getId(),"type"=>$data->getType(),"required"=>$data->getRequired()));
|
||||||
|
|
||||||
// Récupération des data du formulaire
|
// Récupération des data du formulaire
|
||||||
$form->handleRequest($request);
|
$form->handleRequest($request);
|
||||||
|
|
|
@ -34,6 +34,7 @@
|
||||||
|
|
||||||
{% block localjavascript %}
|
{% block localjavascript %}
|
||||||
$(document).ready(function() {
|
$(document).ready(function() {
|
||||||
|
{% if app.user %} window.location.href = "{{ path("app_home")}}"; {% endif %}
|
||||||
$("#username").focus();
|
$("#username").focus();
|
||||||
});
|
});
|
||||||
{% endblock %}
|
{% endblock %}
|
Loading…
Reference in New Issue